Commit Graph

10814 Commits

Author SHA1 Message Date
Wes Kocher
bb1d061819 Merge inbound to central, a=merge CLOSED TREE
UPGRADE_NSS_RELEASE UPGRADE_NSPR_RELEASE

MozReview-Commit-ID: 2CXltQtu4Y1

--HG--
extra : amend_source : 16333c0fa5342dfbbb2a4ded71f94119a022e27b
2017-06-06 17:15:21 -07:00
Ryan VanderMeulen
6cb217315a Backed out 12 changesets (bug 1366502) for causing intermittent QuantumRender debug crashtest crashes on a CLOSED TREE.
Backed out changeset 42350bacb0bc (bug 1366502)
Backed out changeset 7f98b7f60e58 (bug 1366502)
Backed out changeset 265e39153027 (bug 1366502)
Backed out changeset cf598918bb1b (bug 1366502)
Backed out changeset e2f21ee861e5 (bug 1366502)
Backed out changeset f7fcc15d8f90 (bug 1366502)
Backed out changeset 22408b6a1ad1 (bug 1366502)
Backed out changeset 8846dac9ee35 (bug 1366502)
Backed out changeset d5225d81b832 (bug 1366502)
Backed out changeset 82f5a21b53a6 (bug 1366502)
Backed out changeset 2b20aebef47d (bug 1366502)
Backed out changeset 95f4d82e3d79 (bug 1366502)
2017-06-06 18:06:42 -04:00
bechen
d6f6f61eed Bug 1298307 - Change the cue's startTime/endTime to avoid the videoframe was not created. r=alwu
Because the nsVideoFrame's creation is not synchronous to "append to dom tree", there is a small gap
that the TextTrackManager wants to render cue but no frame. Change the testcase to not hit the period.

MozReview-Commit-ID: 9xhMjRJnoDR
2017-06-05 17:24:20 +08:00
JerryShih
6c0b9a5735 Bug 1366502 - update reftest list. r=sotaro
We use gpu for yuv color conversion now. There are some precision problems in gpu path. Mark them fails-if and update the fuzzy-test value.

MozReview-Commit-ID: 6tunOCj3OHB
2017-06-06 19:18:40 +08:00
Gerald Squelart
74fb630e36 Bug 1369322 - MediaResourceIndex follows ShouldCacheReads recommendation - r=cpearce
MozReview-Commit-ID: A8mtz2fJd71

--HG--
extra : rebase_source : 81949d559c5482951ed9186c92d0759dd4a6b3b0
2017-06-02 16:10:48 +12:00
Gerald Squelart
caaa280433 Bug 1369322 - MediaResource::ShouldCacheReads to indicate usefulness of caching - r=cpearce
This hint will inform readers if caching is discouraged (e.g., for
SourceBufferResource) or recommmended (e.g., for MediaCache-backed
ChannelMediaResource).

MozReview-Commit-ID: 7hopNS0s5tE

--HG--
extra : rebase_source : 681646cc904229e8513adb148baa085254508049
2017-06-02 14:27:17 +12:00
JW Wang
49a7bff27a Bug 1367705. P3 - fix MediaChannelStatistics which no longer needs to be sharable. r=cpearce
MozReview-Commit-ID: 8guyyGquFnV

--HG--
extra : rebase_source : d4dcc146d3f7b36648cb06e3dc052ff648633821
extra : intermediate-source : ea621690a60d7b4208fddff7423747ea00ebeb4d
extra : source : a11e521f7f36cf8c8d31d7e6d52e0ea296306788
2017-06-02 12:44:43 +08:00
JW Wang
a8484aeb82 Bug 1367705. P2 - since RecordStatisticsTo() is removed in P1, we can now init mChannelStatistics in the constructor. r=cpearce
MozReview-Commit-ID: 5YcxnO368ex

