Bug 176045 - Setting the Video element volume does not work on Safari iOS for a remote PeerConnection
Summary: Setting the Video element volume does not work on Safari iOS for a remote Pee...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Other
Hardware: iPhone / iPad iOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-08-28 21:23 PDT by Adam
Modified: 2017-08-29 10:17 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam 2017-08-28 21:23:22 PDT
In Safari on iOS 11 Beta setting the audio volume on a video element which is connected to a remote PeerConnection does not have an effect. It does work in Safari Beta on Mac OS Sierra as well as Safari Technology Preview on Mac OS Sierra.

Steps to reproduce:

1. Visit https://webrtc.github.io/samples/src/content/peerconnection/pc1/
2. Click on "Start" and allow access to your camera
3. Click on "Call" and wait for the video on the right to be established. You should be able to see yourself in 2 video windows and hear yourself.
4. Open up the console and type `document.querySelectorAll('video')[1].volume = 0`

Expected Result: You will mute the video element and no longer be able to hear yourself.
Actual Result: You can still hear yourself. Also the volume property still returns as 1 instead of 0.

Again this works in Safari on Mac OS, just not on iOS.
Comment 1 Radar WebKit Bug Importer 2017-08-29 10:08:28 PDT
<rdar://problem/34134905>
Comment 2 Eric Carlson 2017-08-29 10:17:00 PDT
On iOS volume is controlled by the user only, however you should be able to mute a video/audio element by setting the 'muted' attribute.