Closed Bug 1148179 Opened 11 years ago Closed 6 years ago

[EME] Tests to provide keys before track data

Categories

(Core :: Audio/Video: Playback, defect, P3)

defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox38 --- ?

People

(Reporter: mozbugz, Assigned: mozbugz)

References

Details

Attachments

(1 file, 2 obsolete files)

To help with test reproducibility, EME tests should be more consistent in how they provide data. This bug focuses on one combination: 1. Append init segments to source buffers. 2. For each 'encrypted' event, setup the session and provide needed keys. 3. After all init segments have been sucessfully updated, and all keys have been provided, append data segments. (Other bugs will deal with other combinations)
Added playback test that only appends track data after all init and keys have been provided. The updated eme.js routines will help create more of these precise tests. Keeping old playback test for now, so we can still reproduce issues (in case the new test is "too" good!) It would be good to compare them in the long run. Preliminary tests: https://treeherder.mozilla.org/#/jobs?repo=try&revision=80c986075c03 -- More to come.
Attachment #8586010 - Flags: review?(edwin)
Still looking good: https://treeherder.mozilla.org/#/jobs?repo=try&revision=26f2dba3e770 (The 3 errors are out of 78 tests runs are in a totally unrelated area.)
Update with more logging; and some timeouts to catch never-ending XHRs, appendBuffer's, and playbacks. https://treeherder.mozilla.org/#/jobs?repo=try&revision=f0479f107d0b
Attachment #8586010 - Attachment is obsolete: true
Attachment #8586010 - Flags: review?(edwin)
Attachment #8586730 - Flags: review?(edwin)
Comment on attachment 8586730 [details] [diff] [review] 1148179-init-and-keys-before-data.patch Review of attachment 8586730 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/media/test/test_eme_playback.html @@ +110,5 @@ > + }); > + [ "canplay", "canplaythrough", "error", "loadeddata", > + "loadedmetadata", "loadstart", "pause", "play", "playing", "progress", > + "stalled", "suspend", "waiting", > + ].forEach(function(e) { lastState = e; }); I don't think this forEach does what you intend it to do. ::: dom/media/test/test_eme_playback_init_then_keys_then_data.html @@ +149,5 @@ > + }); > + [ "canplay", "canplaythrough", "error", "loadeddata", > + "loadedmetadata", "loadstart", "pause", "play", "playing", "progress", > + "stalled", "suspend", "waiting", > + ].forEach(function(e) { lastState = e; }); Here as well.
Attachment #8586730 - Flags: review?(edwin) → review+
Small update as per review in comment 4, carrying r+.
Attachment #8586730 - Attachment is obsolete: true
Attachment #8587146 - Flags: review+
B2G ICS emulator debug mochitest-13 started failing on the checkin-needed push that included this patch. I backed this one (and the one from bug 1146729) out for being the likely causes. https://hg.mozilla.org/integration/mozilla-inbound/rev/3ec4c24bfd48 https://treeherder.mozilla.org/logviewer.html#?job_id=8469225&repo=mozilla-inbound
Flags: needinfo?(gsquelart)
EME tests do not run on B2G, so I do not believe this patch has anything to do with the issue in mochitest-13. EME tests are actually in mochitest-3, which appeared clean after this checkin -- except for one appearance of an already-known intermittent (bug 1120741), which this patch here will help isolate better. Could you please try again?
Flags: needinfo?(gsquelart)
Keywords: checkin-needed
Looks like this failure IS from this patch, though, as my backout removed the failing test: https://treeherder.mozilla.org/logviewer.html#?job_id=8469901&repo=mozilla-inbound
Flags: needinfo?(gsquelart)
Keywords: checkin-needed
As explained in comment 9, this is an intermittent issue similar to the one in test_eme_playback.html (bug 1120741), but I was hoping this patch would help gather more information in a better-constrained context. Oh well, I'll have to try other things...
Flags: needinfo?(gsquelart)
Gerald, cpearce: should we uplift these test changes to Beta 38 once they land?
Flags: needinfo?(cpearce)
Priority: -- → P2
(In reply to Chris Peterson [:cpeterson] from comment #12) > Gerald, cpearce: should we uplift these test changes to Beta 38 once they > land? I think this will be a test only change, so it probably doesn't need uplifting (other than to keep the sheriff's happy by reducing orange).
Flags: needinfo?(cpearce)
Component: Audio/Video → Audio/Video: MSG/cubeb/GMP
Component: Audio/Video: MediaStreamGraph → Audio/Video: GMP
Component: Audio/Video: GMP → Audio/Video: Playback
Mass change P2 -> P3
Priority: P2 → P3

Too old now.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: