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

7739 Коммитов

Автор SHA1 Сообщение Дата
Randell Jesup b7952dd505 Bug 1294753: Flush WebM clusters if the timecode offset will over/underflow r=rillian 2016-08-18 00:31:13 -04:00
Randell Jesup 56574d1bf8 Bug 1294753: encode all available audio on each cycle instead of one 'packet' r=rillian 2016-08-18 00:31:11 -04:00
Wes Kocher a177bd0ff1 Merge m-c to inbound a=merge 2016-08-17 17:24:02 -07:00
Randell Jesup 2f4c72af04 Bug 1293976: make mAudioInputs use RefPtrs r=pehrsons 2016-08-17 16:31:56 -04:00
Carsten "Tomcat" Book 389a3e0817 merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : mobile/android/base/java/org/mozilla/gecko/GeckoAppShell.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoAppShell.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/GeckoLayerClient.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/GeckoLayerClient.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/LayerRenderer.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/LayerRenderer.java
rename : mobile/android/base/java/org/mozilla/gecko/gfx/PanningPerfAPI.java => mobile/android/geckoview/src/main/java/org/mozilla/gecko/gfx/PanningPerfAPI.java
2016-08-04 15:55:50 +02:00
Wes Kocher 9605851be0 Backed out 7 changesets (bug 1231764) for apparently causing linux debug wpt bustage
Backed out changeset 4b71272c92cf (bug 1231764)
Backed out changeset 234d8a930afa (bug 1231764)
Backed out changeset f9b204c2f5a7 (bug 1231764)
Backed out changeset f933119e57e4 (bug 1231764)
Backed out changeset e3af0b1d3473 (bug 1231764)
Backed out changeset 643b03aae1dd (bug 1231764)
Backed out changeset a945dbf63410 (bug 1231764)

--HG--
extra : rebase_source : e71360fa4b5e3e74859c82e74e183e13e6211c4c
2016-08-03 16:27:06 -07:00
Sebastian Hengst 9a11ee24d8 Backed out changeset b531c8bff6e9 (bug 1201363) for timeout in GTest VP8VideoTrackEncoder.FrameEncode. r=backout 2016-08-03 19:33:55 +02:00
Sebastian Hengst 120f502e2a Backed out changeset 3851902daa94 (bug 1201363) 2016-08-03 19:33:25 +02:00
Sebastian Hengst 70a5dca1bd Backed out changeset 263cc3ad83c2 (bug 1201363) 2016-08-03 19:33:25 +02:00
Sebastian Hengst 1fe0a1cfb8 Backed out changeset 91e5ccbeef19 (bug 1201363) 2016-08-03 19:33:25 +02:00
Sebastian Hengst f0fd44f274 Backed out changeset 0744bfe6854f (bug 1201363) 2016-08-03 19:33:25 +02:00
Sebastian Hengst f4671c3b11 Backed out changeset 4111e388bd90 (bug 1201363) 2016-08-03 19:33:25 +02:00
Sebastian Hengst e7ab762e14 Backed out changeset 7c07c4aa3569 (bug 1201363) 2016-08-03 19:33:24 +02:00
Sebastian Hengst 253063065c Backed out changeset 64b256cf2807 (bug 1201363) 2016-08-03 19:33:24 +02:00
Sebastian Hengst 0c81148980 Backed out changeset ecee67ed1ddf (bug 1201363) 2016-08-03 19:33:24 +02:00
JW Wang b67ae659b3 Bug 1291185 - Remove the DECODER_WARN_HELPER trick. r=bechen
MozReview-Commit-ID: 7U1p0VOvmY3

--HG--
extra : rebase_source : 207a2a5546b780c3173644becb961cf0f96ecc54
2016-08-02 16:45:28 +08:00
Carsten "Tomcat" Book eeacfbeff0 merge mozilla-inbound to mozilla-central a=merge 2016-08-03 17:03:41 +02:00
JW Wang 32c54a1d7b Bug 1290028 - Remove the check for IsShutdown() from MediaDecoder::OwnerHasError(). r=gerald
MozReview-Commit-ID: Cg5UoFngxFr

--HG--
extra : rebase_source : afece4f66454cf7b2c68ede4b5802fc445be96fa
2016-07-28 17:21:09 +08:00
JW Wang 64c1909e96 Bug 1290780. Part 9 - Assert IsShutdown() is false in DurationChanged(). r=kaku
1. The watch manager disconnect callbacks in Shutdown().
2. SetExplicitDuration() asserts !IsShutdown().
3. SetInfinite() asserts !IsShutdown().

MozReview-Commit-ID: FwWf4m5OAOP

--HG--
extra : rebase_source : 374e9c4ef31abf56f0be76826c98cd852bef1e7a
2016-07-28 16:57:09 +08:00
JW Wang 453c175228 Bug 1290780. Part 8 - Assert IsShutdown() is false in SetExplicitDuration(). r=kaku
It is called from MediaSourceDecoder::SetMediaSourceDuration() which asserts !IsShutdown().

MozReview-Commit-ID: LF8rRPZhkA2

--HG--
extra : rebase_source : 886778f70d00e8670a203e9d322e442c9d117a72
2016-07-28 16:54:53 +08:00
JW Wang 95cf484548 Bug 1290780. Part 7 - We don't want to trigger DurationChanged(). So just set mExplicitDuration without calling SetExplicitDuration(). r=jya
MozReview-Commit-ID: 5yWLhteUgQt

--HG--
extra : rebase_source : 9a17eccfc572d92317f7859d84e15e7b973e8fcd
2016-07-28 16:50:10 +08:00
JW Wang 887d693c49 Bug 1290780. Part 6 - Assert IsShutdown() is false in SetMediaSourceDuration(). r=jya
1. It is called from SetInitialDuration() when mMediaSource is non-null which happens before Shutdown() which clears |mMediaSource|.
2. It is called from MediaSource::SetDuration() which happens before MediaSourceDecoder::Shutdown() for |mDecoder| is non-null.
3. It is called from MediaSource::DurationChange() where |mDecoder| is non-null.

MozReview-Commit-ID: 56AmWRLkkiv

--HG--
extra : rebase_source : 1f9443ac3670b12401ffa5ad397638c095e72566
2016-07-28 15:52:30 +08:00
JW Wang e7c35e7871 Bug 1290780. Part 5 - Assert IsShutdown() is false in PlaybackEnded() since the callback is disconnect in Shutdown(). r=kaku
MozReview-Commit-ID: hYJjKZFhA6

--HG--
extra : rebase_source : 706b770c7f11fa53cdb2bb9f9eeae89a146601a6
2016-07-28 15:16:32 +08:00
JW Wang e073bd7c27 Bug 1290780. Part 4 - Assert IsShutdown() is false in SeekingStarted() since the callback is disconnected in Shutdown(). r=kaku
MozReview-Commit-ID: 7Q9EAhy3O7w

--HG--
extra : rebase_source : a68a9d50d0c2c669dd4c5ae0897e06c1538811d1
2016-07-28 15:13:31 +08:00
JW Wang 3d1ea356e3 Bug 1290780. Part 3 - Assert IsShutdown() is false in UpdateLogicalPositionInternal(). r=kaku
1. It is called from OnSeekResolved() which asserts !IsShutdown().
2. It is called from UpdateLogicalPosition which asserts !IsShutdown().

MozReview-Commit-ID: J8iuHdUamLS

--HG--
extra : rebase_source : 97215383aa7c409f8b63f5a6726b81df53252227
2016-07-28 15:09:03 +08:00
JW Wang b6a261b9f3 Bug 1290780. Part 2 - Assert IsShutdown() is false in MediaDecoder::OnSeekResolved() since the seek request is disconected in Shutdown(). r=kaku
MozReview-Commit-ID: Cc0iF3Lc7d2

--HG--
extra : rebase_source : 107592fc8f3a5a301599f43ebbc1c7c7c708f017
2016-07-28 15:04:36 +08:00
JW Wang cb02478192 Bug 1290780. Part 1 - Assert IsShutdown() is false in MediaDecoder::UpdateLogicalPosition(). r=kaku
1. Callbacks from the watch manager are disconnected in Shutdown().
2. It is called from MediaOmxCommonDecoder::NotifyOffloadPlayerPositionChanged() which will not happen after Shutdown().
3. It is called from MediaOmxCommonDecoder::ResumeStateMachine() which returns early when IsShutdown() is true.

MozReview-Commit-ID: COmPFaQzNTq

--HG--
extra : rebase_source : ac88698c66f4586b00fe62ad4dcdbb1cb4ce8542
2016-07-28 14:43:50 +08:00
Jan-Ivar Bruaroey a512138827 Bug 1290629 - Make default cam, which is supposed to model a real cam, nonetheless independent of webrtc includes. r=jesup
MozReview-Commit-ID: 2RiRxXCNHv6

--HG--
extra : rebase_source : 9f80a1a2170f54495d6fea3ebbb593e9b360cf6a
2016-08-01 15:36:34 -04:00
Jan-Ivar Bruaroey d3b37a02ba Bug 1213441 - Remove pc.removeStream properly. r=jesup,smaug
MozReview-Commit-ID: CvmDVGUVMN2

--HG--
extra : rebase_source : 5bd3a0f17af4160d714cf090bbc4131c22e2d4f5
2016-08-01 16:18:38 -04:00
Nils Ohlmeier [:drno] db340fd6d5 Bug 1278113: disabled audio stream analyzer debug canvas output r=padenot
MozReview-Commit-ID: CJTnzVyugMH
2016-07-20 12:22:23 -07:00
Nathan Froyd 6b2618fb44 Bug 1231764 - part 6 - build rust code via cargo; r=chmanchester
This patch is really two separate changes.

The first change is that rust crates are large, standalone entities that
may contain multitudes of source files.  It therefore doesn't make sense
to keep them in SOURCES, as we have been doing.  Moving to use cargo
will require a higher-level approach, which suggests that we need a
different, higher-level representation for Rust sources in the build
system.

The representation here is to have the build system refer to things
defined in Cargo.toml files as the entities dealt with in the build
system, and let Cargo deal with the details of actually building things.
This approach means that adding a new crate to an existing library just
requires editing Rust and Cargo.toml files, rather than dealing with
moz.build, which seems more natural to Rust programmers.  By having the
source files for libraries (and binaries in subsequent iterations of
this support) checked in to the tree, we can also take advantage of
Cargo.lock files.

