Closed
Bug 1314886
Opened 8 years ago
Closed 8 years ago
Intermittent dom/media/test/test_streams_element_capture_reset.html | checking vout has not ended - got true, expected false
Categories
(Core :: Audio/Video: MediaStreamGraph, defect, P2)
Core
Audio/Video: MediaStreamGraph
Tracking
()
RESOLVED
FIXED
mozilla53
Tracking | Status | |
---|---|---|
firefox-esr45 | --- | unaffected |
firefox51 | --- | unaffected |
firefox52 | --- | fixed |
firefox53 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: pehrsons)
References
Details
(Keywords: intermittent-failure)
Attachments
(1 file)
Updated•8 years ago
|
Component: Audio/Video → Audio/Video: Recording
Updated•8 years ago
|
Rank: 35
Priority: -- → P3
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 6•8 years ago
|
||
Raising prio here given the frequency. It might just be fallout from MediaStream.active, that changed how media elements end when playing MediaStreams.
Assignee: nobody → pehrson
Rank: 35 → 25
Component: Audio/Video: Recording → Audio/Video: MediaStreamGraph
Priority: P3 → P2
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 8•8 years ago
|
||
Looking at Orangefactor it's clearly fallout from bug 1208316, but I'm not sure how yet.
Blocks: 1208316
Assignee | ||
Updated•8 years ago
|
status-firefox51:
--- → unaffected
status-firefox52:
--- → affected
status-firefox53:
--- → affected
status-firefox-esr45:
--- → unaffected
Assignee | ||
Comment 9•8 years ago
|
||
I think this happens if the srcObject doesn't see any tracks asynchronously before v ends. We call mozCaptureStream before metadata has loaded so we rely on tracks appearing from MediaStreamGraph. That is an async operation and with the src of v being so short there might be timing issues.
Really I think the underlying problem is that HTMLMediaElement.ended is somewhat naively implemented as !MediaStream.active. This would mean that the media element is ended directly after play() if there were no tracks in the source.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 12•8 years ago
|
||
Actually there's language in mediacapture-main about ending on inactive that doesn't care for readyState.
It's in conflict with the html spec but the html spec has not been updated for MediaStreams yet. I'll stick with mediacapture-main then, and update this intermittent test to just have better guarantees on when the tracks are created.
Flags: needinfo?(pehrson)
Comment hidden (mozreview-request) |
Comment 14•8 years ago
|
||
mozreview-review |
Comment on attachment 8819525 [details]
Bug 1314886 - Call mozCaptureStream() after "loadedmetadata" in test_streams_element_capture_reset.
https://reviewboard.mozilla.org/r/99268/#review102130
::: dom/media/test/test_streams_element_capture_reset.html:124
(Diff revision 2)
> - vout_untilended.play();
> + vout_untilended.play();
> +
> + v.play();
> + };
> +
> + v.addEventListener("loadedmetadata", loadedmetadata, false);
You can do:
v.addEventListener('someEvent', handler_once, {once: true});
Attachment #8819525 -
Flags: review?(jwwang) → review+
Assignee | ||
Comment 15•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8819525 [details]
Bug 1314886 - Call mozCaptureStream() after "loadedmetadata" in test_streams_element_capture_reset.
https://reviewboard.mozilla.org/r/99268/#review102130
> You can do:
> v.addEventListener('someEvent', handler_once, {once: true});
Such modern! Thanks.
Comment hidden (mozreview-request) |
Comment 17•8 years ago
|
||
Pushed by pehrsons@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/bafb20dd3221
Call mozCaptureStream() after "loadedmetadata" in test_streams_element_capture_reset. r=jwwang
Comment 18•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Comment 19•8 years ago
|
||
bugherder uplift |
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•