Services Plugins FAQs

Agora plugin - can't change cameras more than once

Hi,

Thanks for the Agora.io Bubble plugin. It is pretty cool. I am noticing some quirks however.

One thing I am interested in is giving users a view of themselves before they join the meeting, so they can check their appearance or get the right camera, etc. Similar for mic.

I can turn the camera on and off before joining a conference (using the element action disable/enable video Agora RTC). However at this point, they seem to lose the ability to change their camera. They see themselves with their initial camera and can’t change it anymore. The AgoraRTC element’s current used camera reflects the choice the user made, but the actual camera view never changes.

Is there a good way to let a user check their appearance before the meeting?

Hi @vcarey,

Thank you for reaching out and apologies for the delayed response over the weekend. :pray:

To let users preview themselves and switch devices before joining a meeting:

  1. Create a preview mode with the Agora RTC element.
  2. Use Enable Video to start the camera in preview.
  3. Populate dropdowns with Devices.
  4. Dynamically update the preview with Set Video/Audio Source when a device is selected.
  5. Ensure the meeting isn’t joined until users click ex. “Join Meeting.”

For the camera switching issue, please double-check your state settings to ensure the correct values are being passed when a user selects a new camera. This will help avoid any mismatch between the dropdown selection and the RTC element.

Additionally, you can compare your setup with our demo page to see how the workflow is structured

Let us know if this works or if you need further help! :sparkles:

Best,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

Thanks so much for your reply! I don’t see any “enable preview” on the element’s Appearance tab.

I do see some element actions in workflows: Microphone Check and Camera Check. What do these do? I guess I can try them, which I sort of did but couldn’t figure out.

The demo does not have the video / audio preview or test. It is a helpful demo though!

Hi @vcarey,

Thank you for your follow-up! :blush:

By “preview mode,” I meant creating a pop-up or a group container that acts as a preview interface for the user.

Regarding the Microphone Check and Camera Check actions, they’re used to verify whether the microphone and video devices are working on the user’s device (i.e., connected and operational).

Here’s a suggested setup to help you implement camera switching:

  1. Stop the Current Video Stream: Use the Disable Video action to stop the current feed when the user switches the camera.
  2. Set the New Camera Device ID: Update the AgoraRTC element’s “current used camera” field or dynamically select the new device based on the user’s choice.
  3. Restart the Video Stream: Use the Enable Video action to start the feed again with the newly selected camera.

This approach ensures a smooth transition when switching devices.

Additionally, feel free to explore our detailed documentation for further guidance on the plugin’s functionality: Agora Plugin Documentation.

Please note that we provide general support for plugin bugs and fixes. If you need assistance with app customization, we’d be happy to explore that through our services:

To get effort estimates, please share your project requirements through this form: Zeroqode Builds Web and Mobile Apps Without Code. One of our managers will get back to you shortly!

Let me know if you have additional questions or need further clarification! :raised_hands:

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

Hi,

Sticking to the preview mode question. So I have one Agora RTC element on a page. When I open the page, I start the video in a group container (but do not join the meeting). I can see the video.

Now, if I want to change cameras, I can do that exactly once and then it no longer works. The Agora RTC element will change its “current used camera” but what the image / view shown in the group container does not change. The first time I make a change, it changes, and then it is “stuck”. I am disabling the video, then changing the camera, then re-enabling it.

This is what I’ve been seeing since the beginning – if a meeting is not joined, camera switching doesn’t work. If the meeting is joined, it seems fine. I haven’t had to disable and re-enable video when I am joined in a meeting, it just works either way.

For the “preview”, I don’t know if the answer is to make some temporary one-person meeting to join and leave, or a second Agora RTC element or something.

Do you want me to make a screen recording or something like that? Or I could jump on a call to show someone if you are interested?

I guess here’s another update - it looks like I can’t join the second (real) conference after the preview conference. If I join and leave the preview conference, then the real conference (different room name / token) no longer work.

I don’t know if I can put 2 agora RTC elements onto one page, one for each conference, and somehow transfer settings from one to another. Make sure I only have one at a time visible?

