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

13755 Коммитов

Автор SHA1 Сообщение Дата
Byron Campen [:bwc] 2a2903b7fe Bug 1483338: Stop using level as the identifier for media transports. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D3448

--HG--
extra : moz-landing-system : lando
2018-08-28 19:45:58 +00:00
Cosmin Sabou 5d011e88d1 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-27 18:51:27 +03:00
Jean-Yves Avenard 95343883e7 Bug 1486080 - Always allocate memory to pass extradata. r=padenot
Despite wording of the documentation to the contrary, we can't provide a static pointer to an immutable object.
Apparently, it's always been that way.

Differential Revision: https://phabricator.services.mozilla.com/D4323

--HG--
extra : moz-landing-system : lando
2018-08-27 13:22:26 +00:00
Nathan Froyd ac6614c34b Bug 1486064 - don't cargo-cult AudioDeviceInfo.h in GraphDriver.cpp; r=padenot
When WebRTC is disabled, we get complaints about undefined AudioDeviceInfo.
2018-08-27 09:11:41 -04:00
Jean-Yves Avenard df2e2243b9 Bug 1485536 - Don't account frames dropped by the compositor as presented. r=bryce
We rename a method in FrameStatistics to better match what it's actually doing.

Differential Revision: https://phabricator.services.mozilla.com/D4213

--HG--
extra : moz-landing-system : lando
2018-08-27 10:27:19 +00:00
Csoregi Natalia 15876458af Backed out changeset 8c8ff2c7bfa1 (bug 1485536) for crashes at VideoSink. CLOSED TREE 2018-08-26 00:15:16 +03:00
Jean-Yves Avenard 5ab3282a07 Bug 1485536 - Don't account frames dropped by the compositor as presented. r=bryce
We rename a method in FrameStatistics to better match what it's actually doing.

Differential Revision: https://phabricator.services.mozilla.com/D4213

--HG--
extra : moz-landing-system : lando
2018-08-25 12:39:29 +00:00
Thomas Daede c02103611a Bug 1485875 - Expect Android to not play AV1 in MP4. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D4258

--HG--
extra : moz-landing-system : lando
2018-08-24 21:29:00 +00:00
Andreea Pavel 73467d18e1 Backed out changeset 1dc785e713d9 (bug 1485536) for assertion failure at z:/build/build/src/dom/media/mediasink/VideoSink.cpp on a CLOSED TREE 2018-08-24 21:10:59 +03:00
Jean-Yves Avenard 3b4c682a62 Bug 1485536 - Don't account frames dropped by the compositor as presented. r=bryce
We rename a method in FrameStatistics to better match what it's actually doing.

Differential Revision: https://phabricator.services.mozilla.com/D4213

--HG--
extra : moz-landing-system : lando
2018-08-24 14:26:14 +00:00
Tiberius Oros 2ee9341d01 Merge inbound to mozilla-central. a=merge 2018-08-24 12:43:45 +03:00
Thomas Daede 19b1e76253 Bug 1417050: Add AV1 in MP4 tests. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D3845

--HG--
extra : moz-landing-system : lando
2018-08-21 00:06:25 +00:00
Kris Maglione 65c28aa0ad Bug 1484496: Part 2 - Add common base class for all nsISimpleEnumerator implementations. r=froydnj
In order to allow JS callers to use nsISimpleEnumerator instances with the JS
iteration protocol, we'll need to additional methods to every instance. Since
we currently have a large number of unrelated implementations, it would be
best if they could share the same implementation for the JS portion of the
protocol.

This patch adds a stub nsSimpleEnumerator base class, and updates all existing
implementations to inherit from it. A follow-up will add a new base interface
to this class, and implement the additional functionality required for JS
iteration.

Differential Revision: https://phabricator.services.mozilla.com/D3725

--HG--
extra : rebase_source : ad66d7b266856d5a750c772e4710679fab9434b1
extra : histedit_source : a83ebffbf2f0b191ba7de9007f73def6b9a955b8
2018-08-18 14:22:47 -07:00
alwu b26e3f253f Bug 1483703 - part3 : modify test. r=cpearce
Differential Revision: https://phabricator.services.mozilla.com/D3672

--HG--
extra : moz-landing-system : lando
2018-08-22 22:52:04 +00:00
alwu bb11a649df Bug 1483703 - part1 : allow media without audio track to autoplay. r=cpearce
We would allow media without audio track to autoplay after it had loaded the metadata.

If media hasn't loaded metadata yet, we would treat it as audible media and then block it.

Differential Revision: https://phabricator.services.mozilla.com/D3670

--HG--
extra : moz-landing-system : lando
2018-08-22 23:31:58 +00:00
alwu a23a30a650 Bug 1483703 - part1 : allow media without audio track to autoplay. r=cpearce
We would allow media without audio track to autoplay after it had loaded the metadata.

If media hasn't loaded metadata yet, we would treat it as audible media and then block it.

Differential Revision: https://phabricator.services.mozilla.com/D3670

--HG--
extra : moz-landing-system : lando
2018-08-21 20:58:26 +00:00
Masatoshi Kimura 49ee57f31d Bug 1485028 - Fix warnings that are specific to clang-cl ASAN builds. r=dmajor
--HG--
extra : source : f0b577cc8b920352dfe297e7ec9cca58b1838c5d
2018-08-22 02:02:56 +09:00
Noemi Erli c7ab615992 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-22 19:32:56 +03:00
Paul Adenot 1c154b62b4 Bug 1483926 - Take into account mInputDeviceID is always nullptr on Android for now. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D3899

--HG--
extra : moz-landing-system : lando
2018-08-21 16:32:24 +00:00
Philipp Hancke 3a00b39e7b Bug 1481851 - Add kind to RTCRtpStreamStats as alias to mediaType. r=ng,smaug
spec change in https://github.com/w3c/webrtc-stats/issues/301
2018-08-08 17:30:40 +02:00
Jean-Yves Avenard 70040ff272 Bug 1245400 - P3. Report number of frames dropped by compositor back to VideoSink. r=nical
We report the number of frames dropped by the compositor because they were too late through:
ImageComposite -> ImageHost -> CompositableTransactionParent -> ImageBridgeParent -> IPDL -> ImageBridgeChild -> ImageContainerListener -> ImageContainer -> VideoSink

Differential Revision: https://phabricator.services.mozilla.com/D2177
2018-08-22 17:26:36 +02:00
Dorel Luca 7b58cfed95 Merge mozilla-central to mozilla-inbound 2018-08-21 19:04:42 +03:00
Dorel Luca 3fa761ade8 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-21 19:01:08 +03:00
Dorel Luca d9bdf77969 Merge mozilla-central to autoland 2018-08-21 12:57:58 +03:00
Thomas Daede 2868cd8be4 Bug 1417050: Add support for AV1 in MP4. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D3365

--HG--
extra : moz-landing-system : lando
2018-08-20 23:56:39 +00:00
Kris Maglione 56f4830bf8 Bug 1484466: Part 2a - Remove no-op generateCI calls. r=mccr8
These stopped having any effect when we switched to ChromeUtils.generateQI,
which does not support automatic nsIClassInfo forwarding.

Differential Revision: https://phabricator.services.mozilla.com/D3707

--HG--
extra : rebase_source : 62a3690304ad7baa760c41eba777aa17b9af33f0
2018-08-18 12:38:31 -07:00
Jean-Yves Avenard 384be24476 Bug 1482847 - Fix android decoder creation. r=jolin
A mDisplay vs mImage mixup. We also set both values in CreateTrackInfoWithMIMETypeAndContainerTypeExtraParameters to prevent similar issues in the future.

Differential Revision: https://phabricator.services.mozilla.com/D3788

--HG--
extra : moz-landing-system : lando
2018-08-20 15:47:21 +00:00
Jean-Yves Avenard 2cdf517489 Bug 1484648 - Implement CodecProxy::IsHardwareAccelerated. r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D3789

--HG--
extra : moz-landing-system : lando
2018-08-20 15:42:33 +00:00
Narcis Beleuzu 1fc429066b Backed out changeset 655d8b94c8f1 (bug 1483926) for geckoview failures on org.mozilla.geckoview.test.PermissionDelegateTest.media
--HG--
extra : rebase_source : 6f7996f81fa9d4c2b675df595b9de3f6385ee5e3
2018-08-20 15:21:55 +03:00
Jean-Yves Avenard c964f8fa02 Bug 1484242 - P3. Have MediaCapablities use GlobalAllocPolicy for creating decoders. r=bryce
This ensures on platform that requires it, that only a single decoder at a time are used, in effect serialising all the MediaCapabilities.decodingInfo requests.

