W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > May 2019

Re: [mediacapture-main] Clarification needed on HTMLMediaElement attributes that carry over (#599)

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Thu, 30 May 2019 21:52:09 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-497499154-1559253128-sysbot+gh@w3.org>
So here's my brief test with https://jsfiddle.net/jib1/avr1w8k0/ basically:
```
    video.onratechange = () => console.log("ratechange");
    video.playbackRate = 0.5;
    console.log(video.playbackRate);
    video.srcObject = await navigator.mediaDevices.getUserMedia({video: true});
    console.log(video.playbackRate);
    video.playbackRate = 0.7;
    console.log(video.playbackRate);
    video.srcObject = null;
    console.log(video.playbackRate);
```
The results show variance and that none are to spec. They all fire ratechange when they shouldn't, and none of them preserve the non-stream value.

Firefox:
```
0.5
ratechange
1
0.7
1
ratechange
```
Chrome: 
```
0.5
ratechange
1
1
1
ratechange
```
Safari:
```
0.5
ratechange
1
0.7
1
ratechange
```
Edge:
```
0.5
ratechange
1
InvalidStateError
```

From my reading of the spec, clarified by https://github.com/w3c/mediacapture-main/pull/600 it should be:
```
0.5
1
1
0.5
```
Is there one we prefer? @youennf @Pehrsons 

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/599#issuecomment-497499154 using your GitHub account
Received on Thursday, 30 May 2019 21:52:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:23 UTC