Using 2 RTC elements does seem to allow this but it’s a bit fussy.

For the preview, you have to join one element with a room name that’s unique per user. Then you must leave that conference and join the main room after you hit the “join conference” button.

In addition to that, the second conference doesn’t remember the first’s settings, so you need to switch the camera immediately when joining the main room. So you have to have the settings from the preview conference saved & ready for the main conference.

There are also timing issues with switching video off and on right after a join, as well as switching cameras during that join. So sometimes things get into a bad state it seems. I am putting in pauses to see if that helps.

I think it would be nicest if this could be done with just one element, but to recap here are the issues that prevent that:

  • If you switch cameras when you haven’t joined a conference, the switching is broken and you can switch once and then never again (although the Agora RTC element’s string changes, the camera view never changes)
  • If you try to use the same Agora RTC element for two different room names, that doesn’t work.

Thanks for your help!

Hi @vcarey ,

Thank you so much for your message and apologies in the delayed response over the weekend. :pray:

I’ve taken a closer look at your feedback, and here are a few steps you can try to address the issues:

1. Camera Switching Without Joining a Conference

If switching cameras isn’t working outside of a conference, you can set up a temporary one-person preview room (with a unique name for each user). This will give the RTC element a proper “conference environment” to function correctly. You can:

  • Join the preview room, switch cameras as needed, and leave it when you’re ready to join the main room.

2. Using One RTC Element for Multiple Rooms

This can be tricky, but there are two options:

  • Preferred: Use two RTC elements—one for the preview session and the other for the main conference. This keeps things separate and avoids conflicts.
  • Alternatively, you can reset the RTC element completely (leave the room, clear settings, and reinitialize) before joining a different room.

3. Syncing Camera Settings Between Preview and Main Room

To carry over settings (like the selected camera) from the preview session to the main room:

  • Save the settings as a custom state or in the database during the preview.
  • Apply those settings after joining the main room using the Set Camera action.

4. Timing and Stability

Quick transitions (e.g., switching cameras, enabling/disabling video) can cause issues. To fix this, try adding short pauses (about 1–2 seconds) between actions like:

  • Joining the room.
  • Enabling video or switching cameras.

A Simple Setup for Preview Mode

If you’d like, you can use two RTC elements:

  • One dedicated to the preview room (for testing cameras).
  • Another for the main room (for the actual conference).
    This approach simplifies things and ensures a smoother experience.

Looking forward to your feedback!

Wishing you a Happy New Year in advance! :tada:

Best Regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

Hi @vcarey ,

I wanted to follow up and see if you’ve had a chance to go over the message we shared earlier. If the issue persists or if there’s anything else you’d like help with, please don’t hesitate to let us know.

We’re always here to assist and would be happy to help address any challenges you might be facing.

Looking forward to your reply! :pray:

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

Hello

I think that the workaround is OK for now. I do think that the issue of changing cameras getting stuck when not joined to a conference is an actual product defect. Is there a specific place to report bugs?

Are there updates planned for this plugin? Thanks

Hi @vcarey,

Thank you for your response and for sharing your thoughts! :blush:

I appreciate your feedback regarding the Agora plugin. I’ve taken your suggestion into consideration and will share it with our development team for review. While I’d love to promise updates, I should let you know that, at the moment, there are no planned updates for this plugin.

As for the camera switching getting stuck when not joined to a conference, I’d kindly ask if you could record a Loom video demonstrating the issue. This would help us better understand the behavior and investigate further. Your input would be invaluable in identifying potential improvements!

Looking forward to your video and any additional details you can provide. :pray:

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

Hi @vcarey,

I just wanted to follow up on my previous message regarding the Agora plugin. Have you had a chance to record a Loom video or gather additional details about the issue you mentioned with the camera switching?

Your input would be extremely helpful in investigating the behavior further and identifying potential improvements. Please don’t hesitate to share any updates when you have the chance.

Looking forward to hearing from you! :pray:

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3