voxeet / voxeet-uxkit-cordova

Dolby.io UXKit for Cordova
Other
1 stars 14 forks source link

Speaker button disabled when conference joined with headphones #38

Closed mattyg closed 3 years ago

mattyg commented 3 years ago

Describe the bug

When joining a conference with headphones plugged in, the speaker button is disabled. Upon removing the headphones, the speaker button remains disabled.

Expected Behaviour

If headphones are removed, the speaker button should become enabled and toggled "on".

Steps to Reproduce the Problem

See the minimalistic code example below.

Minimalistic code (recommended)

This repo (branch no-hud-video-bug) demonstrates the issue: https://github.com/mattyg/voxeet-cordova-example

Both devices used were on Android.

Follow the steps below to reproduce:

Speaker button is disabled on device B. Tapping it does nothing.

Speaker button is still disabled on device B. Tapping it still does nothing. There is no audio from the other participant coming out of the device speakers.

Specifications

FabienLavocat commented 3 years ago

@mattyg when you click the Speaker button, do you get a modal window asking you to pick an audio output? Since the UXKit for Cordova is using the Android UXKit, I ran some tests using the native UXKit for Android and I can't reproduce the problem.

mattyg commented 3 years ago

@mattyg when you click the Speaker button, do you get a modal window asking you to pick an audio output? Since the UXKit for Cordova is using the Android UXKit, I ran some tests using the native UXKit for Android and I can't reproduce the problem.

@FabienLavocat No, I do not get a modal window. Can you reproduce the issue using this plugin in the minimal example repo linked above?

FabienLavocat commented 3 years ago

@mattyg when I plug/unplug the headphones, the status of the Speaker button changes for me. I need to keep investigating more.

FabienLavocat commented 3 years ago

@mattyg in your code sample, could you upgrade to the version 1.4.0 of the plugin: "cordova-plugin-voxeet": "^1.4.0", https://github.com/mattyg/voxeet-cordova-example/blob/no-hud-video-bug/src-cordova/package.json#L20

mattyg commented 3 years ago

@FabienLavocat I updated the code sample to use 1.4.0.

Now when I unplug the headphones, the Speaker button is enabled again and tapping it opens the modal window. However the modal window is empty -- there are no sound output options to choose. I still don't hear audio out of the speaker.

mattyg commented 3 years ago

@FabienLavocat With the 1.4.2 release, the behavior changed slightly:

When I unplug the headphones, the Speaker button is enabled again and toggled "off." Tapping it opens the modal window with the text "Media output" and no other content. I hear audio out of the "ear piece" speaker, not the "speaker-phone" speaker

mattyg commented 3 years ago

@FabienLavocat Just checking on this -- do you have an ETA when this will be resolved?

mattyg commented 3 years ago

Just checking on this again -- do you have an ETA when this will be resolved?

mattyg commented 3 years ago

This core issue was resolved in the 1.4.5. Thank you!

The speaker button is no longer disabled when joining a conference with headphones. When the headphones are removed, the speaker button remains enabled, and audio output switches to the device speaker.

However, conference audio plays out of the "ear-piece" speaker not the "speaker-phone" speaker. Tapping the speaker button opens a modal window with the text "Media output" and no other content. I created a seperate ticket for this issue (#41)

Also, I realized that the UX of the speaker button is confusing and misleading. When audio is playing out of the headphones, the speaker button is toggled "on", and when it is playing out of the speaker, it is toggled "off". I will create a seperate ticket for this issue (#42)

In the future would you mind updating relevant tickets when issues are resolved by new versions? Thanks.