--HG--
extra : rebase_source : bc0e757893de49fcdecf145b15fe13b194c23aa9
extra : intermediate-source : b4fd2265ca2652933fecf5502a4228a3bb0cd8f3
extra : source : 587479f45ef882571e5486b20b0b39dffe4d18fb
2017-06-02 11:51:52 +08:00
JW Wang
2688d70531 Bug 1367705. P1 - remove unused RecordStatisticsTo(). r=cpearce
This allows us to init mChannelStatistics in the constructor and
remove the possibility where we deref a null mChannelStatistics.

MozReview-Commit-ID: 9ZIRu0VXpd6

--HG--
extra : rebase_source : 741c8220e7e451b870aa9edd7d4006fd5c83eec4
extra : intermediate-source : 3cfd983577294749d85a4403724b42689f648df9
extra : source : a3f466b63da03a4989c799c169666bf0df937917
2017-06-02 11:10:38 +08:00
Makoto Kato
f6a1c5c5d1 Bug 1369992 - Make GetNative as public for clang. r=jolin
When building Fennec using clang, the following build error occurs.

 0:17.02 /mozilla/mobile/media/webrtc/signaling/src/media-conduit/WebrtcMediaCodecVP8VideoCodec.cpp:1099:27: error: 'GetNative' is a protected member of 'mozilla::jni::NativeImpl<mozilla::java::CodecProxy::NativeCallbacks, mozilla::JavaCallbacksSupport>'
 0:17.02     JavaCallbacksSupport::GetNative(mJavaCallbacks)->Cancel();
 0:17.02                           ^
 0:17.02 /mozilla/objdir-android/dist/include/mozilla/jni/Natives.h:821:18: note: declared protected here
 0:17.02     static Impl* GetNative(const typename Cls::LocalRef& instance) {
 0:17.02                  ^

We should define GetNative as public into JavaCallbacksSupport.h.

MozReview-Commit-ID: DYEyB2dRK8y

--HG--
extra : rebase_source : 8f77cac02800149aef814ce5fcd7bd3d23b56193
2017-06-03 21:09:58 +09:00
Ralph Giles
fcb2bf2018 Bug 1369950 - Update aom. r=gerald
Update our in-tree copy of the aom reference implementation
of the av1 video codec to upstream git commit id
aadbb0251996c8ebb8310567bea330ab7ae9abe4.

This picks up recent changes and addresses a build issue on win64.

MozReview-Commit-ID: 34LXXzFtEFN

--HG--
extra : rebase_source : 0face926928de6bd1c6a1726df912bd20e363e60
2017-05-10 14:16:55 -07:00
Ralph Giles
1cd421b9df Bug 1369950 - Remove aom_codec_stream_info_t sz field references. r=gerald
Upstream has removed the requirement to set this when
initializing the stream_info struct.

MozReview-Commit-ID: 24OJ550Ral

--HG--
extra : rebase_source : 501fd9f51084a4b6f779462536e94c71cf8c5bb7
2017-05-09 11:10:51 -07:00
Gerald Squelart
41b2a8ff81 Bug 1369538 - Telemetry MEDIACACHESTREAM_LENGTH_KB - r=cpearce,francois
Capture each media stream's length (as provided, otherwise as actually
downloaded), to gauge whether keeping media in memory would have a significant
impact.

MozReview-Commit-ID: 4yUQrbgLcGG

--HG--
extra : rebase_source : bed0ea1d58f864463926478b0f8ea59e7084c4af
2017-06-02 10:43:45 +12:00
Jean-Yves Avenard
5b7e2de861 Bug 1367128: P3. Plumb in new eviction methods with MSE demuxer. r=gerald
MozReview-Commit-ID: HULNEfD3tRJ

--HG--
extra : rebase_source : ad96f8d40ff8efcbb86e1b1acb41f9d91dc3920d
2017-06-02 21:16:33 +02:00
JW Wang
7348b1e4b3 Bug 1367679. P5 - add a gtest to test chaining between different promise types. r=gerald
MozReview-Commit-ID: 8l3clGN3pWd

