Граф коммитов

321 Коммитов

Автор SHA1 Сообщение Дата
Dragana Damjanovic 645513565f Bug 1125916 - Fix code that miss proper flags and originAttributes in LoadInfo. Also fix some tests. r=sicking, r=jduell
--HG--
extra : rebase_source : 2a08f0208496671439ce62a576b5f8a728bbdf3c
extra : amend_source : 30412ab68cc0ee4469a88e41b6ce81c908a26535
extra : histedit_source : 1faae352f7fbf7c4c7a9e1e571ca395c853a1334
2016-04-13 15:34:36 +02:00
Dan Glastonbury bdceaeb447 Bug 1262358 - Part 1: Split autoplay condition into statements. r=cpearce
MozReview-Commit-ID: 19f4XOa4Kzw

--HG--
extra : rebase_source : c6d8f6c96e1c519e43eff6144289a8fc6eea4827
2016-04-06 17:30:06 +10:00
Andreas Pehrson 46569d09a9 Bug 1208371 - Forward declare DOMMediaStream in HTMLMediaElement.h. r=jesup
MozReview-Commit-ID: KUPovpKfgek

--HG--
extra : rebase_source : 89b1b623399b7ebc9711f5a012fd9e69b60b32db
2016-01-23 23:20:28 +08:00
Andreas Pehrson ee5913bb8b Bug 1208371 - Move MediaStreamTrack's label to MediaStreamTrackSource. r=jib
MozReview-Commit-ID: Aj7Cht4zxc6

--HG--
extra : rebase_source : c454a9f2b81a6a1eb574c1abee0fab64abbe5b72
2016-01-22 16:27:37 +08:00
Andreas Pehrson e899edc733 Bug 1208371 - Ensure a media element's ImageContainer is protected when playing a stream. r=mt,jesup
HTMLMediaElement needs special protection when playing a stream since its
ImageContainer can outlive the video track of a stream.

Consider for instance when a (cross-origin) video track is removed from a
DOMMediaStream by a user and the remaining video track (non-CORS) does not yet
contain any actual video frames. The HTMLMediaElement will display a frame from
the removed track but the DOMMediaStream's principal has been updated to not
include the principal from the removed track.

With this patch we handle this by letting VideoFrameContainer notify
HTMLMediaElement when it has flushed out all video frames belonging to a
certain PrincipalHandle. I.e., when a new PrincipalHandle has been applied to the
underlying ImageContainer.

MozReview-Commit-ID: LvIZPl6Rdgj

--HG--
extra : rebase_source : cfbad5e5e7f43af4da4bfc213494b7b8e22cde17
2016-02-04 09:27:09 +08:00
Andreas Pehrson 705ec66ce8 Bug 1208371 - Remove ref counting from DOMMediaStream::TrackListener. r=roc
This makes it consistent with PrincipalChangeObserver.

MozReview-Commit-ID: 91PtqFZRcW6

--HG--
extra : rebase_source : e39abb668be7fbd0dae0a701ec17b048c8761879
2016-01-05 10:16:28 +08:00
Andreas Pehrson c742b9dadf Bug 1208371 - Change HTMLMediaElement video sinks to check principal for video only tracks. r=mt
MozReview-Commit-ID: KGbyJDgpBOn

--HG--
extra : rebase_source : 526556a2174417ec68cb0a84acb1f3fe704ebaf0
2016-01-26 15:36:52 +08:00
Andreas Pehrson 00a36d0421 Bug 1208371 - Move HTMLMediaElement::CaptureStream to forward CORSMode changes through MediaStreamTrackSource. r=mt
MozReview-Commit-ID: 6bMpKO6ccjd

--HG--
extra : rebase_source : 86e9eb25c3401f566a07549d068336c0a6bdcd73
2016-01-05 10:16:27 +08:00
Andreas Pehrson a47ce20618 Bug 1208371 - Rename CreateOwnDOMTrack/CreateClonedDOMTrack to CreateDOMTrack/CloneDOMTrack. r=jib
MozReview-Commit-ID: DOGiwcYycJY