Differential Revision: https://phabricator.services.mozilla.com/D3679
2018-08-21 15:20:54 +02:00
Jean-Yves Avenard d643f0e549 Bug 1484242 - P2. Add AllocationWrapper::CreateDecoder convenience method. r=bryce
This method will allocate a decoder according to the GlobalAllocPolicy. On Android API 18 and lower, there can only be a single decoder created at a time. The promise returned by CreateDecoder will only be resolved once the allocation policy permits a new decoder to be created.

Differential Revision: https://phabricator.services.mozilla.com/D3678
2018-08-21 15:20:54 +02:00
Jean-Yves Avenard d3b19c39b3 Bug 1484242 - P1. Add AllocationPolicy objects. r=bryce
We extract the GlobalAllocationPolicy and the MediaDataDecoder wrapper from MediaFormatReader.

They will be used to create a new wrapping class that will serialize allocation and initalization of decoders if the platform requires it.

Differential Revision: https://phabricator.services.mozilla.com/D3676
2018-08-21 15:20:54 +02:00
Paul Adenot 3f50ca3b6f Bug 1480036 - Allow scaling all MSG volume with a pref. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D2594

--HG--
extra : rebase_source : 12a931585d95fe190e6fc1e3b4fba9a2f0cd6cd9
extra : histedit_source : 355f316e6eba1feaa0ee3e7750feede92eeae4bc
2018-08-01 12:10:32 +02:00
Paul Adenot a5f0fee215 Bug 1480036 - Allow forcing a specific audio output device from a test. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D3507

--HG--
extra : rebase_source : 2f20dcd24d148ea0cc9f7b73ff0dd81f25574467
extra : histedit_source : aa2205caf3ad5fe9e5fceaf78e6f7a7e3488155b
2018-08-01 14:16:30 +02:00
Paul Adenot a7e21c1d8c Bug 1483926 - Fix Android device enumeration. r=pehrsons
Not having a return here means that we end up clearing our device list.

Differential Revision: https://phabricator.services.mozilla.com/D3613

--HG--
extra : moz-landing-system : lando
2018-08-17 15:34:16 +00:00
Karl Tomlinson 8f279eaba8 Bug 1484046 reset variables for main thread buffer dropping logic on the same thread r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D3580

--HG--
extra : moz-landing-system : lando
2018-08-17 12:24:51 +00:00
John Lin a47eb60caa Bug 1481139 - fix GMP process IPC channel error on Android. r=jld,njn
Bug 1481139 - p1: handle invalid file descriptors.
Bug 1481139 - p2: add dummy fds for GMP process.

Two file descriptors were added in bug 1438678 and 1471025 for content/child
process but not GMP process, and it breaks the IPC channel on Android.

Add dummy values to make it work for now before bug 1440207 clean up the mess.

Differential Revision: https://phabricator.services.mozilla.com/D3541

--HG--
extra : moz-landing-system : lando
2018-08-17 00:06:20 +00:00
Karl Tomlinson 298f16043a Bug 1483174 use float constants with float delay time variables r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D3396

--HG--
extra : moz-landing-system : lando
2018-08-16 11:09:03 +00:00
Tiberius Oros 246f2b4fab Merge inbound to mozilla-central. a=merge 2018-08-17 00:32:50 +03:00
Paul Adenot 96df0fd394 Bug 1478837 - Reinstate a few Web Audio API tests in the mochitest directory. r=karlt
MozReview-Commit-ID: 6Bqjuj1BwAJ

--HG--
extra : rebase_source : d2163747ec487e4bf521a27ecd95670125d5555a
2018-08-14 12:10:00 +02:00
Karl Tomlinson 7e758c3e77 bug 1474470 support convolution of stereo input with a mono impulse response buffer r=padenot
This initial implementation does twice the necessary processing for mono input,
but that will be addressed in bug 1474222.

MozReview-Commit-ID: AZQ7Zb8jEtK

--HG--
extra : rebase_source : 9feeb254217dc4e14b78cb03315fb948e3477a16
2018-08-16 09:59:05 +12:00
Timothy Guan-tin Chien 8cc930296b Bug 1431255 - Part II, Create a Shadow Root in HTMLMediaElement when enabled, skipping <xul:videocontrols> r=dholbert,smaug
This prevents XBL binding from being attached, and create the Shadow Root to
host controls to be created by the script.