--HG--
extra : rebase_source : 5c3a7d74649a44e9d86738942bfe58a34f63332f
extra : intermediate-source : 4811c6b4d7c4fb241c633e3c81cc8b032c69386e
extra : source : 620a6593190dbb97df105a5bb1ca5fa48d1c73be
2017-05-27 22:03:57 +08:00
Jean-Yves Avenard
5e8ee8b868 Bug 1345342: Cancel pending requests. r=jya
If the pending first frame decoding was cancelled, the next call to decode could lead to a crash.

MozReview-Commit-ID: 6Q4eKUzqOly

--HG--
extra : rebase_source : 3640a2edd07fdbd4811295c0088a4086ac579b26
2017-06-04 12:03:25 +02:00
JW Wang
26c7227c5e Bug 1370130 - dormant timeout should take precedence over preload='metadata'. r=kaku
We don't want to enter dormant when preload is 'metadata' if the timeout is negative (dormant is disabled).

MozReview-Commit-ID: 4KGAmtkZpH5

--HG--
extra : rebase_source : 86a6c9ca2091289a564abb695fa20d5e5d6678bf
2017-06-05 10:38:43 +08:00
Cameron McCormack
76df568747 Backed out changeset ff724e355b2d (bug 1345342) per jya's request. 2017-06-05 15:58:41 +08:00
Jean-Yves Avenard
f5de325f6f Bug 1345342: Cancel pending requests. r=jya
If the pending first frame decoding was cancelled, the next call to decode could lead to a crash.

MozReview-Commit-ID: 6Q4eKUzqOly

--HG--
extra : rebase_source : 620efb39265944998c23c184e831a5b71f9b437f
2017-06-04 12:03:25 +02:00
JW Wang
ea2f8c0d3a Bug 1370005. P1 - backout bug 1367679. r=gerald
MozReview-Commit-ID: 4SUCinaz3Cj

--HG--
extra : rebase_source : 2d6f7fec44a8fb4dd3a526ec6bd2cd5737c93727
2017-06-05 14:03:34 +08:00
Wes Kocher
269f7e9f5c Merge m-c to inbound, a=merge
MozReview-Commit-ID: 9wTctDOsPpO
2017-06-02 17:31:31 -07:00
Randell Jesup
ae21d19935 Bug 1353030: document use of WrapRunnable(this) r=cpearce
MozReview-Commit-ID: Fb3KjsI9tE3
2017-06-02 16:36:34 -04:00
Wes Kocher
0d038d6513 Merge autoland to m-c a=merge
MozReview-Commit-ID: Fjt5XIDd0p6
2017-06-02 17:21:39 -07:00
Jim Chen
378c61c98f Bug 1369108 - 1. Introduce optional device permission step; r=jesup
Right before `MediaManager::EnumerateRawDevices` posts its enumeration
task to the background thread, add the option to send out a
"getUserMedia:ask-device-permission" notification, whose purpose is to
give frontend UI a chance to ask for device permissions (e.g. permission
to enumerate cameras on Android).

The subject parameter of the notification is an `nsIRunnable` task,
which is passed back to `MediaManager`, after receiving permission,
through the `getUserMedia:got-device-permission` notification. The
notification listener then posts the task and enumeration proceeds as
before.

MozReview-Commit-ID: IhRXTdIplvN
2017-06-02 16:11:53 -04:00
Randell Jesup
16390d923a Bug 1367578: Don't use PR_LogPrint() for logging now that we use LazyLog r=drno
MozReview-Commit-ID: K1KVCtpEPTZ
2017-06-02 15:50:05 -04:00
Nils Ohlmeier [:drno]
9406837246 Bug 1367930: adjust ssrc's and encondings as simulcast answerer. r=bwc
MozReview-Commit-ID: EPdIWF5nn7u