--HG--
extra : rebase_source : 197fc7a7c5d36200f987c38f26ab77ec8ea2d290
2016-01-05 10:16:26 +08:00
Andreas Pehrson 0396985d77 Bug 1208371 - Route ApplyConstraints through MediaStreamTrackSource. r=jib
MozReview-Commit-ID: CnJnxszKU4o

--HG--
extra : rebase_source : f5ef65897108b3feadd51b8b11a47f65a7a71ff1
2016-02-01 22:43:38 +08:00
Andreas Pehrson 70707f7c85 Bug 1208371 - Make HTMLMediaElement::CaptureStream pass its principal to MediaStreamTrack. r=mt
MozReview-Commit-ID: 7ERLRSM8fz6

--HG--
extra : rebase_source : 99504bb19ac35eea6889a507589710c3575e8b0f
2016-01-14 18:34:39 +08:00
Andreas Pehrson ba233fd622 Bug 1208371 - Add an interface DecoderPrincipalChangeObserver to HTMLMediaElement. r=roc
MozReview-Commit-ID: DwDHDE7SLxY

--HG--
extra : rebase_source : 73f74260d8b62bb4838ab5a5c4b2153a251c5d95
2016-01-14 11:38:08 +08:00
Andreas Pehrson 5401608e6c Bug 1208371 - Add MediaStreamTrackSourceGetter interface. r=roc
This allows DOMMediaStream to assign MediaStreamTrackSources to
dynamically created MediaStreamTracks.

MozReview-Commit-ID: 3v91zLiqfl7

--HG--
extra : rebase_source : 4fe67e92b9c833fe5ba964fc5f3b11ba21447f36
2016-01-05 10:16:21 +08:00
Andreas Pehrson 9899305f28 Bug 1208371 - Add a MediaStreamTrackSource interface. r=roc
This lets a MediaStreamTrack communicate with its source/producer on the
main thread. It's for now used for stopping a track at the source and
retrieving some metadata, but it could also be a link between actual
sinks of a track and the source, to for instance let the source optimize
by scaling down the resolution when all sinks want lowres-video.

MozReview-Commit-ID: D4SJLr0aqhJ

--HG--
extra : rebase_source : ea511b5c86ca4836bfa980825f04617fef498261
2016-04-06 14:46:56 +02:00
Andreas Pehrson 88628853b2 Bug 1208371 - Move OnTracksAvailableCallback out of DOMMediaStream. r=roc
So it can be forward declared.

MozReview-Commit-ID: 4RH7p8AzO84

--HG--
extra : rebase_source : e9c4ef72029de4ed09dca3b51ba2b46829f41d14
2016-01-05 10:16:21 +08:00
ctai 61b8bad2ea Bug 1260950 - Set mInitialSizeFound to true when the initial size id found. r=jesup, r=pehrsons a=kwierso
MozReview-Commit-ID: Ch3jCR4pFYN

--HG--
extra : histedit_source : d00a90ec1e574db721fe71672ee7f83be01d646b
2016-03-31 10:13:04 +08:00
Bryce Van Dyk 939ab2b661 Bug 657791 - Update seekable range handling for cueless WebMs. r=kinetik
MediaDecoder previously had 3 states within GetSeekable(), media is either
seekable, seekable but not supported by transport, or not seekable. Due to
changes to make cueless webms playable, a 4th option is needed: a file that is
not fully seekable, but may support seeking from the transport, such as these
webms, should only be seekable in the buffered range.

