-
Notifications
You must be signed in to change notification settings - Fork 146
Mute functionality is not working on video element by calling volume API by 0/1 #1472
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
Conversation
The CI has detected various regressions due to this patch. I don't think this is upstream-able. |
What kind of failure are we seeing? because changes are limited to volume API. yes, now I can see 5 layout test failure and I am trying to check on my device those device but not seeing any result even for passed test case like audio-play.html. |
@philn If possible then please share the steps so that I can run locally on my device those failure test case for fixing. |
See the first line of https://ews-wpe-rdk.igalia.com/#/builders/6/builds/47/steps/18/logs/stdio: python3 Tools/Scripts/run-webkit-tests --no-build --no-show-results --no-new-test-results --clobber-old-results --release --wpe --results-directory layout-test-results --debug-rwt-logging --exit-after-n-failures 5000 --skip-failing-tests --enable-core-dumps-nolimit |
gst_stream_volume_set_volume(m_volumeElement.get(), GST_STREAM_VOLUME_FORMAT_LINEAR, static_cast<double>(volume)); | ||
|
||
bool audioMuted = (volume == 0) ? true : false; | ||
g_object_set(m_volumeElement.get(), "mute", static_cast<gboolean>(audioMuted), nullptr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of this... can you try to make MediaPlayerPrivateGStreamer::isMuted())
return true when the volume is 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of this... can you try to make
MediaPlayerPrivateGStreamer::isMuted())
return true when the volume is 0?
You mean that update m_isMuted variable based upon the volume==0 or 1.
See below code change
- m_isMuted = (volume == 0) ? true : false;
- g_object_set(m_volumeElement.get(), "mute", static_cast(m_isMuted), nullptr);
2dce7b7
to
e4c585b
Compare
Thanks , by running at the code path, I am getting below error (WebKitTestRunner was not found). Please suggest that how can I fix it. |
@philn Could you please check and suggest that how can we fix the failure test? |
idk how to do that with yocto. Please do this on the host (no cross-compilation). |
I am trying on mu ubuntu machine but getting some error related to QT5 cmake error. So, still check it but is it possible for you to update the patch based upon the your local change then it would be good to close fastly. |
What do you mean by "Audio should mute"?
Because setting volume to 0 should already make the audio silent on the audio sink. If that is not the case, then this is a bug in your audio sink. |
I see no indication in the spec that setting |
Ok Let me check to handle at audio sink level. |
Thanks @philn We have handled at audio sink level and currently it is working fine with this change. Hence we can ignore this PR and close this ticket. |
OK :) |
Audio is not muted when application call a volume API by setting a zero.
Request came for Apple TV application.
Scenario:
Launch the apple TV URL.
Playback any content
set the volume command from web inspector console like below
document.querySelector("video").volume = 0 --> Audio should mute
or
document.querySelector("video").volume = 1--> Audio should unmute it.
e4c585b