--HG--
extra : rebase_source : 5301c7541f1f2d2eeac37f5b0545ad83e71d8e46
2017-05-27 00:04:55 -07:00
James Willcox
5dee9f6c40 Bug 1367287 - Release video surface when decoder is shut down r=jolin
MozReview-Commit-ID: GgWYSzBx7ZF
2017-06-02 10:14:12 -05:00
Randell Jesup
712586b20b Bug 1369724: Fix setting size for fake H264 codec r=jya
From bug 1341285

MozReview-Commit-ID: E6g6phiQC5H
2017-06-02 09:59:36 -04:00
Carsten "Tomcat" Book
72ff833516 Backed out changeset 12e990a89018 (bug 1369538) for causing new intermittent leak in browser_devices_get_user_media_in_frame.js 2017-06-02 10:37:59 +02:00
Jean-Yves Avenard
8acff71452 Bug 1369382: Don't make hard assertion that the queued sample is a keyframe. r=kaku
When seeking, we go to the first IDR prior the seek target. However, if the MP4 sample table is invalid the frame returned may not be an IDR.

It is an error for that frame to not be a keyframe, so we do want to have way to detect them through logging. Change assertion to a soft assertion for that purpose.

MozReview-Commit-ID: EMgwRo1mYMp

--HG--
extra : rebase_source : 363a7e148db166b2130a7862a49f03d419d3fe22
2017-06-01 16:07:27 +02:00
Jean-Yves Avenard
a9142498ec Bug 1360006: Whitelist VP9 decoder to intel GPU only. r=mattwoodrow
We enable by default the VP9 hardware decoder on intel GPU.

MozReview-Commit-ID: FzMzbpZErjQ

--HG--
extra : rebase_source : f34c969f7dda1ef24224e982f31d5e43cfae7cc0
2017-06-01 22:17:56 +02:00
JW Wang
30ad12db3a Bug 1367679. P5 - add a gtest to test chaining between different promise types. r=gerald
MozReview-Commit-ID: 8l3clGN3pWd

--HG--
extra : rebase_source : 5c3a7d74649a44e9d86738942bfe58a34f63332f
extra : intermediate-source : 4811c6b4d7c4fb241c633e3c81cc8b032c69386e
extra : source : 620a6593190dbb97df105a5bb1ca5fa48d1c73be
2017-05-27 22:03:57 +08:00
Alex Chronopoulos
d5f0cfa6ca Bug 971528 - Allocate given number of channels for WebRTC mic source. r=jesup
MozReview-Commit-ID: 6o28Bn6AJ1A

--HG--
extra : rebase_source : ba5d6508f3cdd2ac0d62749c911c0c126feabd49
2017-06-02 09:12:21 +03:00
Alex Chronopoulos
8ad6ff220e Bug 971528 - Expect stereo input in MediaEngineWebRTCMicrophoneSource. r=padenot
MozReview-Commit-ID: H8g9JW1xgP9

--HG--
extra : rebase_source : 3c772347d1ecd022766c3b1dea69842c21d7cf21
2017-06-02 09:12:08 +03:00
Alex Chronopoulos
a88c8ec84a Bug 971528 - Allow stereo capture in AudioCallbackDriver. r=padenot
* * *
[mq]: graph-driver-comments

MozReview-Commit-ID: JnU3opk8X5K
* * *
[mq]: tmp

MozReview-Commit-ID: 73CtZw4CRG

--HG--
extra : rebase_source : eda1c9429de289dff1b1c235d8c505828a4b3ed2
2017-06-02 09:11:56 +03:00
Gerald Squelart
dbea6f45b8 Bug 1369538 - Telemetry MEDIACACHESTREAM_LENGTH_KB - r=cpearce,francois
Capture each media stream's length (as provided, otherwise as actually
downloaded), to gauge whether keeping media in memory would have a significant
impact.

MozReview-Commit-ID: 4yUQrbgLcGG

