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

4746 Коммитов

Автор SHA1 Сообщение Дата
JW Wang a890d8c667 Bug 1146482 - remove MediaDecoder::mReentrantMonitor which is not used anymore. r=jya. 2015-10-07 14:53:22 +08:00
JW Wang fcf9e2e7ae Bug 1212260 - MediaFormatReader::SetCDMProxy should call |OwnerThread()->Dispatch|. r=cpearce. 2015-10-08 14:05:06 +08:00
Eric Rahm a67da92ff4 Bug 1212681 - Enable MSE mochitests on e10s. r=jya 2015-10-08 13:38:02 -07:00
Paul Adenot 6c0eec35f6 Bug 1203616 - Test that waveshaper nodes don't corrupt their input buffer. r=karlt
--HG--
extra : rebase_source : a137eb3deef4fadfa686ff083712c1a614ec6fd8
2015-10-08 11:16:31 +02:00
Paul Adenot e1154a6a56 Bug 1203616 - Properly scale the input buffer of a WaveShaperNode before processing it with the curve. r=karlt
--HG--
extra : rebase_source : b2505272bf0b177dfb0c6215d0e232a591b6650a
2015-10-08 11:16:31 +02:00
Kilik Kuo 67185f564b Bug 1211364 - Check frame validity earlier when decoded frames arrive in MDSM. r=jwwang
Rebase to currnet truck

--HG--
extra : transplant_source : %EEOW%D8%0D%9B%C8%F5%90%DB0%0E%BFXgX%98%F4%14%A2
2015-10-07 14:52:05 +08:00
hsteinbr 13076b561a Bug 1211658 - GUM constraints for screen sharing don't affect framerate. r=jib
--HG--
extra : amend_source : 65a2228c2b6dd90c4d59d3d9246af7bc1558f41a
2015-10-05 17:05:00 +02:00
Tim Taubert cd6157491d Bug 1001691 - Make GenerateAsymmetricKeyTask::mKeyPair a UniquePtr so that we can explicitly release it on the main thread r=mt 2015-09-21 14:52:40 +02:00
JW Wang 68837e7538 Bug 1211793 - Remove unnecessary creation of "MediaDecoder" log module. r=gerald. 2015-10-07 14:27:26 +08:00
JW Wang e7aabfcb3a Bug 1211787 - Improve the accuracy of MediaDecoderStateMachine::GetDecodedAudioDuration(). r=roc. 2015-10-07 12:09:34 +08:00
Nigel Babu 1a01355c4f Backed out 16 changesets (bug 1206977, bug 1211652, bug 1211335) for linux bc7 bustage ON A CLOSED TREE
Backed out changeset 51b1b076a386 (bug 1206977)
Backed out changeset dec7c35469d1 (bug 1206977)
Backed out changeset bf9ddc78b394 (bug 1206977)
Backed out changeset 08f5cff5aa12 (bug 1206977)
Backed out changeset e4e91de99867 (bug 1206977)
Backed out changeset 696ecf2e2947 (bug 1206977)
Backed out changeset ab2d524a9b35 (bug 1206977)
Backed out changeset d66be0e4547f (bug 1206977)
Backed out changeset 64c58afbd6c1 (bug 1206977)
Backed out changeset eb10d09015e1 (bug 1206977)
Backed out changeset 042959216393 (bug 1206977)
Backed out changeset 7e0de7f62202 (bug 1206977)
Backed out changeset 3d095569f6ba (bug 1206977)
Backed out changeset 041418a07ae5 (bug 1206977)
Backed out changeset 654970da23e4 (bug 1211335)
Backed out changeset 8ba8e24a84d3 (bug 1211652)
2015-10-07 13:43:39 +05:30
Nigel Babu 41bc4391c9 Backed out changeset 67b7e1825a7f (bug 1212164) for depending on bug 1206977 2015-10-07 13:43:10 +05:30
Nigel Babu 7e537c9909 Backed out changeset abaadd5361ad (bug 1198664) for B2G build bustage ON A CLOSED TREE 2015-10-07 12:33:08 +05:30
Nigel Babu 8a586a51d4 Backed out changeset 3a4fb0ededfd (bug 1198664) for B2G build bustage ON A CLOSED TREE 2015-10-07 12:32:01 +05:30
Gerald Squelart 5b977ec21d Bug 1211337 - Added crash report annotations tracking sync shutdown process. r=cpearce 2015-10-05 04:14:00 +02:00
Jan-Ivar Bruaroey 61cd22ad23 Bug 1210852 - do SelectSettings of device capabilities on media thread. r=jesup
--HG--
extra : transplant_source : %8E%BB%7B%90MSt%0F%40s%8A%0C/%16y%15Ne%2A%1E
2015-10-03 20:42:26 -04:00
John Lin 993994a080 Bug 1198664 - Part 2 - Use looper to process decoder tasks. r=bwu 2015-10-06 02:20:00 +02:00
John Lin 3e0637f43f Bug 1198664 - Part 1 - Refactor: move common behaviors to base class. r=bwu,jya 2015-10-06 02:18:00 +02:00
sajitk eb1836bb1e Bug 1180940 - Changed return type of AudioDestinationNode::CreateAudioChannelAgent method to return errors, if any methods that it calls fail. Added code to handle the return value in AudioContext::Init(), and its callers. r=baku 2015-10-05 04:35:00 +02:00
Jean-Yves Avenard 339a21eccf Bug 1212164: Prevent use of demuxer before it is ready. r=cpearce 2015-10-07 16:54:43 +11:00
Jean-Yves Avenard c3e24823e8 Bug 1206977: P14. Remove obsolete / redundant code. r=cpearce 2015-10-07 16:40:31 +11:00
Jean-Yves Avenard ac5814731c Bug 1206977: P13. Assert that data fed to EMEDecoderModule is encrypted. r=cpearce
The PDMFactory ensures that the EMEDecoderModule is only used for encrypted data, we can simplify EMEDecoderModule and make strong assumptions
2015-10-07 16:40:30 +11:00
Jean-Yves Avenard 6f051abaa4 Bug 1206977: P12. Properly shutdown all created test decoders. r=cpearce 2015-10-07 16:40:30 +11:00
Jean-Yves Avenard b4365d5d77 Bug 1206977: P11. Don't rely on SupportsMimeType to determine if a track can be played. r=cpearce
The PDMFactory will run more accurate checks based on the TrackInfo object and will fail to create a decoder if the type is unsupported. So use that instead
2015-10-07 16:40:29 +11:00
Jean-Yves Avenard 87d89f828c Bug 1206977: P10. Remove redundant code. r=cpearce
The same checks are performed in the PDMFactory::SupportsMimeType
2015-10-07 16:40:29 +11:00
Jean-Yves Avenard 27b77f96da Bug 1206977: P9. Ensure PDMs are only ever created through the PDMFactory. r=cpearce 2015-10-07 16:40:28 +11:00
Jean-Yves Avenard 2da2bd26f9 Bug 1206977: P8. Have PDMFactory directly manage the EMEDecoderModule. r=cpearce 2015-10-07 16:40:27 +11:00
Jean-Yves Avenard 6c9f5d0954 Bug 1206977: [webm] P7. Remove IntelWebMVideoDecoder. r=kinetik
That code path is no longer used and handled directly in the MediaFormatReader.