The second is that we switch the core build system over to building via
cargo, rather than invoking rustc directly.

We also clean up a number of leftover things from the Old Way of doing
things.  A number of tests are added to confirm that we'll only permit
crates to be built that have dependencies in-tree.
2016-08-03 19:40:41 -04:00
Nathan Froyd d66b8b184a Bug 1231764 - part 5 - add a Cargo.toml for the dom/media/gtest/ code; r=chmanchester
We are going to need a Cargo.toml for all Rust code in the tree, no
matter how trivial.
2016-08-03 19:40:41 -04:00
Carsten "Tomcat" Book 423bdfd2fd Merge mozilla-central to mozilla-inbound
--HG--
rename : dom/media/platforms/apple/ReorderQueue.h => dom/media/platforms/ReorderQueue.h
2016-08-03 17:08:41 +02:00
Carsten "Tomcat" Book 1ec9279c2a Backed out changeset a722438c2be6 (bug 1274626) 2016-08-02 17:47:31 +02:00
Carsten "Tomcat" Book 2bcc300cca Backed out changeset 12e3777de139 (bug 1274626)
--HG--
rename : dom/media/platforms/ReorderQueue.h => dom/media/platforms/apple/ReorderQueue.h
2016-08-02 17:47:29 +02:00
Carsten "Tomcat" Book c5f40500b4 Backed out changeset 222b4883bf79 (bug 1274626) 2016-08-02 17:47:27 +02:00
Carsten "Tomcat" Book d647d056e2 Backed out changeset c5b79d4a6913 (bug 1274626) 2016-08-02 17:47:26 +02:00
Carsten "Tomcat" Book 5a3c68ee72 Backed out changeset 221e8d2b180e (bug 1274626) 2016-08-02 17:47:24 +02:00
Carsten "Tomcat" Book bd81ddd0b0 merge mozilla-inbound to mozilla-central a=merge 2016-08-02 17:09:31 +02:00
Carsten "Tomcat" Book 02adb43791 Backed out changeset 726ee2bcfdef (bug 1201363) for static build bustage 2016-08-02 12:54:13 +02:00
Carsten "Tomcat" Book 7e324b6cdb Backed out changeset b018ce9d1484 (bug 1201363) 2016-08-02 12:53:59 +02:00
Carsten "Tomcat" Book 72c34b88b3 Backed out changeset 488e4a5e859b (bug 1201363) 2016-08-02 12:53:57 +02:00
Carsten "Tomcat" Book 44057dc31a Backed out changeset cc59ebb35b26 (bug 1201363) 2016-08-02 12:53:56 +02:00
Carsten "Tomcat" Book f4f5b9bafc Backed out changeset a6bafaf6bbe6 (bug 1201363) 2016-08-02 12:53:54 +02:00
Carsten "Tomcat" Book 27cb7f4d79 Backed out changeset 06c0a7eb7bc6 (bug 1201363) 2016-08-02 12:53:53 +02:00
Carsten "Tomcat" Book 2854eb5e13 Backed out changeset 1c8af95cd440 (bug 1201363) 2016-08-02 12:53:51 +02:00
Carsten "Tomcat" Book 1d6d29d0c6 Backed out changeset 5b926a6a6e4e (bug 1201363) 2016-08-02 12:53:49 +02:00
Carsten "Tomcat" Book 1cddcd1b7d Backed out changeset e350d8c25d2e (bug 1201363) 2016-08-02 12:53:46 +02:00
Chris Pearce 7261eef5aa Bug 1289942 - Make MediaKeyStatusMap.get() return undefined for unknown keys. r=bz
The spec requires the MediaKeyStatusMap.get(keyId) function to return an 'any'
type, which is undefined for known keys, or a MediaKeyStatus enum value for
known keys.

https://w3c.github.io/encrypted-media/#idl-def-mediakeystatusmap


MozReview-Commit-ID: 3TOFYLacZSc

--HG--
extra : rebase_source : cd067f545cdbd9352ba64fea914128201b458d9c
2016-07-28 14:03:01 +12:00
JW Wang 6c38af47f2 Bug 1289976. Part 10 - Remove the IsShutdown() check from MediaDecoder::UpdateDormantState(). r=kaku
1. It is called from DormantTimerExpired(). The timer is canceled in Shutdown().
2. It is called from NotifyOwnerActivityChanged() which happens before Shutdown().
3. It is called from Play() which happens before Shutdown().
4. It is called from Seek() which happens before Shutdown().

MozReview-Commit-ID: EnKHF61FBXf

--HG--
extra : rebase_source : 04df59b6722c8340e5163a00eb916442799cfcf1
2016-07-27 10:56:46 +08:00
JW Wang 6ca3a55b72 Bug 1289976. Part 9 - Remove the IsShutdown() check from MediaDecoder::StartDormantTimer(). r=kaku
We don't need to check IsShutdown() which is a subset of |mPlayState != PLAY_STATE_PAUSED && !IsEnded()|.

MozReview-Commit-ID: BjYoLOLuPfC

--HG--
extra : rebase_source : 0d04b30a8bf955faed4907f77f0da29e0ccc011d
2016-07-27 10:52:01 +08:00
JW Wang 85e1a73473 Bug 1289976. Part 8 - Remove the IsShutdown() check from UpdateReadyState(). The callback is disconnected by the watch manager in Shutdown(). r=kaku
MozReview-Commit-ID: xVSWdj1Q0y

--HG--
extra : rebase_source : 948f622c399e1c072b4c15730a7a8c5fbd2ec696
2016-07-27 10:59:23 +08:00
JW Wang 31dcc3816b Bug 1289976. Part 7 - Remove the IsShutdown() check from MediaDecoder::Seek(). r=kaku
1. It is called from DurationChanged() which returns early when IsShutdown() is true.
2. It is called from Play() when IsEnded() is true.

MozReview-Commit-ID: Ixy5OMZHxIm

--HG--
extra : rebase_source : 4cd7229084c6af8b7123ee6c85156ef4932308f3
2016-07-27 10:49:14 +08:00
JW Wang f3ffeca57a Bug 1289976. Part 6 - Remove the IsShutdown() check from MediaDecoder::RemoveMediaTracks(). r=kaku
1. It is called from ChangeState() when IsEnded() is true.
2. It is called from OnMetadataUpdate(). The callback is disconnected in Shutdown().

MozReview-Commit-ID: 8m4jtcl91hT

--HG--
extra : rebase_source : 0988128ec6d05f07ab7b072cc70a9c2970c829c5
2016-07-27 10:44:43 +08:00
JW Wang a2d26a630a Bug 1289976. Part 5 - Remove the IsShutdown() check from MediaDecoder::Pause(). r=kaku
1. Pause() is called from HTMLMediaElement and happens before Shutdown().
2. Pause() is called from SetPlaybackRate() which is called from HTMLMediaElement.

MozReview-Commit-ID: DDr7Bg8jkF2

--HG--
extra : rebase_source : 8b8a4fdc914d0bce7572d9a1ccb0f530bdba062c
2016-07-27 10:42:20 +08:00
JW Wang 348c35b5dd Bug 1289976. Part 4 - Remove the IsShutdown() check from MediaDecoder::NotifyOwnerActivityChanged() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: 9tWLW4JE0Uv

--HG--
extra : rebase_source : 9f33359f5d8833a8f90319303a96cf029460f3ac
2016-07-27 10:38:25 +08:00
JW Wang 00ce40fb6c Bug 1289976. Part 3 - Remove the IsShutdown() check from MediaDecoder::FireTimeUpdate(). r=kaku
FireTimeUpdate() is only called from UpdateLogicalPositionInternal() which returns early when IsShutdown() is true.

MozReview-Commit-ID: 4GZwrI85aXj

--HG--
extra : rebase_source : 9d7cbd571fd794369c833723ea5fc50a26380e51
2016-07-27 10:36:09 +08:00
JW Wang 61a6cb705b Bug 1289976. Part 2 - Remove the IsShutdown() check from MediaDecoder::DumpDebugInfo() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: HU3ybjFZMsE

--HG--
extra : rebase_source : 15d9adb47be449fdaca6a37587e70ff4f1d013bf
2016-07-27 10:33:50 +08:00
JW Wang 0a748cd015 Bug 1289976. Part 1 - Remove the IsShutdown() check from MediaDecoder::ConstructMediaTracks(). r=kaku
1. ConstructMediaTracks() is called from ChangeState() when |mPlayState == PLAY_STATE_PLAYING|.
2. ConstructMediaTracks() is called from MetadataLoaded() which asserts |!IsShutdown()|.

MozReview-Commit-ID: 6OaPYcCOCii

--HG--
extra : rebase_source : 9db9e841fe8a0d797a39cd527abf4f4e95b67131
2016-07-27 10:31:14 +08:00
JW Wang 3204b02ef5 Bug 1289993. Part 2 - Call DiscardOngoingSeekIfExists() in MediaOmxCommonDecoder::CallSeek() as we do in MediaDecoder::CallSeek(). r=kaku
MozReview-Commit-ID: I1eTehXEWNv

--HG--
extra : rebase_source : 4b4af3becad7d285d09c58a09095f07d875648f8
2016-07-28 14:29:42 +08:00
JW Wang 3ac12f3e3d Bug 1289993. Part 1 - Disconnect seek requests when shutting down MediaDecoder. r=kaku
MozReview-Commit-ID: 6av1OiJatCr

--HG--
extra : rebase_source : 66891c09e3c35029e7d8f1e605b026968019e353
2016-07-28 14:28:26 +08:00
Bryce Van Dyk dc49694098 Bug 1290284 - Centralise string comparisons for H264 and VPX detection. r=cpearce
Remove string comparisons to determine from mime types if content is VPX or
H264. Replace with calls to VPXDecoder::IsVPX or MP4Decoder::IsH264 to
centralise such logic.

This patch introduces MP4Decoder:IsH264, and moves the similar functionality out
of H264Convertor for the sake of consistently having these functions in
decoders.

MozReview-Commit-ID: 5nfYusYHrUR