--HG--
extra : rebase_source : bed0ea1d58f864463926478b0f8ea59e7084c4af
2017-06-02 10:43:45 +12:00
Wes Kocher
fbabaaa37f Merge m-c to autoland, a=merge
MozReview-Commit-ID: AiJ1z1wSNbR
2017-06-01 17:33:49 -07:00
Ryan VanderMeulen
d85c7f6cc3 Merge m-c to inbound. a=merge 2017-06-01 16:45:03 -04:00
Ryan VanderMeulen
30d19a2167 Backed out changeset 26e9faf36fc0 (bug 1368490) for bustage on a CLOSED TREE. 2017-06-01 13:19:30 -04:00
Bryce Van Dyk
4caf42b88d Bug 1368490 - Make sure number of channels is correctly set for opus encoder. r=jesup
MozReview-Commit-ID: 7bOxCvlvTDq
2017-05-30 21:01:02 +12:00
Bryce Van Dyk
c04074e14f Bug 1368490 - Make sure number of channels is correctly set for opus encoder. r=jesup 2017-05-30 21:01:02 +12:00
Sebastian Hengst
c3adb686ab Backed out changeset 4481be95f232 (bug 971528) for build bustage in MediaEngineWebRTC.h (at least on OS X). r=backout 2017-06-01 18:26:17 +02:00
Sebastian Hengst
410c1af28b Backed out changeset c37d2cdef062 (bug 971528) 2017-06-01 18:24:56 +02:00
Sebastian Hengst
d5c62bea2b Backed out changeset 08a538f6350b (bug 971528) 2017-06-01 18:24:52 +02:00
Alex Chronopoulos
c62f6bd444 Bug 971528 - Allocate given number of channels for WebRTC mic source. r=jesup
MozReview-Commit-ID: EVii9ACkjBu

--HG--
extra : rebase_source : 87b947d1b6321bbf649876fb3ce5f8d3ff67f371
2017-05-29 13:48:06 +03:00
Alex Chronopoulos
65f61e22ec Bug 971528 - Expect stereo input in MediaEngineWebRTCMicrophoneSource. r=padenot
MozReview-Commit-ID: 5nJAJw7WTEe

--HG--
extra : rebase_source : 11e364e927328a772505578ecd0849074d599dab
2017-05-29 13:26:57 +03:00
Alex Chronopoulos
fa245fd24c Bug 971528 - Allow stereo capture in AudioCallbackDriver. r=padenot
* * *
[mq]: graph-driver-comments

MozReview-Commit-ID: JnU3opk8X5K
* * *
[mq]: tmp

MozReview-Commit-ID: 73CtZw4CRG

--HG--
extra : rebase_source : cf6942aeaf4c2831fce4d92de0c5eeaaba7c0cd6
2017-05-29 13:26:27 +03:00
Bryce Van Dyk
7f7533c13f Bug 1272371 - Add mochitest to test looped playback of mediarecorder recordings. r=pehrsons
MozReview-Commit-ID: L9kbgrUYKmt

--HG--
extra : rebase_source : 573fa02f7697d88ad6a0bd0635abef1bffbb88d8
2017-05-25 13:37:05 +12:00
Paul Adenot
04e87f3df5 Bug 1369422 - Simplify MediaStreamGraph::IsNonRealtime and make it not lock. r=jesup
MozReview-Commit-ID: HAHR97y6zfh

--HG--
extra : rebase_source : 2b258ccedbe40599acc62c8932682ac21784cce4
2017-06-01 17:51:15 +02:00
Ralph Giles
d282fd8a60 Bug 1368839 - Add av1 to MediaSource.isTypeSupported. r=gerald
When av1 video playback is enabled, declare it as supported
in the webm container in MediaSource.IsTypeSupported.

Also support special mime types of the form

  video/webm; codecs=vp9.experimental.<git-commit-id>

so test sites can verify playback support of particular encodings
while the av1 bitstream is under development.

MozReview-Commit-ID: GS4n7cPxfQ7

--HG--
extra : rebase_source : a595942242304ccf97a341474b6e2e1e869e7a77
2017-05-30 16:37:20 -07:00