Also, partially revert commit ac6d0b0befb2 as it broke WebMReader.
2015-10-07 16:40:27 +11:00
Jean-Yves Avenard 7ad7357100 Bug 1206977: P6. Make PlatformDecoderModule::SupportsMimeType pure virtual. r=cpearce 2015-10-07 16:40:26 +11:00
Jean-Yves Avenard 046f9f13a9 Bug 1206977: P5. Update PlatformDecoderModule documentation. r=cpearce
Mostly removes no longer relevant doc.
2015-10-07 16:40:25 +11:00
Jean-Yves Avenard 55d1cb62fc Bug 1206977: P4. Add AgnosticDecoderModule object. r=cpearce
This removes the need for PDMFactory to know anything about decoders.
2015-10-07 16:40:25 +11:00
Jean-Yves Avenard 78fc388e1e Bug 1206977: P3. Allow PDM fallback. r=cpearce
We now search in all the PDM present the one that can handle the media.
2015-10-07 16:40:24 +11:00
Jean-Yves Avenard 0256993164 Bug 1206977: P2. Wrap PDM creation in a new PDMFactory class. r=cpearce
There is no change of behaviour from the original PlatformDecoderModule.
2015-10-07 16:40:24 +11:00
Jean-Yves Avenard 9586070ed3 Bug 1206977: P1. Remove unused PDM function members. r=cpearce 2015-10-07 16:40:23 +11:00
Jean-Yves Avenard 89639edfde Bug 1211335: Have FFMpegDecoderModule properly return if a codec is supported. r=cpearce 2015-10-07 16:40:22 +11:00
Jean-Yves Avenard 3a86e96468 Bug 1211652: Add sourcebuffer.mode = sequence mochitest. r=gerald 2015-10-07 16:40:22 +11:00
John Lin ec509c177b Bug 1198664 - Use looper to process decoder tasks. r=bwu
--HG--
extra : rebase_source : dc2b04fb2ca4bb5298783993fdcb50854086e228
2015-10-07 00:32:00 +02:00
John Lin 1d3c7f5365 Bug 1198664 - Refactor: move common behaviors to base class. r=bwu,jya
--HG--
extra : rebase_source : 638f1e27980212e7b47e091bbc2450f6b99aa6c5
2015-10-06 02:18:00 +02:00
Andrea Marchesini c53e405b13 Bug 1211511 - AudioChannelAgent::NotifyStartedPlaying and NotifyStoppedPlaying should use the same level of playback notification, r=roc 2015-10-07 20:06:47 +01:00
Wes Kocher 1d2db38d82 Backed out changeset fe1ed0ded678 (bug 1211974) for robocop orange 2015-10-07 11:45:59 -07:00
Eitan Isaacson bcfd470971 Bug 1211974 - Implement nsIObserver in SpeechDispatcherService. r=smaug 2015-10-07 09:57:37 -07:00
Andrew McCreight 0ff7248107 Bug 1210517 - Create nsVariant directly rather than via do_CreateInstance(). r=froydnj
The goal here is to leave creation stuff mostly for JS, so we can
convert it entirely over to a non-threadsafe cycle-collected version
without breaking any existing C++ users.

