Bug 174126 - Safari webrtc - not able to apply the mute (mute/unmute) state for the audio stream cloned
Summary: Safari webrtc - not able to apply the mute (mute/unmute) state for the audio ...
Status: RESOLVED DUPLICATE of bug 172831
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.12
: P2 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-07-04 03:52 PDT by KISHOR
Modified: 2017-07-10 17:31 PDT (History)
3 users (show)

See Also:


Attachments
invalid volume values (1005.87 KB, image/png)
2017-07-04 03:52 PDT, KISHOR
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description KISHOR 2017-07-04 03:52:48 PDT
Created attachment 314561 [details]
invalid volume values

On the safari webrtc , when we clone the audio stream and try to apply the mute state then mute state is not getting applied. 

Steps -
-----------------

1.Have a audio muted stream 

2.Clone that audio stream 

3.Then apply unmute on this audio stream 


Observed -
------------------

When we un-mute we observe the invalid volume values for the volume.


Please find the screen shot attached.
Comment 1 Radar WebKit Bug Importer 2017-07-04 06:42:07 PDT
<rdar://problem/33123301>
Comment 2 youenn fablet 2017-07-04 17:59:00 PDT
Thanks for reporting this bug.
I was not able to fully reproduce that bug.
Using https://webrtc.github.io/samples/src/content/getusermedia/audio/ and trying to play with track cloning and the enabled attribute, everything seems to work as expected.
The only thing that is different is trying to do something like:

var track = stream.getAudioTracks()[0];
track.enabled = false;
var clonedTrack = track.clone();
clonedTrack.enabled = true;
audio.srcObject = new MediaStream([clonedTrack]);
// There audio is not playing
audio.pause();
audio.play()
// There audio is playing

Kishor, is that your issue? Can you precise what you cannot do here?
A reduced script/example showing your issue would be great.
Comment 3 youenn fablet 2017-07-10 13:30:47 PDT

*** This bug has been marked as a duplicate of bug 172831 ***