--HG--
extra : rebase_source : c013c4ebe28d5afedbb91ddfffadb40d23fd0ee3
2016-07-29 14:12:54 +12:00
Carsten "Tomcat" Book aca03c331f Merge mozilla-central to inbound to fix bustage 2016-08-02 17:48:32 +02:00
Carsten "Tomcat" Book 11b070211d Merge mozilla-central to mozilla-inbound 2016-08-02 17:11:27 +02:00
Eugen Sawin 442f5a19e6 Bug 1289016 - [1.2] Don't initialize suspended decoders and fix removing readers from the queue. 2016-08-02 14:55:31 +02:00
ctai ab7a790f3b Bug 1201363 - Do not copy video segment to StreamTracks in TrackUnionStream. r=jesup
Now everything is ready. We can make NotifyQueuedTrackChanges only triggered by TRACK_EVENT_CREATED and TRACK_EVENT_ENDED without breaking anything. Also we make TrackUnionStream no longer copying data in video case.

MozReview-Commit-ID: IgLx1mpBWB3

--HG--
extra : amend_source : 2c57e72a84dee45f673d7d02eaa8c973ca9f634a
2016-05-31 18:05:11 +08:00
ctai facfd7e206 Bug 1201363 - Do not copy video segment to StreamTracks in TrackUnionStream. r=jesup
Now everything is ready. We can make NotifyQueuedTrackChanges only triggered by TRACK_EVENT_CREATED and TRACK_EVENT_ENDED without breaking anything. Also we make TrackUnionStream no longer copying data in video case.

MozReview-Commit-ID: IgLx1mpBWB3

--HG--
extra : transplant_source : %9Fk%8F%20%FE%12%FC%DF%A0%C6%02%AC%D2%3C%EE%08%26%E3%9E%27
2016-05-31 18:05:11 +08:00
Chia-hung Tai 7d3f0cf614 Bug 1201363 - MediaStreamVideoSink for MediaRecorder case. r=jesup
Add MediaStreamVideoRecorderSink into MediaEncorder. In this patch, I still keep use duration to pass to TrackEncoders. Don't want to make this bug too big and out of control. We can file a new bug to change TrackEncoders use TimeStamp only.

MozReview-Commit-ID: KGftzulZynj

--HG--
extra : amend_source : 90fd7ddab4ecda4b95cd77c705cfb29692782de9
2016-06-15 16:48:44 +01:00
Chia-hung Tai fa18690dd9 Bug 1201363 - MediaStreamVideoSink for MediaRecorder case. r=jesup
Add MediaStreamVideoRecorderSink into MediaEncorder. In this patch, I still keep use duration to pass to TrackEncoders. Don't want to make this bug too big and out of control. We can file a new bug to change TrackEncoders use TimeStamp only.

MozReview-Commit-ID: KGftzulZynj

--HG--
extra : transplant_source : %3A%8Dv%85%A3%D8Y%99%D6%BB%A1%0A%BB%DE%806%C1yV%28
2016-06-15 16:48:44 +01:00
ctai 3d269ad415 Bug 1201363 - MediaStreamVideoSink for ImageCapture case. r=jesup
Make CaptureTask to inherite from MediaStreamVideoSink. The main change is to move the logic of |NotifyQueuedTrackChanges| to |SetCurrentFrames|.
The original image capture is not modified for support multiple video MediaStreamTracks. The design still used the track id in owned media stream. The should be fixed in the following bug if we still want to support ImageCapture in multiple video tracks case.

MozReview-Commit-ID: Od4tHoR8Ef

--HG--
extra : amend_source : a3318f6fd3d9104c2f84a8ed5e79cf68f304308c
2016-05-31 13:53:49 +08:00
ctai a3cc6128d3 Bug 1201363 - Call MediaStreamVideoSink::setCurrentFrames in SourceMediaStream::AppendToTrack. r=jesup
In this patch, we first deal with the case of MediaElement. Now we replace |PlayVideo| with |VideoFrameContainer::SetCurrentFrames| in |SourceMediaStream::AppendToTrack|. The MSG use TimeStamp::Now() for the TimeStamp of each video frame in most of case except MediaElement case. Becasue the MediaElement has its own VideoQueue, we need to calucalte the correct Timestamp based on the StartTimeStamp of this MediaStream and the elpased time of the video frame in DecodedStream.

MozReview-Commit-ID: 2bm2AHkFXHu

--HG--
extra : amend_source : 7b9c51dcb4046c6c807d1cf1e48bef301e45fa8e
2016-07-25 10:01:26 +08:00
ctai 5585d51040 Bug 1201363 - Adding Add/RemoveVideoOutput into VideoStreamTrack. r=jesup
MozReview-Commit-ID: JmKotuB3pBM

--HG--
extra : amend_source : 7602267521f2974e6b62c01e32259bad0be87b2a
2016-07-19 11:45:27 +08:00
ctai 608aa7e45b Bug 1201363 - MediaStreamVideoSink for ImageCapture case. r=jesup
Make CaptureTask to inherite from MediaStreamVideoSink. The main change is to move the logic of |NotifyQueuedTrackChanges| to |SetCurrentFrames|.
The original image capture is not modified for support multiple video MediaStreamTracks. The design still used the track id in owned media stream. The should be fixed in the following bug if we still want to support ImageCapture in multiple video tracks case.

MozReview-Commit-ID: Od4tHoR8Ef

--HG--
extra : transplant_source : %8D%848%99%1C%DFOz%40r%D5%F4%85%10%9A6%E1%A6%3Fs
2016-05-31 13:53:49 +08:00
ctai edeaa48113 Bug 1201363 - Call MediaStreamVideoSink::setCurrentFrames in SourceMediaStream::AppendToTrack. r=jesup
In this patch, we first deal with the case of MediaElement. Now we replace |PlayVideo| with |VideoFrameContainer::SetCurrentFrames| in |SourceMediaStream::AppendToTrack|. The MSG use TimeStamp::Now() for the TimeStamp of each video frame in most of case except MediaElement case. Becasue the MediaElement has its own VideoQueue, we need to calucalte the correct Timestamp based on the StartTimeStamp of this MediaStream and the elpased time of the video frame in DecodedStream.

MozReview-Commit-ID: 2bm2AHkFXHu

--HG--
extra : transplant_source : %C4n%D7a%10%CFK%D5%F2%DC%10%08%C2%24%EC%11%13J%DB%5D
2016-07-25 10:01:26 +08:00
ctai 4c7e5cf4e2 Bug 1201363 - Adding Add/RemoveVideoOutput into VideoStreamTrack. r=jesup
MozReview-Commit-ID: JmKotuB3pBM

--HG--
extra : transplant_source : %3C%98%88%98Y%04E%EF%F9%ED%D7%87%AD%C3%AF%EB%DA%D7Y%5C
2016-07-19 11:45:27 +08:00
ctai 9677265f4f Bug 1201363 - Register MediaStreamVideoSink into SourceMediaStream. r=jesup
MozReview-Commit-ID: 7X546VXVLJT

--HG--
extra : amend_source : c38f204c23ca5f8b2446b4ceceb16a8c9d94a7f3
2016-05-30 11:32:23 +08:00
ctai a81c3ec430 Bug 1201363 - Register MediaStreamVideoSink into SourceMediaStream. r=jesup
MozReview-Commit-ID: 7X546VXVLJT

--HG--
extra : transplant_source : z%E8%25E%07%AA%08%B1%EC%D83LQ%FE%0A%05%D0%9E%85%B6
2016-05-30 11:32:23 +08:00
ctai 7a07911d5f Bug 1201363 - Let MediaStreamVideoSink bind with particular video track. r=jesup
MozReview-Commit-ID: FcjnmDKuRQI

--HG--
extra : amend_source : 5591de347c10931f4188fa550c96a253d0c0b5f3
2016-05-27 14:33:50 +08:00
ctai 150ab2d45b Bug 1201363 - Let MediaStreamVideoSink bind with particular video track. r=jesup
MozReview-Commit-ID: FcjnmDKuRQI

--HG--
extra : transplant_source : %E8%DE%0C%18%CB%FA%06%F4V%DD%28%DB%F3T%D6%BA%F9%A0%C3%C3
2016-05-27 14:33:50 +08:00
ctai e28782c9ba Bug 1201363 - Replace VideoFrameContainer with MediaStreamVideoSink in MSG. r=jesup
Replace the pointer of VideoFrameContainer with the pointer of MediaStreamVideoSink.

MozReview-Commit-ID: 5bqEMpemwuR

--HG--
extra : amend_source : 7eb1e87fdcbc61f2f9831fa3a6d803cc50306604
2016-05-27 14:33:48 +08:00
ctai 0948ae3f3a Bug 1201363 - Replace VideoFrameContainer with MediaStreamVideoSink in MSG. r=jesup
Replace the pointer of VideoFrameContainer with the pointer of MediaStreamVideoSink.

MozReview-Commit-ID: 5bqEMpemwuR

--HG--
extra : transplant_source : %9D%86%93%A6%DF%D5%9Ep%20%DF%FD%C1%E2%BA%A3Gq%1A%7E%A3
2016-05-27 14:33:48 +08:00
Jean-Yves Avenard 5c81ca837f Bug 1288329: [ogg] P6. Adjust mochitests. r=gerald
There are various differences between the new ogg player and the old OggReader that leads to inconsistencies on how durations are reported.

1- The old OggReader only use the end time as duration of the video, ignoring the start time of the first sample. This leads to incorrect duration calculation.
2- The OggReader do not ignore undecodable frames located at the beginning of the video, and those are used by the MDSM to calculate the start time. This leads to durations sometimes being shorter than they ought to.

MozReview-Commit-ID: 6yi1P4N6tPE

--HG--
extra : rebase_source : 93e678aa762519d27444a57f8a12d2bd569b025d
2016-07-28 22:52:08 +10:00
Jean-Yves Avenard 8a0dfdfdb4 Bug 1288329: [ogg] P5. Fix coding style. r=gerald,jwwang
MozReview-Commit-ID: 1bAE92BECRD

--HG--
extra : rebase_source : bc53d84623f2d76c2eed796af1ca273c30efb369
2016-07-29 10:47:03 +10:00
Jean-Yves Avenard 3d8830b7ab Bug 1288329: [ogg] P4. Don't assume we can't seek in resource if transport isn't seekable. r=gerald
We can seek in cached data, we will rely on the seek operation to fail instead to determine if we can't or not

MozReview-Commit-ID: 3Ac7c1nTZTH

--HG--
extra : rebase_source : 569fc9dab9b50b416d29ffc902facf302845755b
2016-07-31 13:31:54 +10:00
Jean-Yves Avenard 90ebc0deea Bug 1288329: [ogg] P3. Never take into considerations frames prior the first keyframe. r=gerald
MozReview-Commit-ID: 1aJSbJb9kQW

--HG--
extra : rebase_source : 9853a92e7ca129305f28e68a1a6e9e2508f9e3a9
2016-07-29 10:38:36 +10:00
Jean-Yves Avenard 5d0a764769 Bug 1288329: [ogg/vorbis] P2. Pass extra information to the decoder so that it can perform proper trimmer. r=gerald,jwwang
The OggReader always passed a complete ogg_packet to the vorbis decoder, ensuring that the right number of frames was be returned. In the conversion to the new architecture, this information got lost making the vorbis decoder always return more frames than normal on the last packet.

MozReview-Commit-ID: HYHxqXfYntJ

--HG--
extra : rebase_source : 3d2a59b011ec1e996ab7aaf29e16baa495f7d31c
2016-07-29 02:19:21 +10:00
Jean-Yves Avenard 49ac56ce9a Bug 1288329: [ogg] P1. Add support for metadata chaining in OggDemuxer. r=gerald,jwwang
This is not the cleanest approach, but ensures identical behavior with the OggReader when it comes to firing loadedmetadata event and handling the change of seekability.

A more universal solution could be considered involving the MediaFormatReader and changing the MediaDataDemuxer API, of interest would be adding support for a new event fired whenever we have a change of content or metadata (useful with MSE or recorded webm of a WebRTC session

MozReview-Commit-ID: BojB2r1CtA3

--HG--
extra : rebase_source : 352fa61b62316264d1a2c8669f427d75f15ca19b
2016-07-28 15:32:11 +10:00
Bryce Van Dyk e06afda01b Bug 1279077 - Update GMP/EME path to support webm. r=cpearce
Update handling of VP8, VP9 to enable decryption and decoding via widevine.
Update handling with further validation to make sure that invalid video types
are rejected when trying to create widevine decryptor session or init widevine
decoders.

MozReview-Commit-ID: 8FOvUJfxr6L

--HG--
extra : rebase_source : 0f6aed8256d7f106a598b09e6f11efe80f0e4bb2
2016-07-29 15:53:22 +12:00
Carsten "Tomcat" Book 119eea6bdd Backed out changeset 9966bbe6b534 (bug 1289976) for assertion failures in MediaDecoder.h 2016-07-30 19:52:46 +02:00
Carsten "Tomcat" Book b5951bbc7f Backed out changeset 2cb402f74a51 (bug 1289976) 2016-07-30 19:52:32 +02:00
Carsten "Tomcat" Book eda09c15e0 Backed out changeset 7368d06f677b (bug 1289976) 2016-07-30 19:52:31 +02:00
Carsten "Tomcat" Book a1b168271d Backed out changeset 93a556b5e244 (bug 1289976) 2016-07-30 19:52:31 +02:00
Carsten "Tomcat" Book 169eb9f17a Backed out changeset bac5f65e6931 (bug 1289976) 2016-07-30 19:52:30 +02:00
Carsten "Tomcat" Book dfea28ba46 Backed out changeset ce6b4f84c86e (bug 1289976) 2016-07-30 19:52:29 +02:00
Carsten "Tomcat" Book 1938c88013 Backed out changeset cd25be005e38 (bug 1289976) 2016-07-30 19:52:28 +02:00
Carsten "Tomcat" Book a51910755e Backed out changeset f648be2df9ec (bug 1289976) 2016-07-30 19:52:27 +02:00
Carsten "Tomcat" Book e880c3527f Backed out changeset 2931db85cc99 (bug 1289976) 2016-07-30 19:52:26 +02:00
Carsten "Tomcat" Book 1f40b92079 Backed out changeset ba01eb85da0a (bug 1289976) 2016-07-30 19:52:25 +02:00
Carsten "Tomcat" Book fc8e03f0d8 Merge mozilla-central to autoland 2016-07-30 16:49:41 +02:00
Carsten "Tomcat" Book 3c40ac6f0b merge mozilla-inbound to mozilla-central a=merge 2016-07-30 16:20:57 +02:00
Mark Banner 8fb8a69d5c Bug 1287827 - Part 5. Remove Loop's special permissions for about:loopconversation from MediaManager. r=jib 2016-07-30 08:48:34 +01:00
JW Wang 1e61811c7e Bug 1289976. Part 10 - Remove the IsShutdown() check from MediaDecoder::UpdateDormantState(). r=kaku
1. It is called from DormantTimerExpired(). The timer is canceled in Shutdown().
2. It is called from NotifyOwnerActivityChanged() which happens before Shutdown().
3. It is called from Play() which happens before Shutdown().
4. It is called from Seek() which happens before Shutdown().

MozReview-Commit-ID: EnKHF61FBXf

--HG--
extra : rebase_source : 04df59b6722c8340e5163a00eb916442799cfcf1
2016-07-27 10:56:46 +08:00
JW Wang 62af9d2687 Bug 1289976. Part 9 - Remove the IsShutdown() check from MediaDecoder::StartDormantTimer(). r=kaku
We don't need to check IsShutdown() which is a subset of |mPlayState != PLAY_STATE_PAUSED && !IsEnded()|.

MozReview-Commit-ID: BjYoLOLuPfC

--HG--
extra : rebase_source : 0d04b30a8bf955faed4907f77f0da29e0ccc011d
2016-07-27 10:52:01 +08:00
JW Wang 661f07a5d4 Bug 1289976. Part 8 - Remove the IsShutdown() check from UpdateReadyState(). The callback is disconnected by the watch manager in Shutdown(). r=kaku
MozReview-Commit-ID: xVSWdj1Q0y

--HG--
extra : rebase_source : 948f622c399e1c072b4c15730a7a8c5fbd2ec696
2016-07-27 10:59:23 +08:00
JW Wang 7bdd2a6dd4 Bug 1289976. Part 7 - Remove the IsShutdown() check from MediaDecoder::Seek(). r=kaku
1. It is called from DurationChanged() which returns early when IsShutdown() is true.
2. It is called from Play() when IsEnded() is true.

MozReview-Commit-ID: Ixy5OMZHxIm

--HG--
extra : rebase_source : 4cd7229084c6af8b7123ee6c85156ef4932308f3
2016-07-27 10:49:14 +08:00
JW Wang 194e23bdb4 Bug 1289976. Part 6 - Remove the IsShutdown() check from MediaDecoder::RemoveMediaTracks(). r=kaku
1. It is called from ChangeState() when IsEnded() is true.
2. It is called from OnMetadataUpdate(). The callback is disconnected in Shutdown().

MozReview-Commit-ID: 8m4jtcl91hT

--HG--
extra : rebase_source : 0988128ec6d05f07ab7b072cc70a9c2970c829c5
2016-07-27 10:44:43 +08:00
JW Wang c4b1ec5baf Bug 1289976. Part 5 - Remove the IsShutdown() check from MediaDecoder::Pause(). r=kaku
1. Pause() is called from HTMLMediaElement and happens before Shutdown().
2. Pause() is called from SetPlaybackRate() which is called from HTMLMediaElement.

MozReview-Commit-ID: DDr7Bg8jkF2

--HG--
extra : rebase_source : 8b8a4fdc914d0bce7572d9a1ccb0f530bdba062c
2016-07-27 10:42:20 +08:00
JW Wang 97dff3f268 Bug 1289976. Part 4 - Remove the IsShutdown() check from MediaDecoder::NotifyOwnerActivityChanged() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: 9tWLW4JE0Uv

--HG--
extra : rebase_source : 9f33359f5d8833a8f90319303a96cf029460f3ac
2016-07-27 10:38:25 +08:00
JW Wang d2d8295bf6 Bug 1289976. Part 3 - Remove the IsShutdown() check from MediaDecoder::FireTimeUpdate(). r=kaku
FireTimeUpdate() is only called from UpdateLogicalPositionInternal() which returns early when IsShutdown() is true.

MozReview-Commit-ID: 4GZwrI85aXj

--HG--
extra : rebase_source : 9d7cbd571fd794369c833723ea5fc50a26380e51
2016-07-27 10:36:09 +08:00
JW Wang 294fff9de7 Bug 1289976. Part 2 - Remove the IsShutdown() check from MediaDecoder::DumpDebugInfo() which happens before Shutdown(). r=kaku
MozReview-Commit-ID: HU3ybjFZMsE

--HG--
extra : rebase_source : 15d9adb47be449fdaca6a37587e70ff4f1d013bf
2016-07-27 10:33:50 +08:00
JW Wang a9482dfc9c Bug 1289976. Part 1 - Remove the IsShutdown() check from MediaDecoder::ConstructMediaTracks(). r=kaku
1. ConstructMediaTracks() is called from ChangeState() when |mPlayState == PLAY_STATE_PLAYING|.
2. ConstructMediaTracks() is called from MetadataLoaded() which asserts |!IsShutdown()|.

MozReview-Commit-ID: 6OaPYcCOCii

--HG--
extra : rebase_source : 9db9e841fe8a0d797a39cd527abf4f4e95b67131
2016-07-27 10:31:14 +08:00
JW Wang 65db31d2a5 Bug 1289649 - HTMLMediaElement should clear mDecoder when XPCOM shutdown begins. r=gerald
MozReview-Commit-ID: A3ECReCgiD7

--HG--
extra : rebase_source : 452e156b9ecb449f311bd47f0afcc3a4bd03e10e
2016-07-27 10:26:21 +08:00
Mark Banner 37538ca14d Backed out changeset f5f1c014ca19 (bug 1287827) for breaking tests 2016-07-29 18:17:13 +01:00
Mark Banner 3dee065445 Bug 1287827 - Part 5. Remove Loop's special permissions for about:loopconversation from MediaManager. r=jib 2016-07-29 12:00:30 +01:00
Carsten "Tomcat" Book 8c47612fee merge mozilla-inbound to mozilla-central a=merge 2016-07-29 11:56:43 +02:00
JW Wang 8d82fea425 Bug 1289683 - Prevent notifications from AudioOffloadPlayer after shutdown. r=sotaro
MozReview-Commit-ID: J4t4aYZyfVz

--HG--
extra : rebase_source : 16597bdf0f31264bbdb51764de06a99bb6ff8c95
2016-07-27 15:04:07 +08:00
Gerald Squelart 2a787d2521 Bug 1289668 - Record inter-keyframe statistics - r=kamidphish
FrameStatisticsData can now store inter-keyframe information, which is
provided by the MediaFormatReader (based on live decoding).

MozReview-Commit-ID: HhBy6pgT6ZX

--HG--
extra : rebase_source : 6a072623e8a5b0f23b81307e8ea4b19a3e21b252
2016-07-26 09:36:55 +10:00
Gerald Squelart 7bea2e1262 Bug 1289668 - Refactor FrameStatistics writers to use Data struct - r=kamidphish
Decoders now use FrameStatisticsData to gather data for their frame-related
notifications. This will ease introducing new members later on.

MozReview-Commit-ID: DWdOSPX3JM

--HG--
extra : rebase_source : a3e05f34353a397d1c82b3f4d935c0864f90556e
2016-07-18 10:41:40 +10:00
Gerald Squelart 16ceda9794 Bug 1289668 - Use 64 bits to store FrameStatistics values - r=kamidphish
Decoders uses 64-bit values to count frames, so we should use the same type
in FrameStatistics.

Because VideoPlaybackQuality can only use 32 bits (as defined in W3C specs),
we need to ensure that imported FrameStatistics numbers can fit in 32 bits,
while keeping their ratios the same.

MozReview-Commit-ID: 3pUTGK0ekGv

--HG--
extra : rebase_source : 627fada111b51b8830fd38bf6d60a79b899ce603
2016-07-18 10:51:30 +10:00
Gerald Squelart 9448bd8536 Bug 1289668 - Refactor FrameStatistics - r=kamidphish
Move FrameStatistics' data into separate struct, so that it can more easily be
changed and passed around, outside of the lock-controlled FrameStatistics
object.

MozReview-Commit-ID: TfsMRJhVfQ

--HG--
extra : rebase_source : 8c4c6a23c8c2d6ff4272f9f918c9510326691148
2016-07-18 09:51:25 +10:00
Gerald Squelart 56c9933215 Bug 1289668 - FrameStatistics style - r=kamidphish
MozReview-Commit-ID: B9yEd7tqfAN

--HG--
extra : rebase_source : 3b1bfd11c604f9e57321c842f4893192ca9b77b5
2016-07-15 16:48:56 +10:00
Gerald Squelart 10c9db905a Bug 1289668 - VideoPlaybackQuality style - r=kamidphish
MozReview-Commit-ID: EorsgpmZM1S

--HG--
extra : rebase_source : cfaac027ac12b4a5e219b4eeb5b0360b5e464461
2016-07-15 16:48:26 +10:00
Jan-Ivar Bruaroey 44c9f33c25 Bug 1289857 - Fix MediaTrackConstraints.cpp to compile with --disable-webrtc again. r=mjf
MozReview-Commit-ID: GgVNQSbPCwf

--HG--
extra : rebase_source : ac3a7c53c3ac8c5b98e05b6d72ddb2badd58617a
2016-07-28 12:03:40 -04:00
Jan-Ivar Bruaroey abbd438d8f Bug 1286096 - Wire up audio getSettings(). r=padenot,smaug
MozReview-Commit-ID: KH6xcAnd3DX

--HG--
extra : rebase_source : a473d25cec56ee5bf2cd7b5114d7038e45d6a9d8
2016-07-16 15:33:54 -04:00
Jan-Ivar Bruaroey e2c982dd72 Bug 1286096 - Consider competing audio constraints as well. r=padenot
MozReview-Commit-ID: APPg2UBgNYo

--HG--
extra : rebase_source : 02e05f0e0677d80711a0d27902f17b3f31136db4
2016-07-15 19:55:59 -04:00
Jan-Ivar Bruaroey 1f7f1269f6 Bug 1286096 - Move UpdateSingleSource pattern to MediaEngine base class for reuse. r=padenot
MozReview-Commit-ID: IJjZayOSxp4

--HG--
extra : rebase_source : de44566213623492982653c90793be9cceee539b
2016-07-13 16:07:03 -04:00
Jan-Ivar Bruaroey 9f23bcc615 Bug 1286096 - Move AllocationHandle used for cameras to MediaEngineSource base class to reuse for microphones. r=padenot
MozReview-Commit-ID: BcmlKnHhe0o

--HG--
extra : rebase_source : 45342801548033ddbb2c0e060a6c6685bcb910b9
2016-07-12 23:25:07 -04:00
Jan-Ivar Bruaroey 2982c3ee86 Bug 1286096 - Remove fakeTracks constraint. r=drno,smaug
MozReview-Commit-ID: I9ZsufufRYg

--HG--
extra : rebase_source : 6d3ace3a22ce34586da4899cc0f7b2727a5fc6e0
2016-07-11 19:27:43 -04:00
Jan-Ivar Bruaroey 36d85898ac Bug 1286096 - Enable width/height constraints on fake device. r=padenot
MozReview-Commit-ID: 1SPPbysZjqL

--HG--
extra : rebase_source : aa52d5d518fc1f52c81709c22212c892b0527d46
2016-07-11 16:52:20 -04:00
Jan-Ivar Bruaroey 6606fbb009 Bug 1286096 - Have MediaEngineDefaultVideoSource inherit from MediaEngineCameraVideoSource. r=padenot
MozReview-Commit-ID: KxT4HRaGe9

--HG--
extra : rebase_source : e1cd848912be7db9cb338bba9a19e1de46a2563f
2016-07-11 12:31:33 -04:00
Carsten "Tomcat" Book 0026e79c41 Merge mozilla-central to mozilla-inbound 2016-07-28 17:44:09 +02:00
Carsten "Tomcat" Book 37be51f16a merge mozilla-inbound to mozilla-central a=merge 2016-07-28 17:43:03 +02:00
Paul Adenot b4146d6b6d Bug 1289678 - Fix warning as errors on a CLOSED TREE. 2016-07-28 13:17:46 +02:00
Paul Adenot 0cb3352625 Bug 1289678 - Don't count audio stream creation failures when retrying on Telemetry. r=kinetik
When failing to create an audio stream, we fallback to a SystemClockDriver
marked as being a "fallback driver". When failing again to open an audio stream
after re-trying, we can check whether we came from a fallback driver, and not
report the failure again to telemetry.

MozReview-Commit-ID: FAdQ0pCtC3m
2016-07-27 15:18:17 +02:00
JW Wang 8e6ae76d98 Bug 1289334 - HTMLMediaElement::ResetConnectionState() should shut down the decoder. r=cpearce
MozReview-Commit-ID: 7IZ2Y4Da7xZ

--HG--
extra : rebase_source : 492b0caa52fca17d2c399c2f0e2c426c6f55872f
2016-07-26 16:37:45 +08:00
JW Wang a2a7e29ce7 Bug 1289301 - Remove the call to Shutdown() from MediaDecoder::NetworkError(). r=cpearce
MozReview-Commit-ID: EuDKW2KZQ9n

--HG--
extra : rebase_source : 7330327d6194a6fa45905d1ff52d258e58b96a4b
2016-07-26 14:33:16 +08:00
JW Wang e92dafa46f Bug 1289296 - Assert |!IsShutdown()| in MediaDecoder::NetworkError(). r=kaku
MozReview-Commit-ID: HL8piKSPU1B

--HG--
extra : rebase_source : ae6aa90016c734646aec7a1828dfcd02ba92cc96
2016-07-26 14:28:29 +08:00
JW Wang 4d7a72bc94 Bug 1289295 - Remove the call to Shutdown() from MediaDecoder::DecodeError(). r=cpearce
MozReview-Commit-ID: DcpaEFEsaWD

--HG--
extra : rebase_source : fd63ff2faa79911b9ccfeed55d9e7348674ed1dc
2016-07-26 14:18:47 +08:00
Chris Peterson ddb3a5addb Bug 1289989 - Remove VS2013 workaround for VP8 test crash. r=cku 2016-07-27 23:52:09 -07:00
James Cheng 240e465d99 Bug 1288320 - Define each keysystem string as specific identifier instead of placing some.keysystem everywhere. r=cpearce
MozReview-Commit-ID: 1bwPRhMOawu

--HG--
extra : amend_source : 7550352f178c0082484acdd342db05ed0dc02e23
extra : transplant_source : %96%C1%B9%8B%28%B0%96f%8AM%AA%13T%1E%3Bg%98%96%92%C1
2016-07-27 16:07:46 +08:00
bechen b13de09ea4 Bug 1281418 - Add testcase for changing the src of TrackElement. r=rillian
MozReview-Commit-ID: A7QB9ELEfp3

--HG--
extra : transplant_source : %FE%12%B9%98%847%E2%BF%9E%B8%7D%BDT%E3%7E%F0%90%1E%25i
2016-07-19 17:01:06 +08:00
Carsten "Tomcat" Book 7293066753 merge mozilla-inbound to mozilla-central a=merge 2016-07-27 16:35:44 +02:00
Gerald Squelart 371109fa03 Bug 1289378 - Fix inter-locking in PDMFactory+GMPDecoderModule - r=jya
Say PDMFactory::EnsureInit() runs on the main thread (effectively locking it)
and then tries to lock sMonitor; if another thread was also running
EnsureInit() and locked sMonitor, it will dead-lock when trying to sync-
dispatch the GMPDecoderModule creation to the main thread.

This can be fixed by ensuring that the actual PDMFactory instance creation is
always done on the main thread (and that we don't hold sMonitor before
dispatching to the main thread.)

Note that we can now simplify GMPDecoderModule::Init and assert we are already
on the main thread.

MozReview-Commit-ID: 8xHpoymw6po

--HG--
extra : rebase_source : aabc1f4768aebdd16873bbc1afdd1679d90aed6f
2016-07-27 12:43:33 +10:00
Mike Hommey 4fdd5ca717 Bug 1289248 - Stop using MOZ_WINSDK_MAXVER outside configure. r=blassey,cpearce
Its value was only used in a couple C++ files, and a corresponding value
can be gotten directly from including winsdkver.h.

--HG--
extra : rebase_source : 618f1eb2ee0243a6c1c652ccce45b2aeba959edf
2016-07-22 18:52:13 +09:00
Wes Kocher cef61ca9ed Merge m-c to autoland, a=merge 2016-07-26 16:54:33 -07:00
Carsten "Tomcat" Book bee34206c8 Merge mozilla-central to mozilla-inbound 2016-07-26 17:06:58 +02:00
Carsten "Tomcat" Book 8b58b75b4e merge mozilla-inbound to mozilla-central a=merge 2016-07-26 16:59:46 +02:00
Nicolas Silva 48805c9b3e Bug 1284837 - Disallow implicit conversions from float to integer when creating IntPoint and IntSize objects. r=botond 2016-07-26 16:48:30 +02:00
Chris Pearce 5d7e74fc64 Bug 1289623 - Assume keys marked as 'output-restricted' are usable. r=gerald
Chrome appears to do this.

MozReview-Commit-ID: LbSFQiB0pEO

--HG--
extra : rebase_source : 2e4358ccc2bcfec0f9d286456f726400cfe0e13c
2016-07-27 11:06:43 +12:00
Carsten "Tomcat" Book 5b47cb2e80 Merge mozilla-central to autoland 2016-07-26 12:00:39 +02:00
Carsten "Tomcat" Book 574d0d452b merge mozilla-inbound to mozilla-central a=merge 2016-07-26 11:55:54 +02:00
JW Wang 4d4146a965 Bug 1289290 - Assert |!IsShutdown()| in MediaDecoder::DecodeError() r=kaku
MozReview-Commit-ID: EoUtle6quy

--HG--
extra : rebase_source : 47077044c8379c24cd732ab3707c24e28cb298f9
2016-07-26 14:01:54 +08:00
Matt Woodrow 4ed207c9ad Bug 1277626 - Create test DXVA decoders on the main thread so that we can protect them with a crash guard. r=jya,dvander 2016-07-25 15:18:55 +12:00
Matthew Gregan 5e5637e77f Bug 1288980 - Add libcubeb backend to about:support. r=felipc 2016-07-26 10:50:14 +12:00
Tim Huang 71ca0b6bc8 Bug 1283325 - Part 1 : Make EME Plugins / Gecko Media Plugins storage OriginAttribute aware. r=cpearce 2016-07-22 08:40:00 +02:00
Kilik Kuo 3de7882657 Bug 1136707 - [Part1] Make pref 'media.eme.enabled' only affect practical DRMs. r=cpearce
MozReview-Commit-ID: 5XeAelzLbIc

--HG--
extra : transplant_source : J%7D%FE%B8%CC3%CF%E7%BAg%A7%3E%19%DDC%C0%EB%92%AD%C8
2016-07-27 12:04:47 +08:00
Chris Pearce e3566aa24b Bug 1266938 - Add explicit to ctors for helper classes in WidevineVideoDecoder. r=bustage 2016-07-27 11:27:08 +12:00
JW Wang 0b638406f0 Bug 1289004. Part 3 - Remove MediaDecoder::mShuttingDown. r=cpearce
MozReview-Commit-ID: DoJ4UFuyz2h

--HG--
extra : rebase_source : 531df3335548186338fc2eb5b5b4b0bb4cc6c101
extra : source : d4f4a98303c3ddc14986478aa44f137cce87af30
2016-07-13 16:48:27 +08:00
JW Wang 12fd7814cd Bug 1289004. Part 2 - Add MediaDecoder::IsShutdown(). r=cpearce
MozReview-Commit-ID: 50muOKcUqYi

--HG--
extra : rebase_source : d97e968c980dcc146824bb6703747f23b0a5b651
extra : source : 2ca76a5cecbb9c6ef107794eab32bb13633880a2
2016-07-13 16:45:30 +08:00
JW Wang 694dff250f Bug 1289004. Part 1 - Constify and devirtualize some functions. r=cpearce.
MozReview-Commit-ID: 8f14ekpinCR

--HG--
extra : rebase_source : ca1d62df789639817e4c7da01919783038db22f0
extra : source : 5dc15cac9b631fd10b03902b3ba627fd763a49aa
2016-07-13 16:35:37 +08:00
JW Wang db58db163a Bug 1288344. Part 2 - Remove MediaDecoder::mWasEndedWhenEnteredDormant. r=cpearce
MozReview-Commit-ID: edGkP9mv6L

--HG--
extra : rebase_source : 4833d10975c6dd241d41bf86f81b08a9fe76784c
2016-07-12 14:34:06 +08:00
JW Wang 237d5b4a0d Bug 1288344. Part 1 - Don't change play state when entering/exiting dormant state. r=cpearce
MozReview-Commit-ID: 24damxCvWl8

--HG--
extra : rebase_source : 31058b1ace6d1d8e462b24f96845bb81251445d7
2016-07-12 14:32:36 +08:00
Carsten "Tomcat" Book b9a6c687fa merge mozilla-inbound to mozilla-central a=merge 2016-07-25 15:50:41 +02:00
Gerald Squelart 17e3c87114 Bug 1288585 - Clarify console message about WinXP unsupported formats - r=cpearce
On Windows XP (and others before Vista), if WMF is required to play a format,
the console message should not refer to Microsoft software as it is not
available there.

MozReview-Commit-ID: LaERcaOfePe

--HG--
extra : rebase_source : 72b6e24683be4eb2c21c9ccff039f326cf5647a7
2016-07-22 13:12:15 +10:00
Chris Pearce d29928ce19 Bug 1288976 - Only retry MediaKeySystemAccess requests on 'gmp-changed' notification if the CDM is now installed. r=gerald
This ensures we'll only retry requests if we know the install operation has
completed for a given GMP. This means if (say) OpenH264 happens to install
while we have a Widevine request pending, we won't retry the Widevine request,
as that would fail. The Widevine request will retry once the Widevine CDM
has downloaded and in turn fires its gmp-changed notification.



MozReview-Commit-ID: E3CV9uID4pS

--HG--
extra : rebase_source : 4e27210a9e6c28118e93f45846b63aaa64f5882d
2016-07-25 13:38:08 +12:00
Chris Pearce d183d8433b Bug 1288976 - Use gmp-changed rather than gmp-path-added to retry MediaKeys requests. r=gerald
We're already routing the "gmp-changed" observer service notification over from
the chrome process to the content process, and it fires at pretty much the same
time as the "gmp-path-added" notification (and a few more) so we can just switch
to have the MediaKeySystemAccessManager listen on that notification instead, and
we'll be e10s compatible.




MozReview-Commit-ID: EowFDfdWgAJ

--HG--
extra : rebase_source : ad01990278cf9005f6676ef0b7fa0acbf69249eb
2016-07-25 10:18:34 +12:00
Chris Pearce cc5deae96d Bug 1282142 - Add testcase ensuring persistent-usage-record MediaKeySessions are unsupported by ClearKey. r=gerald
MozReview-Commit-ID: vbnJT5PGGv

--HG--
extra : rebase_source : 880d9c972519faef9ed2aa3635e6cae441fb2ff6
extra : amend_source : 6c179a5b4481604dee820a4c45ee75f562851237
2016-07-22 13:42:31 +12:00
Chris Pearce c45d37db14 Bug 1278198 - Enforce codecs match the capability and content type in GetSupportedCapabilities(). r=gerald
We're supposed to reject MediaKeySystemCapabilities which have a contentType
that has codecs which don't match their major type, i.e. audio codecs in a
video container type.

I missed that, and it's causing us to fail the
test_eme_requestMediaKeySystemAccess case "MP4 video container with both audio
and video codec type in videoType".


MozReview-Commit-ID: KQVGk9hX3eC

--HG--
extra : rebase_source : f8ed145d050bb27f2f6867ec4b308bbcd30d17a5
2016-07-21 19:22:59 +12:00
Chris Pearce 30716f1d57 Bug 1278198 - Adapt Adobe GMP's obsolete GMPDecryptor interface to new interface. r=gerald
The Adobe GMP only supports up to GMPDecryptor version 7. We're now up to
version 9.  So we need to provide an adaptor to convert the old version to run
with the new interface.

MozReview-Commit-ID: 5dKreev7JMv

--HG--
extra : rebase_source : b9aa1b66ad23e9f7ddbe60b71c94c161ad974818
2016-07-14 13:33:48 +12:00
Chris Pearce 8b28b48c65 Bug 1278198 - Fix tests to work with new EME API. r=gerald
MozReview-Commit-ID: WTWyYu2Zgp

--HG--
extra : rebase_source : 68208d9be13fd18aa7ff6a2f167299050d5375ed
2016-07-11 16:46:21 +12:00
Chris Pearce f49856bc79 Bug 1278198 - Pipe through distinctive identifier and persistent state allowed. r=gerald
MozReview-Commit-ID: A92e0XGp5s4

--HG--
extra : rebase_source : 09f7ba18c9b81263aa345cc7f34f0ef2a2548482
2016-07-07 17:26:15 +12:00
Chris Pearce e2b41d3d04 Bug 1278198 - Add Widevine FileIO. r=gerald
MozReview-Commit-ID: IXgSobtF24L

--HG--
extra : rebase_source : e1df08666b0713fa4c10fc020d6482a802d2fb52
2016-07-07 17:28:14 +12:00
Chris Pearce 1ec646af14 Bug 1278198 - Implement "Get Supported Configuration" algorithm in MediaKeySystemAccess. r=gerald
MozReview-Commit-ID: KiJMOm5HgHe

--HG--
extra : rebase_source : 0c60b76ad38cb9c5513e6618c8d8f4bc6f43b168
2016-07-01 13:36:57 +12:00
Chris Pearce 1ea9b742f5 Bug 1278198 - Update EME code to reflect new WebIDL name changes. r=gerald
MozReview-Commit-ID: EssCsJxBBwt

--HG--
extra : rebase_source : 154746eca911e2250f3fa94a6a2d4b2624910e50
2016-07-04 14:14:01 +12:00
Andrea Marchesini 60ab8339e0 Bug 1288736 - Add some missing rv.SuppressException(), r=smaug 2016-07-22 16:50:10 +02:00
Paul Adenot 5ce5a2cc20 Bug 1283020 - Update cubeb consumers to pass in latency in frames and not in ms. r=achronop
MozReview-Commit-ID: D7HjHNPRIre
2016-07-20 15:02:23 +02:00
Carsten "Tomcat" Book 8b6316ec5f Merge mozilla-central to mozilla-inbound 2016-07-22 11:59:06 +02:00
Carsten "Tomcat" Book 336105a0de merge mozilla-inbound to mozilla-central a=merge 2016-07-22 11:58:02 +02:00
Andrew McCreight 623b56a3f1 Bug 1287143 - Remove the window argument to SpecialPowers.exactGC(). r=jmaher
Cu.forceCC() is the same as DOMWindowUtils.cycleCollect(), but does
not require a window.
2016-07-19 13:13:00 +08:00
Eugen Sawin d4f17a5cd1 Bug 1290178 - [1.2] Add crashtest for MP3 playback with invalid XING headers. r=gerald 2016-07-29 18:30:14 +02:00
Carsten "Tomcat" Book 65ee88f5df Backed out changeset 87c09fd9a736 (bug 1290178) for crashtest failures
--HG--
extra : rebase_source : 39249bd11d69aec3a4bf1ae6263a058b3f093e01
2016-07-29 15:05:48 +02:00
Eugen Sawin f90d3dc006 Bug 1290178 - [1.1] Add crashtest for MP3 playback with invalid XING headers. r=gerald 2016-07-29 13:02:05 +02:00
Carsten "Tomcat" Book 0e6ff44be3 Merge mozilla-central to mozilla-inbound 2016-07-29 12:34:10 +02:00
James Cheng ec408ccc8a Bug 1290036 - Make CreateDecoderParams get rid of unnecessary copy/move. r=gerald
MozReview-Commit-ID: HYUHoV4Vmkd

--HG--
extra : rebase_source : e503e326a1ae757b094a950812915c5400a6b8e8
2016-07-28 17:52:49 +08:00
Karl Tomlinson 791610c158 mochitest for bug 1255618 r=ehsan
--HG--
extra : transplant_source : %00%09%7E%28%2C%F2%AA%5E%BA0%F6K%0F%06%9A%9E%7C%91%CD%85
2016-03-14 16:58:18 +13:00
Wes Kocher f11c79a662 Merge m-c to inbound, a=merge CLOSED TREE 2016-07-21 15:59:28 -07:00
Jim Chen ce45a595ab Bug 1287946 - Update existing code to use mozilla::java; r=me 2016-07-21 13:49:04 -04:00
Jim Chen 6cd5749e48 Bug 1286663 - Update existing code using ByteBuffer; r=me 2016-07-21 13:49:04 -04:00
Carsten "Tomcat" Book bc1b31b01b Merge mozilla-central to autoland 2016-07-21 16:27:58 +02:00
Carsten "Tomcat" Book 4a64baa9d4 merge mozilla-inbound to mozilla-central a=merge 2016-07-21 16:24:36 +02:00
Alexandre Lissy d62c2c8293 Bug 1287854 - Fix MediaEngineGonk build r=padenot
MozReview-Commit-ID: 5jmepGcWiIG

--HG--
extra : rebase_source : 55e0d6b33dd2670fb4ac40afca011c1d34b438f8
2016-07-19 19:09:16 +02:00
Kaku Kuo 1ac4fb0ba1 Bug 1288300 - Remove unused MediaCallbackID files; r=jwwang
MozReview-Commit-ID: 6vb8RWQHCu

--HG--
extra : rebase_source : 902416b3e9d6b4dd1ab892f913fc1c45e35cc65a
2016-07-21 10:57:57 +08:00
JW Wang 6d0290635c Bug 1286766 - make MediaPrefs::MDSMSuspendBackgroundVideoDelay() safe to read off main thread using Preferences::AddAtomicUintVarCache(). r=gerald,kamidphish
MozReview-Commit-ID: FAplUTE07l0

--HG--
extra : rebase_source : 729a56f13c68621d03313b460d95e90796e66412
2016-07-14 15:50:23 +08:00
Bob Owen 94305927f7 Bug 1288021: When we have a network GMP path fix the format for the sandbox rule. r=cpearce
MozReview-Commit-ID: BYMvKvwdFOK

--HG--
extra : rebase_source : 3c4ab54fbb87387c4816c96e3b998b460804cf49
2016-07-20 09:20:30 +01:00
Wes Kocher afdaddcff4 Backed out changeset c6d147ba37b5 (bug 1281259) for making windows vm mn-e10s permafail 2016-07-20 16:08:55 -07:00
Chris Peterson b175c9fdd5 Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
Carsten "Tomcat" Book b4d852ccc0 Backed out changeset 7cd055ed9366 (bug 1286663) for android bustage on a CLOSED TREE
--HG--
extra : amend_source : 71f29d4505b7b2443ef3b7293ba60f685a5bf676
2016-07-21 08:18:59 +02:00
Carsten "Tomcat" Book e8bc59a87a Backed out changeset 684888aeee81 (bug 1287946) 2016-07-21 08:07:12 +02:00
Carsten "Tomcat" Book 202195f87d Backed out changeset 5c7dda18ec02 (bug 1285897)
--HG--
extra : rebase_source : 6a116dd44fa98910566178693e2d318e66f7011e
2016-07-21 08:03:10 +02:00
Jim Chen 78f67d1f6f Bug 1287946 - Update existing code to use mozilla::java; r=me 2016-07-21 00:42:26 -04:00
Jim Chen 5509026d50 Bug 1286663 - Update existing code using ByteBuffer; r=me 2016-07-21 00:41:13 -04:00
bechen 291a5d1475 Bug 1285897 - Async dispatch cuechange event on TextTrack object. r=rillian
MozReview-Commit-ID: DKWCAEaT58J

--HG--
extra : transplant_source : %F4%CAT%AD%05v%A4%94%B8%13%2C%8E%9Ex%DDg%89Q%CFR
2016-07-12 17:41:41 +08:00
eyim 4446d595fa Bug 1281259 - Port DXVA to gfxConfig r=jrmuizel
MozReview-Commit-ID: 7Yp3ynxZoFE

--HG--
extra : rebase_source : 8fd65a364e3c8b2e539b47dd034e637a1324516e
2016-07-14 10:21:06 -04:00
JW Wang 406fc6554b Bug 1287670 - Improve cohesion of MDSM::InitiateSeek(). r=kaku
MozReview-Commit-ID: BgaTUXFik9a

--HG--
extra : rebase_source : cddafaa0ed018806219b76d269f1d5f9d6589d2d
2016-07-07 16:55:24 +08:00
Carsten "Tomcat" Book 241ae512ec Merge mozilla-central to autoland 2016-07-20 11:24:44 +02:00
Carsten "Tomcat" Book 8428cd56e3 merge mozilla-inbound to mozilla-central a=merge 2016-07-20 11:20:15 +02:00
Alastor Wu c1e061c2ec Bug 1283803 - part5 : fix the fail test. r=rillian
MozReview-Commit-ID: LgjDpvW2rQj

--HG--
extra : rebase_source : d8e88bb44acdca26ae415d81a4b50d203b78f51d
2016-07-19 17:07:41 +08:00
Alastor Wu 0b085222cf Bug 1283803 - part4 : handle unicode \u0000 and \uFFFD. r=rillian
MozReview-Commit-ID: FtDPV9U7ffS

--HG--
extra : rebase_source : 787502b5cfccc216f7c6176a597aaf10fb3b5252
2016-07-19 16:30:57 +08:00
Alastor Wu 3f39c1932c Bug 1283803 - part3 : rename function parseSignature. r=rillian
MozReview-Commit-ID: ImBH5Xq4sJX

--HG--
extra : rebase_source : 6f7dd06f27921c27528102798026846293b0c5a1
2016-07-19 16:30:54 +08:00
Alastor Wu b168237466 Bug 1283803 - part2 : modify vtt parsing algorithm. r=rillian
MozReview-Commit-ID: HYt1rr0YRPn

--HG--
extra : rebase_source : 1cb8f04cfbb96224f3a138cb9d7b1b84d8bae03b
2016-07-19 16:30:51 +08:00
Alastor Wu 05d5dd144a Bug 1283803 - part1 : modify function parsingHeader. r=rillian
MozReview-Commit-ID: Fujoh7ysVPy

--HG--
extra : rebase_source : b36791159ab72b04c9d6c73dde498df55f3a0397
2016-07-19 16:30:46 +08:00
Eitan Isaacson 7c3b3e4a8d Bug 1270110 - Bail on unsupported libspeechd versions. r=smaug
libspeechd does not have a version getter function, so we need to look for a recent
API addition to know we are on a newer version.

MozReview-Commit-ID: FpXwGYMxxDB

--HG--
extra : rebase_source : 4cac9200223433f2052b89926bf203545cac9354
2016-07-15 12:50:28 -07:00
JW Wang cff16609a0 Bug 1287700 - Remove unused MDSM::mDispatchedEventToDecode. r=bechen
MozReview-Commit-ID: 5lUb83GWoNL

--HG--
extra : rebase_source : 155511e04dddb38544f8d9a7e64da9c1a6b67821
2016-07-12 13:58:40 +08:00
Eric Rahm ddf74ea35b Bug 1274913 - Use LazyLogModule directly for DirectShow logging. r=rillian
This should help fix unitialized statics crashes on Windows in the DirectShow logging code.

Additional changes are included to fix unified build issues.
2016-07-08 11:47:04 -07:00
Paul Adenot e556746dbc Bug 1286341 - Initialize sBrandName before layout startup when initializing the cubeb. r=jesup
We call `cubeb_init` quite early these days because the sandbox is enabled
a short time after, so we'd call GetCubebContext before InitBrandName, thus
showing the warning.

MozReview-Commit-ID: 4gmN8GKq4qd

--HG--
extra : rebase_source : 0028f51daf166792f05ab1aad26a807540d18fe8
2016-07-19 16:28:56 +02:00
Iris Hsiao 0ce4237bb7 Backed out changeset 348a4cebfe89 (bug 1283803) 2016-07-19 16:34:49 +08:00
Iris Hsiao 4ab52122dd Backed out changeset 544795f12d67 (bug 1283803) 2016-07-19 16:34:35 +08:00
Iris Hsiao 9bbd135e4c Backed out changeset 2913e3ccf060 (bug 1283803) 2016-07-19 16:34:21 +08:00
Iris Hsiao 980f5e6fd8 Backed out changeset 1f511a0e1484 (bug 1283803) for Media test failed 2016-07-19 16:34:04 +08:00
Jean-Yves Avenard 0b57c68c53 Bug 1287370: Remove VDA decoder. r=cpearce
The VDA decoder was no longer usable regardless.

MozReview-Commit-ID: 6Q94jrp0OIG

--HG--
extra : rebase_source : 368396b413995eb1c9382cb9cb134ec2fcf38d95
2016-07-18 17:02:51 +10:00
JW Wang 897e63f874 Bug 1287698 - Make MDSM::mPendingDormant a bool. r=jya
MozReview-Commit-ID: 8WF0cxAFABS

--HG--
extra : rebase_source : 9d6635e2e69a49f6e60e9e759846fbc5887341ca
2016-07-12 13:57:10 +08:00
JW Wang 4e620890c7 Bug 1287350. Part 2 - Call WatchManager::Shutdown() to prevent notifications from watchables. r=jya
MozReview-Commit-ID: 79GojLNE4Gn

--HG--
extra : rebase_source : 888c389f0a99365da907a4dc56c8095cddfdbf55
2016-07-15 15:44:02 +08:00
JW Wang f090553820 Bug 1287350. Part 1 - extract some code to {Connect,Disconnect}Mirrors. r=jya.
MozReview-Commit-ID: Ayf109fFhRU

--HG--
extra : rebase_source : bff7df290062d40c40b61a05bc054fbfa9cd3ddc
2016-07-15 15:35:41 +08:00
Iris Hsiao b3cb3cf81f Backed out changeset 128c1454e51f (bug 1280346) for Mochitest failed 2016-07-19 13:01:53 +08:00
Alastor Wu d61621aace Bug 1283803 - part4 : handle unicode \u0000 and \uFFFD. r=rillian
MozReview-Commit-ID: FtDPV9U7ffS

--HG--
extra : rebase_source : d450e7f2c40cfb44c123206fd0732c8debdec518
2016-07-19 11:10:56 +08:00
Alastor Wu 99502e7e78 Bug 1283803 - part3 : rename function parseSignature. r=rillian
MozReview-Commit-ID: ImBH5Xq4sJX

--HG--
extra : rebase_source : 513c035db6a9fea43724b227c534f1b08af1a1f2
2016-07-19 11:10:52 +08:00
Alastor Wu a3a8013883 Bug 1283803 - part2 : modify vtt parsing algorithm. r=rillian
MozReview-Commit-ID: KUYq0L0pW5x

--HG--
extra : rebase_source : bb9875128c89315d50ebea3cf32d65c7a0d7ee5c
2016-07-19 11:10:50 +08:00
Alastor Wu 767f379932 Bug 1283803 - part1 : modify function parsingHeader. r=rillian
MozReview-Commit-ID: GM3nJzstVzf

--HG--
extra : rebase_source : ff6f4d1eb71b9dbee0a13055e82411c1e970a536
2016-07-19 11:10:44 +08:00
JW Wang 91da763ab9 Bug 1285122. Part 2 - fix includes and forward-declaration. r=kaku
MozReview-Commit-ID: 7r1NNH5DZki

--HG--
extra : rebase_source : 3daf9963e6828de069cbb4f669de52096d917ef1
2016-07-07 14:44:53 +08:00
JW Wang f3d0c786f5 Bug 1285122. Part 1 - remove SeekTask::mNeedToStopPrerolling{Audio,Video} per discussion in https://reviewboard.mozilla.org/r/43689/#comment54421. r=kaku
MozReview-Commit-ID: 1r909HO5Cbl

--HG--
extra : rebase_source : 3f45ec683751240033a3679978bed3862055ff0e
2016-07-07 14:35:58 +08:00
JW Wang 47723022cb Bug 1285121 - cancel callbacks before rejecting the promise. r=kaku
MozReview-Commit-ID: 1Ly4ZW1d6KL

--HG--
extra : rebase_source : 1e42a6689c506816338499d40965634dcd5c4c34
2016-07-07 14:30:54 +08:00
Jean-Yves Avenard e1a20915fc Bug 1280346: Only consider a video info as invalid if image dimensions are null. r=rillian
Display dimensions are actually determined from the SPS NAL with h264 and as such we don't really care on what is found in the container (which may be incorrect).

MozReview-Commit-ID: 7JmxIawNOOn

--HG--
extra : rebase_source : 9454b07742af880cd992a92517880788bd18a712
2016-07-12 16:46:33 +10:00
Jan-Ivar Bruaroey b7cd70aebe Bug 1213517 - Fix static analysis for bug 1213517 landing: Avoid non-memmovable nsTArray<NormalizedConstraintSet>. r=jesup
MozReview-Commit-ID: GGJ6BGlLa4n

--HG--
extra : rebase_source : 94a9df3f2cedb6e37f48dcd87667e129f2fc78ec
2016-06-29 14:52:19 -04:00
Jan-Ivar Bruaroey aa375cbaab Bug 1213517 - Fix static analysis for bug 1213517 landing: make constructor explicit. r=jesup
MozReview-Commit-ID: 6k38HgsFmL2

--HG--
extra : rebase_source : 47f1caa8cc7a39b1f4f49ae2c8744556122da45d
2016-07-18 02:56:22 -04:00
Jan-Ivar Bruaroey 7949ae2a64 Bug 1213517 - Take highest ideal value from competing width, height and frameRate. r=jesup
MozReview-Commit-ID: JkR2rDDeFz1

--HG--
extra : rebase_source : aa2d61cddb17d316e43404efe6a8643cf4cbf22c
2016-07-07 08:36:05 -04:00
Jan-Ivar Bruaroey 9be5951bd8 Bug 1213517 - Clamp competing ideal values before considering them to avoid outliers distorting result. r=jesup
MozReview-Commit-ID: 3RNgKfDpJxL

--HG--
extra : rebase_source : c681489a6bb1687484d1eb694c066f95a17fdca1
2016-07-07 10:45:34 -04:00
Jan-Ivar Bruaroey 72df8fa880 Bug 1213517 - Make applyConstraints() and getSettings() do nothing after stop and shutdown. r=jesup
MozReview-Commit-ID: Ez2Wmsoy617

--HG--
extra : rebase_source : b4efaab09652ce3cc5a421c47574c42c6c22f073
2016-07-06 16:55:58 -04:00
Jan-Ivar Bruaroey b8a3459024 Bug 1213517 - Wire up getSettings(). r=padenot
MozReview-Commit-ID: EX5FIo3rCoi

--HG--
extra : rebase_source : c9a814eb3fbc0a7455ec7c290c3c074cf1b45e7e
2016-06-20 00:38:25 -04:00
Jan-Ivar Bruaroey c6db53bb70 Bug 1213517 - Let cam access in competing tabs get closer to their ideals when a tab closes. r=padenot
MozReview-Commit-ID: htWkYMm18U

--HG--
extra : rebase_source : 10f430e9ff9ee4d89550b3a86e0a20c7989f61b6
2016-06-18 19:09:39 -04:00
Jan-Ivar Bruaroey d7a632ed43 Bug 1213517 - Consolidate camera Allocate's and Restart's constraints logic. r=padenot
MozReview-Commit-ID: CrARq0QZzrO

--HG--
extra : rebase_source : 86ca9c560990a7fa088fa2fa85a0381ef15ccac2
2016-06-18 16:11:54 -04:00
Jan-Ivar Bruaroey 711e75881f Bug 1213517 - Only restart camera if net settings actually change. r=padenot
MozReview-Commit-ID: h01gJ3uCom

--HG--
extra : rebase_source : c599504c1f95ca7fb1fa77487aa27abefe184ddc
2016-06-18 14:16:47 -04:00
Jan-Ivar Bruaroey 48ae827040 Bug 1213517 - Lift correct constraint out of lower-level code for OverconstrainedError. r=padenot
MozReview-Commit-ID: EWUjVBUrAps

--HG--
extra : rebase_source : 9c747e8d98af973dfefe873ea65fb01ffb180be2
2016-06-20 20:15:39 -04:00
Jan-Ivar Bruaroey d67b712448 Bug 1213517 - Normalize even more of the constraints code. r=padenot
MozReview-Commit-ID: 1XjdHXKYOmP

--HG--
extra : rebase_source : 6e6c05b9ffe6722decb6918667b83a3f9d6bfd8b
2016-06-17 15:20:10 -04:00
Jan-Ivar Bruaroey ea417c69e0 Bug 1213517 - optimize for maintenance of constraints (member pointer approach). r=padenot
MozReview-Commit-ID: 4JYb6QnMtVk

--HG--
extra : rebase_source : 6ecab6312fd647e85f3dfea5b0c5ec53b6c04b24
2016-06-27 10:03:27 -04:00
Jan-Ivar Bruaroey bd5e812679 Bug 1213517 - Report correct constraint in OverconstrainedError when constraints conflict directly. r=padenot
MozReview-Commit-ID: 2bVaSvntc8g

--HG--
extra : rebase_source : cf1724b5db8852ca05248b67380899e4a16c7725
2016-06-15 19:25:07 -04:00
Jan-Ivar Bruaroey 5d2ce17581 Bug 1213517 - Consider competing required constraints with OverconstrainedError. r=padenot
MozReview-Commit-ID: EHIY1hpaEQn

--HG--
extra : rebase_source : 0dc2ff54f4e1fb907074d4e71c96f25d50fad81a
2016-06-14 14:42:46 -04:00
Jan-Ivar Bruaroey f4b3a57ae5 Bug 1213517 - Consider competing constraints in getUserMedia+applyConstraints. r=jesup
MozReview-Commit-ID: 9jzjNrJVUMX

--HG--
extra : rebase_source : ccc602bcab7ed62170021707bc438e7713e0b7c0
2016-06-06 13:15:50 -04:00
Jan-Ivar Bruaroey 534b6e3dd7 Bug 1213517 - Add a way to merge multiple NormalizedConstraints. r=jesup
MozReview-Commit-ID: LfB9QviCNxU

--HG--
extra : rebase_source : eb93a91a4f96191efa80b10fb2546eab8283e20c
2016-07-02 00:16:37 -04:00
Jan-Ivar Bruaroey 3c55d4bc05 Bug 1213517 - Use NormalizedConstraints in low-level code. r=jesup
MozReview-Commit-ID: 3F9ZmHMKAFZ

--HG--
extra : rebase_source : 83ed4e1d3bc13265a1bdef6e9e8d0ee876f42472
2016-05-25 01:52:15 -04:00
Jan-Ivar Bruaroey 27fd33e96c Bug 1213517 - Add an un-flattened NormalizedConstraints type for downstream use. r=jesup
MozReview-Commit-ID: 1ZUN21mgfXh

--HG--
extra : rebase_source : ac158d5a7d265649bcf04952e138a1a86a5222a4
2016-06-30 16:08:45 -04:00