I didn't do this for a remaining use in nsGlobalWindow.h to avoid
including nsVariant.h all over the place.
2015-10-07 08:17:42 -07:00
Jean-Yves Avenard 9a7c13fa78 Bug 1206977: P15. Fix FFmpeg shutdown crash should decoder not be initialised. r=me 2015-10-08 00:34:49 +11:00
Jean-Yves Avenard c5052e863a Bug 1206977: P14. Remove obsolete / redundant code. r=cpearce 2015-10-08 00:34:48 +11:00
Jean-Yves Avenard e32d97b854 Bug 1206977: P13. Assert that data fed to EMEDecoderModule is encrypted. r=cpearce
The PDMFactory ensures that the EMEDecoderModule is only used for encrypted data, we can simplify EMEDecoderModule and make strong assumptions
2015-10-08 00:34:48 +11:00
Jean-Yves Avenard e4ea0dae9d Bug 1206977: P12. Properly shutdown all created test decoders. r=cpearce 2015-10-08 00:34:47 +11:00
Jean-Yves Avenard d9cf3168c4 Bug 1206977: P11. Don't rely on SupportsMimeType to determine if a track can be played. r=cpearce
The PDMFactory will run more accurate checks based on the TrackInfo object and will fail to create a decoder if the type is unsupported. So use that instead
2015-10-08 00:34:47 +11:00
Jean-Yves Avenard bfea6860dd Bug 1206977: P10. Remove redundant code. r=cpearce
The same checks are performed in the PDMFactory::SupportsMimeType
2015-10-08 00:34:46 +11:00
Jean-Yves Avenard 620a0262c9 Bug 1206977: P9. Ensure PDMs are only ever created through the PDMFactory. r=cpearce 2015-10-08 00:34:46 +11:00
Jean-Yves Avenard 5d54dafcb3 Bug 1206977: P8. Have PDMFactory directly manage the EMEDecoderModule. r=cpearce 2015-10-08 00:34:45 +11:00
Jean-Yves Avenard 61bf9de8cf Bug 1206977: [webm] P7. Remove IntelWebMVideoDecoder. r=kinetik
That code path is no longer used and handled directly in the MediaFormatReader.

Also, partially revert commit ac6d0b0befb2 as it broke WebMReader.
2015-10-08 00:34:45 +11:00
Jean-Yves Avenard c463ef6fd5 Bug 1206977: P6. Make PlatformDecoderModule::SupportsMimeType pure virtual. r=cpearce 2015-10-08 00:34:44 +11:00
Jean-Yves Avenard ff58eec402 Bug 1206977: P5. Update PlatformDecoderModule documentation. r=cpearce
Mostly removes no longer relevant doc.
2015-10-08 00:34:44 +11:00
Jean-Yves Avenard 9e830ea930 Bug 1206977: P4. Add AgnosticDecoderModule object. r=cpearce
This removes the need for PDMFactory to know anything about decoders.
2015-10-08 00:34:43 +11:00
Jean-Yves Avenard 35090bba3a Bug 1206977: P3. Allow PDM fallback. r=cpearce
We now search in all the PDM present the one that can handle the media.
2015-10-08 00:34:42 +11:00
Jean-Yves Avenard dd5e99c694 Bug 1206977: P2. Wrap PDM creation in a new PDMFactory class. r=cpearce
There is no change of behaviour from the original PlatformDecoderModule.
2015-10-08 00:34:42 +11:00
Jean-Yves Avenard cc74e2d1a4 Bug 1206977: P1. Remove unused PDM function members. r=cpearce 2015-10-08 00:34:41 +11:00
Jean-Yves Avenard 9861c50a98 Bug 1211335: Have FFMpegDecoderModule properly return if a codec is supported. r=cpearce 2015-10-08 00:34:41 +11:00
Jean-Yves Avenard a02b64b149 Bug 1212164: Prevent use of demuxer before initialization completes. r=cpearce 2015-10-08 00:34:40 +11:00
Jean-Yves Avenard d36aaa89f4 Bug 1211652: Add sourcebuffer.mode = sequence mochitest. r=gerald 2015-10-08 00:34:40 +11:00
Jan Henning 1e4aec48b4 Bug 1202286 - Part 2 - Switch VBR header parsing to use a ByteReader as well instead of directly accessing the buffer. r=esawin
This also contains two small fixes to the VBR header parsing logic itself:
- VBRI parsing was previously broken because the offset wasn't calculated correctly.
- Xing-style headers can use a VBR header ID of "Info" as well.

--HG--
extra : rebase_source : 320a5e7b50e16ab3382e7121dd3d41f5fc439b76
2015-10-04 18:51:40 +02:00
Jan Henning 39b1643cc7 Bug 1202286 - Part 1 - Switch the MPEG frame and ID3 header parsers to use a ByteReader instead of accessing the input buffer directly. r=esawin
--HG--
extra : rebase_source : 4d3c6e1d5f6655163bf59fcdc4238f3740e107d2
2015-10-03 20:36:46 +02:00
Jan Henning 7db0ee08cb Bug 1202286 - Part 0 - Add some explicit namespace references to keep the compiler and IntelliSense happy. r=esawin
DecoderTraits.cpp pulls in MP3Demuxer.h which in turn pulls in mp4_demuxer/ByteReader.h. In that context, for some reason the ByteReader can't find the definition for MediaByteBuffer unless it is prefixed with the proper namespace.

MP3Demuxer.cpp itself compiles fine, but for some reason in Visual Studio IntelliSense complains about TimeUnit and TimeIntervals being undefined unless the using statement uses the full namespace hierarchy.

Also fix a small typo.

--HG--
extra : rebase_source : fc46fc82bf06b61c9ac31c2f4331f84f8557c51e
2015-10-01 11:29:48 +02:00
JW Wang aadc51ecc8 Bug 1211766 - Remove AbstractMediaDecoder::GetReentrantMonitor(). r=jya. 2015-09-30 07:04:49 +08:00
Chris Pearce 3aa7323650 Bug 1211339 Part 3 - Refuse to support video codecs inside audio mime types. r=jya 2015-10-06 16:53:03 +13:00
Chris Pearce aaf1f72ba5 Bug 1211339 Part 2 - Make MP4Decoder::CanHandleMediaType() check all codecs are supported by a PDM before reporting support. r=jya 2015-10-06 16:52:58 +13:00
Chris Pearce 494f013e18 Bug 1211339 - Ensure WMFDecoderModule::SupportsMimeType checks it can create decoders. r=jya 2015-10-06 16:52:52 +13:00
JW Wang 39fbfc7425 Bug 1208934 - Remove usage of decoder monitor from MDSM. r=kinetik. 2015-10-06 10:26:33 +08:00
Andrew McCreight 5171450b27 Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv 2015-10-05 09:38:14 -07:00
Carsten "Tomcat" Book 239ba800f1 Backed out 2 changesets (bug 1211339) for m3 test failures on a CLOSED TREE
Backed out changeset 91bff7bc67d7 (bug 1211339)
Backed out changeset d34f694b13cf (bug 1211339)
2015-10-05 14:34:44 +02:00
Chris Pearce 83d11d9363 Bug 1211339 Part 2 - Make MP4Decoder::CanHandleMediaType() check all codecs are supported by a PDM before reporting support. r=jya 2015-10-05 22:39:10 +13:00
Chris Pearce addcdce5f7 Bug 1211339 Part 1 - Ensure WMFDecoderModule::SupportsMimeType checks it can create decoders. r=jya 2015-10-05 22:39:00 +13:00
Andreas Pehrson 5179d4123b Bug 1182426 - Set PlanarYCbCrImage's size in VP8TrackEncoder GTest. r=roc
--HG--
extra : commitid : 9dFV0mv1iSr
extra : rebase_source : 699e4a73382e8792a1517d2f8520e3f4d3f9e6c7
2015-10-02 13:59:18 +08:00
Andreas Pehrson 7e6023b3b4 Bug 1182426 - Test that we can record CanvasCaptureMediaStreams. r=roc
--HG--
extra : commitid : 9dFV0mv1iSr
extra : rebase_source : 111d3b636be9b72d97539d57f5e7dbea22c01d35
2015-10-05 11:51:43 +08:00
Andreas Pehrson 9d893f67a5 Bug 1182426 - Test that changing video resolution of a recorded stream throws an error. r=roc
--HG--
extra : commitid : 9dFV0mv1iSr
extra : rebase_source : c27e9418e76e394e0a35fd7f1dd3c1c14363db03
2015-10-05 11:52:07 +08:00
Andreas Pehrson cf12f20f9b Bug 1182426 - Add some asserts to VP8TrackEncoder for sanity. r=roc
--HG--
extra : commitid : 9dFV0mv1iSr
extra : rebase_source : 9189ebce5d39dd576fca123ac2a9fa99872de777
2015-10-02 13:59:18 +08:00
Andreas Pehrson 4c43df2634 Bug 1182426 - Convert non-PlanarYCbCRImages in VP8TrackEncoder. r=roc
--HG--
extra : commitid : 9dFV0mv1iSr
extra : rebase_source : 82cf3fde97c1f74229a9bbca4f8eebe1b953b167
2015-10-02 13:59:17 +08:00
Andreas Pehrson 1447402197 Bug 1182426 - Flatten YUV formats conversion code in VP8TrackEncoder. r=roc
--HG--
extra : commitid : 9dFV0mv1iSr
extra : rebase_source : bc4935d580936903461c00312dde61c95a726eca
2015-10-02 13:59:17 +08:00
Andreas Pehrson 82fe052e12 Bug 1182426 - Don't try to encode new frames of a size other than the initial in VP8TrackEncoder. r=roc
--HG--
extra : commitid : 9dFV0mv1iSr
extra : rebase_source : bcf38a8371226b53fd5e731fda50d3c260b60d9f
2015-10-02 13:59:17 +08:00
Andreas Pehrson db0b3b7874 Bug 1182426 - Sort includes in VP8TrackEncoder.cpp alphabetically. r=roc
--HG--
extra : commitid : 9dFV0mv1iSr
extra : rebase_source : fe094fcd39d4620ef50dae24efc6e374c47ba407
2015-10-02 13:59:17 +08:00
Nigel Babu 45398666d6 Backed out changeset b958e25b1ecf (bug 1209744) for mochitest bustage 2015-10-05 14:22:10 +05:30
Martin Thomson 840a4a7b4e Bug 1209744 - Implement canTrickleIceCandidates attribute, r=bwc, r=khuey
--HG--
extra : rebase_source : bfdf5073bec5fd6cb9689701fb1df6ee841362d6
extra : amend_source : e6ec6e7ed24a24b7dfcc8b60eda38d3d2a00d2f1
2015-10-01 12:52:00 +02:00
Alfredo Yang d66d46126b Bug 1204622 - release codec listener at reader task queue. r=jya
--HG--
extra : rebase_source : adb41147997f51941746af1f8dfe151f784c1771
2015-10-01 00:43:00 +02:00
JW Wang ec3022bd58 Bug 1211327 - Remove unnecessary usage of decoder monitor from MediaDecoderReader and sub-classes. r=jya. 2015-10-05 14:06:14 +08:00
JW Wang dcabe087e7 Bug 1209864. Part 2 - remove unused code. r=sotaro. 2015-09-29 21:39:14 +08:00
JW Wang 7435f302de Bug 1209864. Part 1 - make all methods run on the main thread and remove usage of the decoder monitor. r=roc. 2015-09-27 21:37:48 +08:00
Bobby Holley f729d738ab Bug 1208656 - Grab the tail dispatch each time in case the runnable spins the event loop. r=khuey
If the runnable spins the event loop, we may end up firing the tail dispatcher,
which causes the AutoTaskDispatcher to be destroyed, after which point invoking
methods on it will crash. We need to grab it each time so that it will be lazily
instantiated as-needed.
2015-10-04 22:46:16 -07:00
Jean-Yves Avenard 5558525f6c Bug 1211328: [MSE] Fix timestampOffset attribute calculation in sequence mode. r=gerald 2015-10-05 15:45:56 +11:00
JW Wang 46d9f98520 Bug 1209890 - add main thread assertions and remove usage of decoder monitor from MediaSourceDecoder. r=jya. 2015-09-30 06:55:21 +08:00
Nicholas Nethercote 77d38112ab Bug 1209351 (part 2) - Optimize nsTHashTable::RemoveEntry() usage in dom/. r=bz.
--HG--
extra : rebase_source : 8550f181356550b6c0e540c12f61f2d1148d2050
2015-09-24 19:05:16 -07:00
JW Wang dfaf3aeb42 Bug 1209888 - Remove usage of decoder monitor from OggReader. r=jya. 2015-09-30 06:55:20 +08:00
Chris Pearce a7e012482a Bug 1207019 - Make EME mochitests specify mime types for video in MediaKeys request videoTypes, ditto for audio. r=gerald 2015-10-05 15:03:58 +13:00
Chris Pearce d4ed7efef9 Bug 1207019 - Remove WMF availability check in MediaKeySystemAccess requests. r=edwin 2015-10-05 15:03:48 +13:00
Wes Kocher f0d829220d Backed out changeset 821791826960 (bug 1197893) for Nexus build failures CLOSED TREE 2015-10-02 16:17:05 -07:00
Andrew McCreight 35cd15b8de Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv 2015-10-02 15:09:02 -07:00
Andrew McCreight 7a2c6267d4 Backed out changeset 6fa9cdf4002b for breaking the build. 2015-10-02 10:49:28 -07:00
Andrew McCreight 404740a102 Bug 1197893 - Check the number of arguments for ThrowTypeError() and ThrowRangeError() at compile time. r=peterv 2015-10-02 10:42:08 -07:00
Jean-Yves Avenard 04cdb572f3 Revert "Bug 1209388: [mp3] Remove AppleMP3Reader. r=kentuckyfriedtakahe" r=me
This reverts commit ecbe6589d36e

May be better of waiting a little bit in case we find that the new MP3Demuxer isn't up to scratch
2015-10-02 19:24:54 +10:00
Jean-Yves Avenard b2c18c37f4 Bug 1209388: [mp3] Remove AppleMP3Reader. r=kentuckyfriedtakahe
Following bug 1209410, it was no longer used.
2015-10-02 18:44:34 +10:00
Jean-Yves Avenard 9d5342e6bb Bug 1209410: [mp3] P4. Change duration of mp3 files used by mochitests. r=cpearce
The owl.mp3 file and derivative is made of 128 0.026122s long samples , which gives us an actual duration of 3.343616s. However, when decoding those files, the first two samples are dropped by the CoreAudio and WMF decoder giving us an actual play time of 3.29s.
We have no way to determine the exact duration at the demuxing stage. External readers such as DirectShow or GStreamer would only report the decoded frames time, while the MediaFormatReader report the demuxed time.

There is no right answer here. So setting a duration that will allow all readers to pass the tests.
2015-10-02 18:44:33 +10:00
Jean-Yves Avenard fc715601b9 Bug 1209410: [mp3] P3. Implement canPlayType for new MP3Decoder. r=kentuckyfriedtakahe 2015-10-02 18:44:33 +10:00
Jean-Yves Avenard a9855a3bd6 Bug 1209410: [webm] P2. Never use gstreamer to decode webm. r=kentuckyfriedtakahe 2015-10-02 18:44:32 +10:00
Jean-Yves Avenard f21d3b8aa3 Bug 1209410: [mp3] P1. Use new MP3Demuxer when possible. r=cpearce 2015-10-02 18:44:32 +10:00
Jan-Ivar Bruaroey 02c80b8fd0 Bug 1207784 - skip permission hooks in createOffer when called from privileged code (add-ons). r=mt
--HG--
extra : transplant_source : %D0%169%0B%99%17%B1%8F%D2%B1%A8%B0%E7%B8%ED%5E%60vxE
2015-10-01 15:49:01 -04:00
Karl Tomlinson 31f93552de bug 1210266 unfriend AudioBufferSourceNode from AudioNode r=padenot
--HG--
extra : rebase_source : 8476dc3499835906378c910f879be7a2652fea81
2015-10-01 00:19:10 +13:00
Karl Tomlinson 8e20d26e10 bug 1210266 remove unused AudioNode::Callback() r=padenot
--HG--
extra : rebase_source : dd0e1f311982fb90852f8cb48f3e4517bf5fa8ce
2015-10-01 00:17:32 +13:00
Karl Tomlinson 2733a284c9 bug 1210266 remove unused AudioParam::Node() r=padenot
--HG--
extra : rebase_source : 095ffee90f8055792842f371712117ea1fcf92b9
2015-09-18 12:16:38 +12:00
Karl Tomlinson 4799b667a3 bug 1210266 use parameter index instead of node callback for sending timeline events r=padenot
--HG--
extra : rebase_source : 27a8ac26a83788c057a225fca47c49af1a021401
2015-10-01 15:48:20 +13:00
Karl Tomlinson 8d75533f8d bug 1210280 use nullptr for silent channels in UpMixDownMixChunk r=padenot
so that AccumulateInputChunk can optimize for silent channels.

