Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microphone and Camera buttons not working #14794

Open
1 of 11 tasks
tevincent opened this issue Jun 4, 2024 · 46 comments
Open
1 of 11 tasks

Microphone and Camera buttons not working #14794

tevincent opened this issue Jun 4, 2024 · 46 comments

Comments

@tevincent
Copy link

tevincent commented Jun 4, 2024

What happened?

Hello,

The first time I'm joining a call, just after installing the app, camera and microphone buttons are not working. Is that a known issue ? Or did I forget to implement something ?

The way I'm able to reproduce it is:

  • Install the app
  • Join a call
  • Accept the microphone permission
  • Then all buttons are not working

I have attached a video to show the problem.

Thanks !

Platform

  • Chrome (or Chromium based)
  • Firefox
  • Safari
  • Other desktop browser
  • Android browser
  • iOS browser
  • Electron app
  • Android mobile app
  • iOS mobile app
  • Custom app using a mobile SDK

Browser / app / sdk version

9.2.2

Relevant log output

No response

Reproducibility

  • The problem is reproducible on meet.jit.si

More details?

No response

@tevincent
Copy link
Author

button_not_working.mp4

@saghul
Copy link
Member

saghul commented Jun 4, 2024

Hey there! How did you integrate the SDK into your app? Did you use our Activity?

@tevincent
Copy link
Author

tevincent commented Jun 4, 2024

So the way we integrate the SDK is we have our own activities where you can enter the name of the user etc. And then when the user type the name, we launch the JitsyMeetActivity like this:

private fun launchRoom(roomName: String, userInfo: JitsiMeetUserInfo) {
       val options = JitsiMeetConferenceOptions.Builder()
           .setRoom(roomName)
           .setServerURL(serverURL)
           .setUserInfo(userInfo)
           .setAudioMuted(true)
           .setVideoMuted(true)
           .build()
       JitsiMeetActivity.launch(this, options)
       finish()
   }

@saghul
Copy link
Member

saghul commented Jun 4, 2024

That looks all good! Anything in adb logcat ? Do other toolbar buttons work?

@tevincent
Copy link
Author

tevincent commented Jun 4, 2024

In the logs, if I press the microphone button, I have nothing but if I press the camera button, I always have this:
ExternalAPI Sending event: VIDEO_MUTED_CHANGED with data: {"muted":0}

All the other buttons are working. Here is our repo:

https://github.com/Infomaniak/android-infomaniak-meet

The only difference is that I'm trying to update to the latest version of the SDK, which is 9.2.2.

P.S: Thanks for the prompt response!

@saghul
Copy link
Member

saghul commented Jun 4, 2024

Very odd, I don't see anything obvious on the surface :-/ I wonder if it has to do with some support library version mismatch...

@tevincent
Copy link
Author

You mean the support library version I'm using is not the right one ?

@saghul
Copy link
Member

saghul commented Jun 4, 2024

I don't know 100%, it could be, I guess. It doesn't make much sense TBH.

@tevincent
Copy link
Author

I just tried to update everything to the latest version, same issue.

@saghul
Copy link
Member

saghul commented Jun 4, 2024

Can you please share the entire logcat output?

@tevincent
Copy link
Author

Here it is.
log_meet.txt

@saghul
Copy link
Member

saghul commented Jun 4, 2024

Can yoy adding .setFeatureFlag("resolution", 360) on the conference options to see if it makes a difference?

@tevincent
Copy link
Author

Just tried, same.

@saghul
Copy link
Member

saghul commented Jun 4, 2024

I assume this happens on several devices and not just this one, right?

@tevincent
Copy link
Author

I tried on my emulator, Android 14 and on a Pixel Phone, also on Android 14.

@saghul
Copy link
Member

saghul commented Jun 4, 2024

Does the official Jitsi Meet app exhibit the same issue?

@tevincent
Copy link
Author

Nope. Everything is working fine on the Jitsi Meet App.

@tevincent
Copy link
Author

tevincent commented Jun 4, 2024

One thing to note is that it works fine with SDK 8.6.0. For instance, when starting a call, it requests microphone permission, and upon acceptance, it immediately unmutes the microphone. However, with SDK 9.2.2, accepting the permission has no effect. Additionally, on SDK 8.6.0, clicking the camera button prompts for permission.

@tevincent
Copy link
Author

tevincent commented Jun 4, 2024

One more info. I tried all versions from 8.6.6 to 9.2.2 and the problem is only on the version 9.2.2. Hope it helps !

@saghul
Copy link
Member

saghul commented Jun 4, 2024

@Calinteodor does this ring a bell?

@tevincent
Copy link
Author

tevincent commented Jun 4, 2024

Another info, the problem is only on device above API 32. Everything is working fine from API32 and downward. Tested with the latest SDK, 9.2.2.

@Calinteodor
Copy link
Contributor

I don't seem to repro this while testing with the sample app https://github.com/jitsi/jitsi-meet-sdk-samples/tree/master/android. Can you try it yourself @tevincent ? Thanks.

@tevincent
Copy link
Author

tevincent commented Jun 4, 2024

It seems to work. One thing that might be interested. If I do this in my app:

...
.setFeatureFlag("prejoinpage.enabled", true)
...

