Andreas Pehrson
77ff7077b7
Bug 1208316 - Notify watchers on StreamListener::Forget(). r=jib
...
This makes sense because the result of StreamListener::NextFrameStatus depends
on mElement.
MozReview-Commit-ID: 8W7nGLpRxE1
2016-09-13 10:42:28 +02:00
Andreas Pehrson
0525598f25
Bug 1208316 - Punch a hole for media element captureStream to only go inactive as source ends. r=jib
...
MozReview-Commit-ID: 3H0m3fYMw1Y
2016-09-15 14:18:22 +02:00
Andreas Pehrson
ed326949b2
Bug 1208316 - Rename MediaStreamTrack::NotifyEnded to OverrideEnded. r=jib
...
Better semantics for what I want to do with NotifyEnded in later patches in the bug.
MozReview-Commit-ID: 8X0BdiVncNo
2016-09-08 11:06:21 +02:00
Andreas Pehrson
3544baefc6
Bug 1208316 - End a media element when its MediaStream source goes inactive. r=jib
...
MozReview-Commit-ID: 89LMDSsJLJP
2016-09-08 13:42:36 +02:00
Sebastian Hengst
575fcbc28d
Backed out changeset fc6a63bedaec (bug 1298027) for timing out in test_eme_stream_capture_blocked_case3.html on Windows 7 opt and pgo. r=backout a=backout
...
MozReview-Commit-ID: DR4bw1NuCga
2016-10-31 19:56:09 +01:00
Bryce Van Dyk
596e805212
Bug 1298027 - Relax decoder shutdown and mediakey removal on MediaElement suspension. r=cpearce
...
This changeset relaxes the shutting down of decoders and removal of mediakeys
when suspending HTMLMediaElements. This should now only happen for adobe
primetime. This alleviates, for non-primetime CDMs, the issue of videos
breaking when moving an EME protected video from a tab to a new window.
These conditions can be relaxed as neither clearkey or widevine support
secure stop. This means we don't need to shutdown their decoders and keys to
signal a stoppage, as at this stage, doing so doesn't give us secure stop and
instead means that playback is busted when we try to resume.
MozReview-Commit-ID: 3MGNXGGDVLS
2016-10-31 10:55:19 +13:00
Ryan VanderMeulen
112d5746d5
Merge autoland to m-c. a=merge
2016-10-29 09:12:45 -04:00
Chris Pearce
971e0b82b8
Bug 1308821 - Ensure ClearKey doesn't parse a keyids initdata format session type parameter. r=kikuo
...
The specification doesn't require there to be a 'type' member of
the keyids init data format.
MozReview-Commit-ID: 7mOm7KwyyuC
2016-10-09 20:42:01 -07:00
Jean-Yves Avenard
fa704bc3a2
Bug 1312886: P7. Handle case where nextFrameStatus jumps straight to NEXT_FRAME_UNAVAILABLE_BUFFERING. r=jwwang
...
Under some circumstances, we will go from NEXT_FRAME_AVAILABLE to NEXT_FRAME_UNAVAILABLE_BUFFERING directly. We handle this condition now
MozReview-Commit-ID: JVAQhsgzSp2
2016-10-27 21:12:20 +11:00
Jean-Yves Avenard
e8d8b147cc
Bug 1312886: P2. Never move past HAVE_FUTURE_DATA if we're waiting for a key, r=cpearce
...
MozReview-Commit-ID: KWERB7zWXPZ
2016-10-27 16:36:37 +11:00
Alastor Wu
47b76aa673
Bug 1302453 - part1 : send new gecko event when media is resumed. r=baku
...
We uses "media-playback" event to notify fennec media control about media start
and end. However, if we resume media which was paused by media control, it won't
send any notification to JAVA side so that the MediaControlService can't change
the correct playing icon.
Therefore, we create new event to inform this situation.
MozReview-Commit-ID: zScaHxvHXM
2016-10-27 09:59:55 +08:00
Phil Ringnalda
4e7b8ffe96
Backed out changeset 9b132e52aa0a (bug 1308821) for wpt encrypted-media/clearkey timeouts and unexpected passes
2016-10-26 19:07:49 -07:00
Phil Ringnalda
8d05ea8fc9
Merge m-c to autoland
2016-10-26 18:57:56 -07:00
Chris Pearce
6cdfe5bc11
Bug 1308821 - Ensure ClearKey doesn't parse a keyids initdata format session type parameter. r=kikuo
...
The specification doesn't require there to be a 'type' member of
the keyids init data format.
MozReview-Commit-ID: 7mOm7KwyyuC
2016-10-09 20:42:01 -07:00
Andreas Pehrson
d115f7756f
Bug 1294605 - Media element captureStream() streams shouldn't keep devices alive. r=jib
...
MozReview-Commit-ID: 3tSFbygTZs1
2016-08-29 16:27:11 +02:00
Jean-Yves Avenard
8b2fd32bbe
Bug 1312594: Do not clear resource when error occurs. r=jwwang
...
MozReview-Commit-ID: EFrURgSYvdb
2016-10-25 13:36:26 +11:00
Chris Pearce
e3a94f36b3
Bug 1310548 - Delay firing of 'waitingforkey' until all decoded data has been rendered. r=jya
...
This means 'waitingforkey' will be fired at a predictable time.
MozReview-Commit-ID: HMt1RbgrbuR
2016-10-17 14:16:54 +13:00
Sebastian Hengst
afd79ed980
Backed out changeset 443a94083e00 (bug 1294605)
2016-10-20 20:03:16 +02:00
Andreas Pehrson
a60add0093
Bug 1294605 - Media element captureStream() streams shouldn't keep devices alive. r=jib
...
MozReview-Commit-ID: 3tSFbygTZs1
2016-08-29 16:27:11 +02:00
Iris Hsiao
3ad128e662
Backed out changeset 8e21afb88dbb (bug 1294605)
...
CLOSED TREE
2016-10-26 17:54:51 +08:00
Andreas Pehrson
f0c8116796
Bug 1294605 - Media element captureStream() streams shouldn't keep devices alive. r=jib
...
MozReview-Commit-ID: 3tSFbygTZs1
2016-08-29 16:27:11 +02:00
Sebastian Hengst
82cf47929c
Bug 1306137 - remove b2g camera code: Remove dom/camera/ and code which depends on it. r=aosmond,bkelly
...
MozReview-Commit-ID: 7gvZrDtmcZP
2016-10-04 20:16:28 +02:00
Gerald Squelart
7012f597be
Bug 1176218 - p4. Use DecoderTraits::CanHandleContentType in HTMLMediaElement - r=jya
...
MozReview-Commit-ID: IQFvgI6h1tE
2016-09-26 13:31:57 +10:00
Alastor Wu
68bd777317
Bug 1308119 - replace nsIAudioChannelAgent with AudioChannelAgent. r=baku
...
Since I want to use more agent's functions in MediaElement and I don't think these functions need to be exposed on IDL level. (for other languages binding)
Therefore, I want to use AudioChannelAgent directly in MediaElement.
MozReview-Commit-ID: 43FvDeLpZPt
2016-10-07 10:35:01 +08:00
Alastor Wu
d136c8375b
Bug 1302084 - the error checking should have highest priority. r=baku
...
MozReview-Commit-ID: 9QC5CG7p28M
2016-10-06 12:07:33 +08:00
Alastor Wu
a840bd443c
Bug 1303554 - part2 : remove the b2g specific checking in IsCurrentlyPlaying(). r=baku
...
MozReview-Commit-ID: 5kUJc24uEIH
2016-10-05 10:07:54 +08:00
Alastor Wu
386b38a04e
Bug 1303554 - part1 : notify start-playing after having enough data. r=baku
...
Regression by bug1262053 because of removing the current playing checking.
It would cause that the media control on Fennec shows too early and some media
elements would also generate the media control even it doens't have available
source.
Therefore, I think we still need to add this checking back.
MozReview-Commit-ID: 1m1ywmLmpSe
2016-10-05 10:07:49 +08:00
Chris Pearce
5e61ecb202
Bug 1307595 - Fixup bad merge conflict resolution from Bug 1300654/8eef5d2cc850. r=partial-backout
...
8eef5d2cc850 in Bug 1300654 incorrectly resolved a merge conflict and backed
out part of the fix for Bug 1280829. Relanding.
MozReview-Commit-ID: 6DIkUrc9R4t
2016-10-05 13:12:03 +13:00
JW Wang
4e413b1c9f
Bug 1239899. Part 2 - per spec. await a stable state to pause the element when it is removed from the document. r=cpearce
...
MozReview-Commit-ID: BCCWgXmUchU
2016-09-23 16:16:43 +08:00
JW Wang
19ae50ff0f
Bug 1239899. Part 1 - Remove ElementInTreeState for ELEMENT_NOT_INTREE and ELEMENT_INTREE are not used at all. We can use a bool flag to do the job. r=cpearce
...
MozReview-Commit-ID: 4htNy1dZODF
2016-09-23 14:51:52 +08:00
JW Wang
518fc1c4c9
Bug 1304134. Part 2 - per spec. fire 'playing' when autoplay is activated. r=cpearce
...
MozReview-Commit-ID: 4fFUvquMgEC
2016-09-23 14:05:44 +08:00
JW Wang
eacc863b95
Bug 1304134. Part 1 - per spec. ( https://dev.w3.org/html5/spec-preview/media-elements.html#ready-states ) 'playing' should be fired before activating autoplay. r=cpearce
...
Also replace the check for IsPotentiallyPlaying() with !mPaused because mReadyState >= HAVE_FUTURE_DATA guarantees playback is not ended.
MozReview-Commit-ID: HetaVDgYEW0
2016-09-23 14:03:50 +08:00
Carsten "Tomcat" Book
a4f6123bde
Merge mozilla-central to autoland
2016-09-28 16:52:13 +02:00
James Andreou
1e947fec6c
Bug 1282124 - Remove nsILoadInfo.usePrivateBrowsing and the SEC_FORCE_PRIVATE_BROWSING flag; r=smaug,jryans
2016-09-27 16:56:44 -04:00
James Cheng
42e8029df1
Bug 1300654 Part1-Remove MOZ_EME from code base. r=cpearce,smaug
...
MozReview-Commit-ID: JboGO0w4tcE
2016-09-08 18:06:20 +08:00
Carsten "Tomcat" Book
829190e2b0
Merge mozilla-central to mozilla-inbound
2016-09-22 11:56:22 +02:00
Chris Pearce
af78e9f93a
Bug 1304604 - Use EventTarget to simplyfy HTMLMediaElement.onencrypted implementation. r=smaug
...
MozReview-Commit-ID: EUpZX4ODgNj
2016-09-22 16:25:38 +12:00
Chris Pearce
4f67ef3293
Bug 1304247 - Implement HTMLMediaElement.onwaitingforkeys. r=smaug
...
MozReview-Commit-ID: DhNV30BfksS
2016-09-21 14:10:26 +12:00
Chris Pearce
189d63eef1
Bug 1280829 - Only block non-MSE content which is encrypted once it reaches load metadata. r=jya
...
Previously, we'd block loading of non-MSE content when there was a MediaKeys
attached, that is, we'd assume that all content was EME content if a MediaKeys
was attached. But some sites attach a MediaKeys and then load non-MSE non-EME
content, and that (despite being a bit silly) shouldn't fail.
MozReview-Commit-ID: 9LupWaehXim
2016-09-21 13:04:01 +12:00
Jean-Yves Avenard
1466fb42de
Bug 1303970: P2. Fix "If the media data fetching process is aborted by the user steps". r=jwwang
...
MozReview-Commit-ID: 6n91VY00gAo
2016-09-20 19:52:06 +10:00
Jean-Yves Avenard
976b820536
Bug 1303970: P1. MEDIA_ERR_ABORTED can be returned even if readyState is HAVE_NOTHING. r=jwwang
...
So change assertion accordingly.
MozReview-Commit-ID: AuaDlyF0MAL
2016-09-20 19:36:09 +10:00
JW Wang
19c0ee3464
Bug 1303347 - add assertions for debugging if Observe() could ever happen after Unsubscribe(). r=cpearce
...
MozReview-Commit-ID: 9XhGYI3fTqb
2016-09-20 11:27:46 +08:00
Jean-Yves Avenard
d227fd5005
Bug 1302632: P4. Do not change network state to NETWORK_EMPTY. r=jwwang
...
There's no such step defined in the spec. Despite, this code can no longer be called when readyState is HAVE_NOTHING
MozReview-Commit-ID: 2fDoNHt1COp
2016-09-15 16:20:43 +10:00
Jean-Yves Avenard
1933de1197
Bug 1302632: P3. Provide failures details to error attribute. r=jwwang
...
MozReview-Commit-ID: 3eIXOF96UR4
2016-09-15 16:17:10 +10:00
Jean-Yves Avenard
51330b8560
Bug 1302632: P1. Set proper error code when readyState is HAVE_NOTHING. r=jwwang
...
MozReview-Commit-ID: CMQkW5pPDF2
2016-09-14 16:45:52 +10:00
Phil Ringnalda
f2abe31659
Backed out 5 changesets (bug 1302632) for forthcoming failures
...
Backed out changeset f2ced742d6aa (bug 1302632)
Backed out changeset 55e7962d4fc0 (bug 1302632)
Backed out changeset b20f7c887e6c (bug 1302632)
Backed out changeset 22772e4a9c72 (bug 1302632)
Backed out changeset 7d7558864a66 (bug 1302632)
2016-09-15 21:39:00 -07:00
Jean-Yves Avenard
b4ab814b97
Bug 1302632: P4. Do not change network state to NETWORK_EMPTY. r=jwwang
...
There's no such step defined in the spec. Despite, this code can no longer be called when readyState is HAVE_NOTHING
MozReview-Commit-ID: 2fDoNHt1COp
2016-09-15 16:20:43 +10:00
Jean-Yves Avenard
9bf064bc81
Bug 1302632: P3. Provide failures details to error attribute. r=jwwang
...
MozReview-Commit-ID: 3eIXOF96UR4
2016-09-15 16:17:10 +10:00
Jean-Yves Avenard
5faeec0612
Bug 1302632: P1. Set proper error code when readyState is HAVE_NOTHING. r=jwwang
...
MozReview-Commit-ID: CMQkW5pPDF2
2016-09-14 16:45:52 +10:00
Boris Zbarsky
ebe22a8365
Bug 1302304. Remove IDL bits that reference nsIDOMMediaError; it's not needed anymore. r=bkelly
2016-09-15 11:41:35 -04:00