--HG--
extra : rebase_source : 43228733d8586f16bab00737ffb381fbd8127fd3
2015-09-05 11:01:54 +12:00
Jean-Yves Avenard 3c833c2162 Bug 1194080: [mp3] Implement MP3TrackDemuxer::GetBuffered(). r=esawin
This is done by roughly estimated the duration of the MediaResource buffered range from the average bitrate.
2015-10-02 12:41:06 +10:00
Jean-Yves Avenard 759f764945 Bug 1207924: [mp3] P1. Fix MP3 decoding with early version of LibAV. r=esawin
LibAV 0.8 incorrectly set the pts as dts ; so we must set the dts to ensure not all frames have a time of 0.
2015-10-02 12:41:05 +10:00
Jean-Yves Avenard 877ef122ef Bug 1209850: Only attempt to initialize decoders as they are required. r=alfredo 2015-10-01 23:05:16 +10:00
Carsten "Tomcat" Book 3a44702ffb Backed out 1 changesets (bug 1209850) for causing m2 test failures
Backed out changeset 9c01e0e3da74 (bug 1209850)
2015-10-01 14:05:49 +02:00
Jean-Yves Avenard 822bab3238 Bug 1159171: [MSE] P4. Changing waiting time value. r=edwin.
When ffmpeg is enabled, it will use the FFmpeg's VPX decoder. FFmpeg appears to always buffer 15 frames before returning one (this is the same with h264) causing the waiting event to be fired much earlier than when using libvpx
2015-10-01 19:40:21 +10:00
JW Wang e7914a68b6 Bug 1159171 - Enable ffmpeg on Linux platforms for media mochitests. r=jya 2015-10-01 19:40:20 +10:00
Jean-Yves Avenard bf482d2ca8 Bug 1207442: Disable ffvpx with libav0.8 and earlier. r=edwin 2015-10-01 19:40:20 +10:00
JW Wang 2f38e6f128 Bug 1209887. Part 3 - remove unused code. r=jya. 2015-10-01 17:21:57 +08:00
JW Wang 1e5ddfde5c Bug 1209887. Part 2 - remove usage of decoder monitor. r=jya. 2015-10-01 17:21:56 +08:00
JW Wang 88f2b7fbdf Bug 1209887. Part 1 - add assertions. r=jya. 2015-09-30 06:55:20 +08:00
Jean-Yves Avenard 3785990cb1 Bug 1209850: Only attempt to initialize decoders as they are required. r=alfredo 2015-10-01 19:07:39 +10:00
Jean-Yves Avenard 6807956b60 Bug 1207312: P2. Amend gtest. r=bholley 2015-10-01 19:07:37 +10:00
Jean-Yves Avenard e86d2aa8a5 Bug 1209806: P2. Initialize PDM before attempting to use it. r=gerald 2015-10-01 19:05:48 +10:00
Jean-Yves Avenard e00a89455b Bug 1209806: Remove dependency on libavformat. r=edwin 2015-10-01 19:05:47 +10:00
Paul Adenot 5467473807 Bug 1209904 - Optimize OscillatorNode when its frequency is not changin and it's using ::ComputeCustom. r=karlt 2015-10-01 10:52:28 +02:00
Nigel Babu 906147b670 Backed out changeset 04430cc26dba (bug 1180940) for Mulet Gij(4) bustage again.
--HG--
extra : amend_source : 3a0164d64d841349526acd11223cd88501a996f5
2015-10-01 13:53:14 +05:30
sajitk 43d9468d87 Bug 1180940 - Changed return type of AudioDestinationNode::CreateAudioChannelAgent method to return errors, if any methods that it calls fail. Added code to handle the return value in AudioContext::Init(), and its callers. r=baku 2015-09-30 17:51:00 +02:00
JW Wang f56fdd4173 Bug 1209886 - Clean up InstantiateDecoder() in DecoderTraits.cpp. r=kinetik. 2015-09-30 06:55:20 +08:00
Sotaro Ikeda 739eddd54e Bug 1186813 - Replace nsBaseHashtable::EnumerateRead() calls in dom/media/ with iterators r=cpearce 2015-09-30 06:40:54 -07:00
JW Wang fd23a5e794 Bug 1208933 - Remove AbstractMediaDecoder::NotifyWaitingForResourcesStatusChanged(). r=jya. 2015-09-27 21:02:18 +08:00
JW Wang 0bb44154c7 Bug 1208932 - Remove ReadMetadataFailureReason::WAITING_FOR_RESOURCES. r=jya. 2015-09-27 20:48:09 +08:00
Andreas Pehrson 9914ff85f8 Bug 1103188 - Keep track of stopped tracks in gUM stream listener. r=jib
This is needed to avoid something like:
* [old stream] stop track 1 -> deallocate MediaDevice for track 1
* [new stream] gUM() -> allocate MediaDevice for track 1
* [old stream] stop stream -> deallocate MediaDevice for track 1
* [new stream] gUM() -> start MediaDevice for track 1 (oops, MediaDevice was no more!)