I can enable microphone and camera. But if this is false, I cannot. So there's no issue on the prejoin page but there's one on the call page.

I cannot really do the same thing in the sample since I have to login on Jitsi meet etc.

EDIT: I was able to reproduce the same way on the sample. I'll link a video.

@tevincent
Copy link
Author

Here it is:

bug_sample.mp4

@Calinteodor
Copy link
Contributor

Yep. But after enabling video and audio in Prejoin you can do the same inside the conference, right?

@tevincent
Copy link
Author

tevincent commented Jun 4, 2024

Nope. You can see I tried to click several times on the camera and microphone icons and nothing happens.

@Calinteodor
Copy link
Contributor

If you have prejoin page enabled on your app, I am asking.

@Calinteodor
Copy link
Contributor

So enable prejoin page flag on your app and try muting and unmuting inside the conference.

@tevincent
Copy link
Author

Oh ok my bad. Yes if I have the prejoin screen and I enable the microphone and camera, in the conference screen, everything works as expected.

@Calinteodor
Copy link
Contributor

Calinteodor commented Jun 4, 2024

Cool. Thank you!
Will take a look.

@Calinteodor
Copy link
Contributor

Calinteodor commented Jun 4, 2024

Ok. I took another look and I tested using the sample app.
Disabled prejoin page, started muted with both video and audio.

screen-20240604-170906.mp4

Everything seems to be in order. Can you check the sample app again? First, just the way it is.
After that try adding your configuration to the sample app, step by step.
I suggest you use your own server and not meet.jit.si because that has authentication enabled.
If you want to use our server, just create a meeting on web and join it from android as another participant.

@tevincent
Copy link
Author

Let me try again. But did you try the first time you launch the app ? Because I can see it didn't ask for any permission in your video. Because in my case, if it's a fresh install -> launch app -> call, I have the issue but then it's working.

@tevincent
Copy link
Author

tevincent commented Jun 5, 2024

Do you want me to push a branch with the bug ? I can reproduce easily.

Here is an example with a modified sample (fresh install, our server, device on API34):

bug_jitsi.mp4

@Calinteodor
Copy link
Contributor

Let me try again. But did you try the first time you launch the app ? Because I can see it didn't ask for any permission in your video. Because in my case, if it's a fresh install -> launch app -> call, I have the issue but then it's working.

Let me try a fresh start.

@Calinteodor
Copy link
Contributor

Let me try again. But did you try the first time you launch the app ? Because I can see it didn't ask for any permission in your video. Because in my case, if it's a fresh install -> launch app -> call, I have the issue but then it's working.

Let me try a fresh start.

Sorry, but I still don't repro the bug. Microphone mutes/unmutes as expected. I get all the permission notifications and allow them. Nothing unexpected. Can you send your server url so I can test with that, too?

@tevincent
Copy link
Author

tevincent commented Jun 5, 2024

Here it is: https://kmeet.infomaniak.com/

Let me know if you want me to create a branch with the modification to reproduce the bug.

@Calinteodor
Copy link
Contributor

Here it is: https://kmeet.infomaniak.com/

Let me know if you want me to create a branch with the modification to reproduce the bug.

Let's do that and I will check your code changes on the sample app.

@tevincent
Copy link
Author

Here it is: jitsi/jitsi-meet-sdk-samples#236

@Calinteodor
Copy link
Contributor

Calinteodor commented Jun 5, 2024

I tested using meet.jit.si server and everything works as expected.
When I test using your server, the problem is reproducible.
I don't know what setting on your side could cause this issue.
@saghul @tevincent maybe you can give us more insight on your server configuration?
Oh and I disabled prejoin as well and I get all the permissions.
On your server I don't get the permissions for audio and video.

@saghul
Copy link
Member

saghul commented Jun 5, 2024

What versions of the server components are you running @tevincent ?

@tevincent
Copy link
Author

tevincent commented Jun 6, 2024

That's crazy. How the configuration of the server could impact the behavior of the microphone and camera button ? Especially if it's not working only with one specific version of the SDK.

@tevincent
Copy link
Author

tevincent commented Jun 6, 2024

What versions of the server components are you running @tevincent ?

Let me get back to you when I get the answer.

EDIT: They told me 8615. Is that ok?

@saghul
Copy link
Member

saghul commented Jun 6, 2024

https://github.com/jitsi/jitsi-meet/releases/tag/stable%2Fjitsi-meet_8615

So that is 1 year old.

It should work, but we might have messed up something inadvertently.

Let's try something to validate that a server update would "solve" it: please join a meeting in alpha.jitsi.net with your app. Does it work?

Note: alpha uses the latest of everything and meetings are destroyed after 5 minutes.

@tevincent
Copy link
Author

Just tried with https://alpha.jitsi.net. The microphone button seems to be working but not the camera button.

bug_mic_camera.mp4

@saghul
Copy link
Member

saghul commented Jun 6, 2024

@Calinteodor

@Calinteodor
Copy link
Contributor

Calinteodor commented Jun 10, 2024

This is very weird. I took another look using the sample android kotlin app with prejoin page disabled and server set to https://alpha.jitsi.net/. Mute audio/video buttons work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants