Bug 1306999 - Change from "playing" to "loadeddata" before assuming there's a video frame. r=jib
authorAndreas Pehrson <apehrson@mozilla.com>
Mon, 26 Nov 2018 16:54:13 +0000
changeset 504438 759ec08eebaaa4418a3a96b20d5942d55a3cafcc
parent 504437 55a495eadcc150d65d9a8760283cc13612c59b66
child 504439 d15f0ac561d9fc06518cf12851aaecf52eba485e
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjib
bugs1306999
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1306999 - Change from "playing" to "loadeddata" before assuming there's a video frame. r=jib Differential Revision: https://phabricator.services.mozilla.com/D12929
dom/media/test/test_streams_individual_pause.html
--- a/dom/media/test/test_streams_individual_pause.html
+++ b/dom/media/test/test_streams_individual_pause.html
@@ -29,17 +29,17 @@ async function startTest() {
     await pushGetUserMediaTestPrefs({fakeAudio: true, fakeVideo: true});
     let stream = await navigator.mediaDevices.getUserMedia({video: true});
     let video1 = document.getElementById('video1');
     let video2 = document.getElementById('video2');
 
     video1.srcObject = stream;
     video2.srcObject = stream;
 
-    video1.onplaying = () => video1.pause();
+    video1.onloadeddata = () => video1.pause();
 
     let v1PausedImageData;
     let v2PausedImageData;
 
     video1.onpause = function() {
       v1PausedImageData = getVideoImagePixelData(video1);
       v2PausedImageData = getVideoImagePixelData(video2);
       v2TimesToTest = 3;