--HG--
extra : commitid : FmkFYbCfel7
extra : rebase_source : e17ad400705198c48e3d561241dd50d0844c472e
2015-09-30 14:08:33 +08:00
Andreas Pehrson 6f60cbc89d Bug 1103188 - Keep track of capture stop only in gUM stream listener. r=jib
--HG--
extra : commitid : AqIOlsR7w1y
extra : rebase_source : 6f5670be3bf711a38eb9f914dc69c5b987dd9b9e
2015-09-30 14:08:26 +08:00
Andreas Pehrson aaef4911a9 Bug 1103188 - Always call MediaManager::NotifyFinished/NotifyRemoved on main thread. r=jib
--HG--
extra : commitid : 8kb5G98FAY9
extra : rebase_source : 97086507d1c546f9423f4d2f790924c21ccfa28a
2015-09-30 14:08:22 +08:00
Andreas Pehrson f5d99891ad Bug 1103188 - Always check tracks on getUserMedia(). r=jib
--HG--
extra : commitid : 3I8mAeBB3oL
extra : rebase_source : 9820d09e7152de7c59a0aa81dde715dfa21fed18
2015-09-30 09:32:06 +08:00
Andreas Pehrson f8854279f0 Bug 1103188 - MediaStream::AddTrack/RemoveTrack tests. r=jib,roc
--HG--
extra : commitid : 3I8mAeBB3oL
extra : rebase_source : 5f0de2f5babfd762ec81ecaf2cf060f93d616326
2015-09-30 09:32:06 +08:00
Andreas Pehrson eb480b5acd Bug 1103188 - Break out MediaTrackListListener to an interface. r=roc
Other modules than MediaTrackLists may want to receive updates on a
DOMMediaStream's track set. This moves the MediaTrackListListener out of
the MediaTrackList class into DOMMediaStream as a general interface.

The logic for adding MediaTracks to the MediaTrackList when
MediaStreamTracks are added or removed from a DOMMediaStream is moved to
HTMLMediaElement as this fits the model better - HTMLMediaElement is the
owner of the MediaTrackLists.

--HG--
extra : commitid : 3I8mAeBB3oL
extra : rebase_source : 66b8ffcfb5343811c181e4169f295b08494f2ee0
2015-09-30 09:32:06 +08:00
Andreas Pehrson 0239788481 Bug 1103188 - Deprecate DOMMediaStream::Stop(). r=jib
--HG--
extra : commitid : 3I8mAeBB3oL
extra : rebase_source : cc7351a34694b7b0e822bcd0b7025ded0ab54b9d
2015-09-30 09:32:06 +08:00
Andreas Pehrson ce2776ea0d Bug 1103188 - Remove identical override nsDOMUserMediaStream::Stop(). r=jib
--HG--
extra : commitid : 3I8mAeBB3oL
extra : rebase_source : 2e37a21b1789bf4ab893c6fb8b2dd2c75f613855
2015-09-30 09:32:05 +08:00
Andreas Pehrson aa989a17b6 Bug 1103188 - MediaStream::AddTrack/RemoveTrack implementation. r=roc
--HG--
extra : commitid : 3I8mAeBB3oL
extra : rebase_source : 7c8a9d50e5dbb672c773faa3675fe674aed9fb67
2015-09-30 09:32:05 +08:00
Andreas Pehrson bf0d10f4e7 Bug 1103188 - MediaStream WebIDL update with addTrack/removeTrack. r=smaug,jib
--HG--
extra : commitid : 3I8mAeBB3oL
extra : rebase_source : 030f83f3a79a7f4cb938cb509983f87a5a557aab
2015-09-30 09:32:05 +08:00
Andreas Pehrson f7821ba184 Bug 1170958 - Destroy track-locked MediaInputPorts when the track ends. r=roc
This is needed to make tests pass until we have bug 1208316 implemented.