Shadow Root and the JS controls are lazily constructed when the controls
attribute is set.

Set nsVideoFrame as dynamic-leaf so it will ignore content child frames when
the controls are XBL anonymous content, and handles child frames from controls
in the Shadow DOM. The content nodes are still ignored since there is no
<slot>s in our Shadow DOM.

MozReview-Commit-ID: 3hk41iMa07n

--HG--
extra : rebase_source : f6f8a3facc9d83f5626cf5f3b4e3fa27438a8a8f
2018-06-27 11:12:38 -07:00
Dale Harvey 59e904f6cd Bug 1476555 - Show notification when autoplay blocked globally. r=cpearce,johannh
MozReview-Commit-ID: EI0GiaoBNqX

--HG--
extra : rebase_source : 0c6fb98047913fc50423532cc4c433c4627c5b06
2018-07-23 16:43:08 +01:00
Jean-Yves Avenard 0d443a3096 Bug 1482605 - Don't error on Opus channel mapping version 2. r=padenot
We do not perform any channels placement, instead we leave the channels in the order they come in.

Add corresponding tests.

Differential Revision: https://phabricator.services.mozilla.com/D3153
2018-08-14 14:38:42 +02:00
Jean-Yves Avenard 5f024b5f70 Bug 1482841 - P2. Fix opus in mp4 decoding. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D3233
2018-08-14 14:38:42 +02:00
Karl Tomlinson 7b02c4debb bug 1480661 use single precision for operating on delay values r=padenot
These are derived from single precision AudioParam values
and so there is little to gain from using double.

double has the disadvantage that values intended to be integer
frame counts are less likely to be integer. e.g.

(rr) print ((float)(128.0/48000.0))*48000.f
$91 = 128
(rr) print ((float)(128.0/48000.0))*48000.0
$92 = 127.99999862909317
(rr) print ((float)(128.0/44100.0))*44100.f
$93 = 128
(rr) print ((float)(128.0/44100.0))*44100.0
$94 = 127.99999765120447
(rr) print ((float)(768.0/48000.0))*48000.f
$95 = 768.000061
(rr) print ((float)(768.0/48000.0))*48000.0
$96 = 768.0000364780426
(rr) print ((float)(768.0/44100.0))*44100.f
$97 = 768
(rr) print ((float)(768.0/44100.0))*44100.0
$98 = 768.00002697855234

MozReview-Commit-ID: FlmZJeBjUYY

--HG--
extra : rebase_source : 5c4f4a68383468c6afd15de43526eae42b01154b
2018-08-06 10:18:24 +12:00
Karl Tomlinson db85c1ab25 bug 1480661 remove unused mCurrentDelay r=padenot
MozReview-Commit-ID: 4EIeOE769Ne

--HG--
extra : rebase_source : 9e4116d4e0487af003b30fcc163b3a8495f541d0
2018-08-02 18:37:49 +12:00
Karl Tomlinson e423d1dd0f bug 1480661 move DelayNode channelCount test to wpt r=padenot
MozReview-Commit-ID: 9RUVk4dMW6g

--HG--
rename : dom/media/webaudio/test/test_delaynode-channel-count-1.html => testing/web-platform/tests/webaudio/the-audio-api/the-delaynode-interface/delaynode-channel-count-1.html
extra : rebase_source : e660fbf78d2605f356211b26ba81cfb8c333189e
2018-08-06 09:38:19 +12:00
Karl Tomlinson c9e4bfc724 bug 1480661 add test for DelayNode channelCount r=padenot
MozReview-Commit-ID: D6JbCa3Gsmr

--HG--
extra : rebase_source : 2c1709799fde00c0ac8a4428b16aa58dbef019d0
2018-08-01 12:18:09 +12:00
Karl Tomlinson d70e1cc5fa bug 1480661 avoid reading channel count of most recent delay buffer input when reading samples at max delay r=padenot
When maxDelay was mMaxDelayTicks and these were an integer multiple of block
size, the +1 for determining oldestChunk was enough to wrap around the buffer
and find the most recent chunk, which may have a different channel count to
that of the oldest.

MozReview-Commit-ID: KakFeGzuvsW

--HG--
extra : rebase_source : 51c2ab1dffb7ffa9e941b06e379eacacfaa6904a
2018-08-02 17:36:05 +12:00