MozReview-Commit-ID: ISeFkngtrGU
2016-02-04 17:31:21 +13:00
Louis Christie 7ed38d2a0c Bug 1238433 - Added telemetry for the proportion of dropped frames. r=cpearce, f=bsmedberg
--HG--
extra : rebase_source : 91c250240b61435f6d9f1a757ec27446be31301b
2016-02-18 15:22:13 +13:00
Carsten "Tomcat" Book 474154ff85 Backed out changeset c7be30a5321e (bug 1238433) for bustage 2016-02-18 10:52:03 +01:00
Louis Christie 9bc9dd2c5c Bug 1238433: Added telemtry for the proportion of frames dropped during playback. r=cpearce 2016-02-12 10:02:00 +13:00
Louis Christie 4c838427c5 Bug 1245982 - Added telemetry for the number of uses of HTMLMediaElement.fastSeek(). r=cpearce 2016-02-05 16:32:41 +13:00
Jean-Yves Avenard 722e4fee21 Bug 1246521: P1. Add MediaDecoderOwner::HasError method. r=gerald 2016-02-08 16:31:42 +11:00
Kyle Huey 91efc5a86c Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Andreas Pehrson 25fa1d3d1f Bug 1240478 - Have MediaStreamSizeListener active immediately, until the initial size is known. r=jesup
--HG--
extra : commitid : LOVuNvHmDD6
extra : rebase_source : 720470f0f836b216430af294f2826e6812818ac3
2016-01-29 11:10:19 +08:00
Andreas Pehrson 48118bd9fb Bug 1240478 - Assert that we know the video size on 'loadedmetadata'. r=jesup
--HG--
extra : commitid : IDLThD8QqJ5
extra : rebase_source : 2b2b43c31f52480e2f95f0942c39774029c31d49
2016-01-21 19:42:55 +08:00
Andreas Pehrson 6d413b9548 Bug 1240478 - Remove Mutex from MediaStreamSizeListener. r=jesup
--HG--
extra : commitid : 2B5R4zAz8ne
extra : rebase_source : 4c9009c95163fa8892fd052467e12da44432697a
2016-01-21 19:42:54 +08:00
Sebastian Hengst fc1563722d Backed out changeset c8013b27a0fa (bug 1239899) for failing W(2). r=backout 2016-01-29 00:32:51 +01:00
Chris Pearce 223831a376 Bug 1239899 - Pause media elements removed from document via calling pause(). r=roc
The spec requires us to await a stable state and pause when a media element is removed from a document.

Additionally, before this change we would pause in UnbindFromTree only if HTMLMediaElement::mPaused is false.
However if the media element is set to autoplay, and we unbind before autoplay has had a chance to activate,
we will still continue loading and activate autoplay later. Calling pause, as required by the spec, means
we'll cancel autoplaying.