--HG--
extra : commitid : GPSNwBVyD4j
extra : rebase_source : b7cb9cb1678a582fbf85b729b8f43508889f5c78
2015-09-30 09:31:54 +08:00
Andreas Pehrson 867415c0b5 Bug 1170958 - Remove ProcessedMediaStream::ForwardTrackEnabled. r=roc,jesup
TrackUnionStream guarantees that TrackIDs are maintained if no tracks
have claimed them before.

In the gUM case, we have a SourceMediaStream which we wholly own (the
DOMMediaStream's Input stream), piped into a TrackUnionStream which
no-one external is able to add tracks to (the DOMMediaStream's Owned
stream) - addTrack()ed tracks are added to the DOMMediaStream's Playback
stream.

The MediaStreamTracks being enabled/disable refer to a TrackID in the
DOMMediaStream's Owned stream.

Alas, we don't need to forward a track's enabled state, we can just do
it on the source.

--HG--
extra : commitid : GPSNwBVyD4j
extra : rebase_source : 4388211be87ebe8a3839ea031b5c504d642806ab
2015-09-30 09:31:54 +08:00
Andreas Pehrson 0a75ffee8d Bug 1170958 - Add DOMMediaStream::OwnedStreamListener. r=roc
A DOMMediaStream's owned stream is piped from the input stream which is
under the control of the DOMMediaStream's owner/producer (like
captureStream or gUM). When producers like these create new tracks after
the stream has already been created (the initial set should be available
to JS synchronously), it is nice if the DOMMediaStream picks them up
automatically and create the corresponding MediaStreamTracks.

The OwnedStreamListener added here does just that; creates an owned
MediaStreamTrack when a track appeared in the stream that didn't already
have a MediaStreamTrack.

It also moves the logic for ended tracks from the PlaybackStreamListener
to the OwnedStreamListener as we previously would see a track end in the
playbak stream after removeTrack() and that would be interpreted as the
track ending at the source.

--HG--
extra : commitid : GPSNwBVyD4j
extra : rebase_source : ee7d81282ee3fe0e05b55358dee8fc97a22473fe
2015-09-30 09:31:54 +08:00
Andreas Pehrson 5b79fead9f Bug 1170958 - Improve logging of MediaStreams and playback. r=roc
--HG--
extra : commitid : GPSNwBVyD4j
extra : rebase_source : 7463915dc8f14e6f9dde2e934e55b9c68d4148d6
2015-09-30 09:31:54 +08:00
Andreas Pehrson 9ecf8f59c7 Bug 1170958 - Feed a SourceMediaStream-backed dom stream instead of a raw SourceMediaStream in MediaManager. r=jesup
Simplifies the structure of MediaManager somewhat. Possible since
MediaManager owns both the SourceMediaStream and the DOMMediaStream.

--HG--
extra : commitid : GPSNwBVyD4j
extra : rebase_source : 494b8b673084ea050420dfaf8d16e44a3bc49672
2015-09-30 09:31:54 +08:00
Andreas Pehrson 937747498a Bug 1170958 - Refactor DOMMediaStream to contain a 3-stage track chain. r=roc
This lets us separate tracks by ownership like so:
* Input    - Owned by the producer of the DOMMediaStream (gUM etc.)
* Owned    - Contains Input tracks (per above) or tracks cloned tracks
             if this DOMMediaStream is a clone.
* Playback - Contains Owned tracks plus tracks addTrack()ed to this
             DOMMediaStream minus tracks removeTrack()ed from this
             DOMMediaStream.

--HG--
extra : commitid : GPSNwBVyD4j
extra : rebase_source : fba22e96c6c65a74e012509f3da67a4d7df7a244
2015-09-30 09:31:54 +08:00
Andreas Pehrson 53a6c38d0d Bug 1170958 - Allow MediaInputPort to lock to a specific input track. r=roc
Locking to specific tracks lets us dynamically remove and add single
tracks to a ProcessedMediaStream.

--HG--
extra : commitid : GPSNwBVyD4j
extra : rebase_source : 0b1b79077f95bbefc8c71de551c5e3483a7d6ac0
2015-09-30 09:31:53 +08:00
Andreas Pehrson 2802ee3e88 Bug 1170958 - Add input stream and track as args to NotifyQueuedTrackChanges. r=roc
This allows for tracking the input track of an added track (for
ProcessedMediaStream tracks; SourceMediaStream tracks don't have input
tracks) directly in the NotifyQueuedTrackChanges handler, which will be
necessary for locking MediaInputPorts to specific tracks.

--HG--
extra : commitid : GPSNwBVyD4j
extra : rebase_source : 4bed5dffe66b71b7ad23f4c02531d84af25cd316
2015-09-30 09:31:53 +08:00
Martin Thomson afdaddf1d7 Bug 1155923 - Removing moz prefix from RTC interfaces, r=jesup,smaug
--HG--
extra : transplant_source : %0Adu%1E%A6j%9E%C2B%25%ECruo%F7%7Fc%EA%99%18
2015-09-28 11:25:04 -07:00
Jean-Yves Avenard dacd5751f3 Bug 1208953: [mp3] Don't parse data we've already parsed. r=cpearce
NotifyDataArrived may be called again due to reads performed in NotifyDataArrived ; causing stall and serious slowdowns.
2015-09-30 16:07:56 +10:00