--HG--
extra : amend_source : 47f89e1a1e855f9304fbd12959f636c973ddf356
2016-01-15 15:54:54 +13:00
Andrea Marchesini 43bdbe1143 Bug 1224936 - AudioChannelAgent should be informed when HTMLMediaElement dispatches an error, r=roc 2016-01-25 16:03:42 +00:00
JW Wang 82d61b385d Bug 1241405 - reset mCurrentPlayRangeStart in AbortExistingLoads(). r=jya. 2016-01-25 10:52:54 +08:00
Phil Ringnalda fefdfab323 Back out 4 changesets (bug 1240478) for somehow causing bug 1242085
Backed out changeset 31629671c71c (bug 1240478)
Backed out changeset bc9a56a067b5 (bug 1240478)
Backed out changeset 485bd08acb96 (bug 1240478)
Backed out changeset 38ef99bddd74 (bug 1240478)
2016-01-22 23:26:45 -08:00
Andreas Pehrson a8d30ac647 Bug 1240478 - Have MediaStreamSizeListener active at all times, not only when playing. r=jesup
--HG--
extra : rebase_source : d5f0e7be0aabd6a78e6ed92a33dc80d442813c84
2016-01-21 19:42:55 +08:00
Andreas Pehrson 9f79834068 Bug 1240478 - Assert that we know the video size on 'loadedmetadata'. r=jesup
--HG--
extra : rebase_source : 3808a82751b5471c9cd8f6e179d4742598f43806
2016-01-21 19:42:55 +08:00
Andreas Pehrson 8ee887650b Bug 1240478 - Remove Mutex from MediaStreamSizeListener. r=jesup
--HG--
extra : rebase_source : 3bd448b8a74b5e5962f4767421a29bbf9d89c7eb
2016-01-21 19:42:54 +08:00
Alastor Wu abde274a94 Bug 1238906 - part2 : notify audible state from MDSM to ME. r=jwwang
--HG--
extra : rebase_source : 74629c314b3d828a5d9b514bf6cca87f7c1f57de
2016-01-21 10:27:38 +08:00
Jean-Yves Avenard f80d48caac Bug 1236703: P3. Add moz specific method to retrieve debug data to media object IDL. r=bz 2016-01-20 09:50:26 +11:00
Sebastian Hengst 9249e58bdf Backed out 2 changesets (bug 1238906) for bustage in M(2) on OSX and Windows. r=bustage
Backed out changeset e729b30ba7b4 (bug 1238906)
Backed out changeset 1857bca40ac4 (bug 1238906)
2016-01-18 13:11:43 +01:00
Emilio Cobos Álvarez b5364082de Bug 866513 - Non-empty MediaStreamTrack labels. r=jib 2016-01-16 13:39:00 +01:00
Alastor Wu bbcb84cc7b Bug 1238906 - part2 : notify audible state from MDSM to ME. r=jwwang
--HG--
extra : transplant_source : %A6I%CA%AC%95%AD%0C%7D%40K%8C_%8B%3D%15%BC%F7%FB%86%27
2016-01-18 10:50:47 +08:00
JW Wang 4627500b49 Bug 1237616 - Remove the aForceBuffering arugment from MediaDecoder::Resume(). r=cpearce. 2016-01-12 08:04:32 +08:00
Chris Pearce 967b559ecc Bug 1233274 - Don't shutdown detached MediaKeys. r=gerald 2016-01-06 13:28:43 +13:00
JW Wang 9e2d0d9fab Bug 1230483 - Part 2 - LoadFromSourceChildren() should be queued at most once in an event cycle. r=roc 2015-12-21 19:55:43 +08:00
Sotaro Ikeda 6247e12af2 Bug 1205713 - Merge ImageHostOverlay/ImageClientOverlay to ImageHost/ImageClient r=nical 2015-12-29 01:07:33 -08:00
Bobby Holley fe24a17559 Bug 1235411 - Remove IsCallerChrome check in HTMLMediaElement::Observe. r=khuey 2015-12-28 10:46:33 -08:00
Kartikaya Gupta 923650a36e Bug 1228564 - Follow-up to fix static analysis build bustage. r=me 2015-12-27 10:27:15 -05:00
Alastor Wu f0d62419f0 Bug 1228564 - part 2 : check audio capturing when the agent is registered/unregistered. r=baku. 2015-12-24 17:28:45 +08:00
Alastor Wu 6a38526a4d Bug 1228564 - part 1 : revert the changeset of bug 1190040. r=baku. 2015-12-24 17:17:30 +08:00
Sebastian Hengst 3c1eb47e3a Backed out changesets 961f205d340d, 14a4637e9d96 and 14a4637e9d96 (bug 1228564) for failing Android M(4) test_browserElement_inproc_AudioChannel.html. r=backout 2015-12-27 22:28:08 +01:00
Kartikaya Gupta a99ad5c222 Bug 1228564 - Follow-up to fix static analysis build bustage. r=me
--HG--
extra : commitid : BazDeeUXc8U
2015-12-27 10:27:15 -05:00
Alastor Wu 7ff9329b36 Bug 1228564 - part 2 : check audio capturing when the agent is registered/unregistered. r=baku.
--HG--
extra : commitid : B7NcXGTFGrv
2015-12-24 17:28:45 +08:00