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

968 Коммитов

Автор SHA1 Сообщение Дата
Jean-Yves Avenard ab282a14d4 Bug 1357040: P2. Don't rely on NotifyDataArrived to resolve MSE init promise. r=gerald
MozReview-Commit-ID: KUxVqfU9umw

--HG--
extra : rebase_source : c6f11109490fbb6fbfbda1b0fe2be1c8088ca4a2
2017-04-27 19:53:53 +02:00
JW Wang 5d7a4ae4c9 Bug 1362258 - Reduce ref-counting overhead of TrackBuffersManager::AppendData(). r=jya
http://searchfox.org/mozilla-central/rev/6580dd9a4eb0224773897388dba2ddf5ed7f4216/dom/media/mediasource/TrackBuffersManager.cpp#127

We can pass already_AddRefed<MediaByteBuffer> to InvokeAsync to avoid unnecessary AddRef/Release pairs.

MozReview-Commit-ID: ErXompyX8ua

--HG--
extra : rebase_source : f086e4ef5fda9f0dca8bfb0e2b4c74967e3f8323
2017-05-05 10:27:51 +08:00
JW Wang 47f3443d87 Bug 1361263 - allow InvokeAsync() to accept a member function which is pass-by-reference. r=gerald
StoreCopyPassByRRef<> ensures a copy is stored in the runnable.
We don't have to worry about the concern of bug 1300476.

MozReview-Commit-ID: DHqlzlVLBFV

--HG--
extra : rebase_source : 77f2175611aa6fad88207a771de75fd28fd46f21
extra : source : 429c62928fd43185da45c905a150cfbe84cb3cf7
2017-04-30 15:37:19 +08:00
JW Wang aab9f27e0f Bug 1359309. P1 - give mozilla::TaskQueue a name which will be useful in debugging Dispatch() failures. r=jya
MozReview-Commit-ID: 5FAVNo32fl7

--HG--
extra : rebase_source : 761fca752429d95e97be699976283baa35c64abb
extra : intermediate-source : 83282a7a5adbe7046212da85f9d16e39faa4bd5c
extra : source : 924af3ea0aa86888fd2745020be7900e6eb614f0
2017-04-25 14:57:55 +08:00
JW Wang f6a893a644 Bug 1358969 - let MediaDecoder::CurrentPosition() return a TimeUnit. r=kikuo
We want to replace the use of int64_t for microseconds by TimeUnit
whenever possible since int64_t is ambiguous which could be microseconds
or milliseconds.

MozReview-Commit-ID: K3Bz3uEXLDK

--HG--
extra : rebase_source : ade3cbd61c764b73a22c360572a525127dbadbc5
extra : intermediate-source : 013227a4aa645fc34a82c44130db6c847d74960b
extra : source : 1ab7ce426b557e4ce9979e023f9e84b4690eeaaa
2017-04-17 17:04:39 +08:00
Bob Clary e0fcc0bc36 Bug 1358876 - Autophone - disable perma orange tests on Android 5.1, r=jmaher. 2017-04-24 08:02:59 -07:00
Sebastian Hengst 38b7615ab3 Backed out changeset df17c800d8f2 (bug 1358876) for crash test bustage. r=backout
"AndroidVersion is not defined"
2017-04-24 17:35:37 +02:00
Bob Clary 33ee94b632 Bug 1358876 - Autophone - disable perma orange tests on Android 5.1, r=jmaher. 2017-04-24 08:02:59 -07:00
JW Wang 02369ea1a2 Bug 1357987 - make MediaDecoder::DEFAULT_NEXT_FRAME_AVAILABLE_BUFFERED a TimeUnit to avoid ambiguous int64_t for microseconds. r=kaku
MozReview-Commit-ID: 9JC4zPEc6or

--HG--
extra : rebase_source : 8001ba3924f4bdb2ffb4143f1a22e2c4bf697ce3
extra : intermediate-source : 02bc62f83a7af3059b819c2bbb9fd887e2593043
extra : source : 5af753b1192f36ebf84279ff011617587ede613b
2017-04-17 16:58:44 +08:00
Carsten "Tomcat" Book 975e251aff merge mozilla-inbound to mozilla-central a=merge 2017-04-21 10:57:02 +02:00
JW Wang f2ea37e57b Bug 1357986 - Use helper functions of TimeUnit to make code more readable. r=kaku
1. using media::TimeUnit to save some typing.
2. replace TimeUnit() with TimeUnit::Zero().
3. replace TimeUnit::FromXXX(0) with TimeUnit::Zero().
4. replace TimeUnit::FromMicroseconds(std::numeric_limits<int64_t>::max()) with TimeUnit::FromInfinity().
5. replace some uses of int64_t with TimeUnit.
6. replace t > TimeUnit() with t.IsPositive().

MozReview-Commit-ID: 6hC94PXx86i

--HG--
extra : rebase_source : 1ea3b409e6ec12915f3e1a00359d6ff4152c8917
extra : intermediate-source : e31a12ad0e7a4840119036f261ed17eaaff85734
extra : source : ae07ee48000c4a52da0e4fd502b4d690ec51ce1f
2017-04-17 16:35:04 +08:00
JW Wang 302d82c85a Bug 1356530 - Change the type of MediaData::mTime to TimeUnit since int64_t is ambiguous. r=kaku
MozReview-Commit-ID: 4bVeqIuWO2O

--HG--
extra : rebase_source : d504ac15a6dc59ad42f3ab80faf23f629d74315f
extra : intermediate-source : 6e52995b6c8146451d98dffc62f6907755dc856e
extra : source : 82d2649cdafb5a6389f6858c23578811933580c9
2017-04-14 17:13:36 +08:00
JW Wang 235f1f55ed Bug 1356506 - change the type of MediaData::mTimecode to TimeUnit since int64_t is ambiguous. r=gerald
MozReview-Commit-ID: 7dO5OOUuORz

--HG--
extra : rebase_source : 1c1c020700d9180ef9f85d7e2e679f498ab71fce
extra : intermediate-source : d173c820bef7a113e28e9732c42e8c1af36160ab
extra : source : 04c08a780526ca3a5ac4d1a6f9b7ae30d9957e92
2017-04-14 14:52:14 +08:00
Wes Kocher 5cba60441b Merge m-c to inbound, a=merge
MozReview-Commit-ID: HfJqvXF2Ux7
2017-04-20 15:55:31 -07:00
Bob Clary 5382b3e45a Bug 1352333 - sync autophone webrtc test manifests with normal webrtc manifests, r=jmaher,dminor. 2017-04-20 14:13:34 -07:00
JW Wang 3c0e7bddc7 Bug 1356502. P1 - let MediaDatra::GetEndTime() return a TimeUnit instead of ambiguous int64_t. r=gerald
MozReview-Commit-ID: DBQELBs32Ad

--HG--
extra : rebase_source : a7c9f7affbdfa12aaf94a6d0505cf4f54f4408cc
extra : intermediate-source : e1fcccdb12bb86c23520b5c2e0d76aef355597a5
extra : source : ddb8a8382c74e18dd52cdfbc7e8eee54cf46f05d
2017-04-14 14:14:08 +08:00
JW Wang 464497b945 Bug 1355756. P1 - change the type of MediaData::mDuration to TimeUnit. r=gerald
MozReview-Commit-ID: 3d4bUYtSuMI

--HG--
extra : rebase_source : 94c821b6d381421035e6a12cbe038436055c5822
extra : intermediate-source : 9a06beffc736486f47b9cf05e7f482e726d53068
extra : source : fdbdcd5c1474f04dc1dbde66fcf3a9ecec953053
2017-04-12 17:27:34 +08:00
JW Wang f45fa7374e Bug 1355740 - Change the type of TrackInfo::mDuration to TimeUnit. r=jya
MozReview-Commit-ID: P7aqw4d5Vk

--HG--
extra : rebase_source : f22743fec9c8b70cbb092e3b26e252e7a4cb0b31
extra : source : 2413cd58f073b734a2cb85cec3658942bfd46e08
2017-04-12 16:41:36 +08:00
Gerald Squelart 4101482ad6 Bug 1343437 - 'media.playback.warnings-as-errors' pref - r=jya
If 'media.playback.warnings-as-errors' is true, demuxing and decoding warnings
(i.e., non-fatal errors) will be treated as errors, causing playback to fail.

Currently set to false by default.

This could be later changed to catch and diagnose more issues.

MozReview-Commit-ID: BTaZ6TbIbNG

--HG--
extra : rebase_source : bacc24a46f588dd344e6d46178ae2d2c58882fcb
2017-03-03 16:10:48 +11:00
Gerald Squelart 7dca1275ff Bug 1343437 - TBM::OnDemuxer{Init,Reset}Done forward non-NS_OK MediaResult to HTMLMediaElement::DecodeWarning - r=jya
Similarly to the MediaFormatReader, TrackBuffersManager can forward warnings
from the demuxer initialization to the associated HTMLMediaElement.

Note that errors (sent to OnDemuxerInitFailed) are currently *not* forwarded
to the HTMLMediaElement by design. In the future, we may want to add this
feature so that mediasource errors can also be reported to webcompat.

MozReview-Commit-ID: GjluZbpmC9q

--HG--
extra : rebase_source : 57c02f86c56f054f209094d9697209300acc1288
2017-03-14 01:08:39 +11:00
Jean-Yves Avenard 99c84ca5b6 Bug 1354090: P4. Only assume we have an init segment with moov box. r=gerald
By ISOBMFF spec, an init segment is made of an ftyp and a moov box. However the ftyp box serve little purpose as such and only the moov atom contains essential information.

Some streams incorrectly add ftyp box all accross the content, despite the ISOBMFF spec stating (4.3.1):
Box Type: `ftyp’
Container: File
Mandatory: Yes
Quantity: Exactly one (but see below)

Additionally, with this change the ftyp box may not be present in content following earlier spec. So we will now be able to play them.

MozReview-Commit-ID: KijlV5pPLby

--HG--
extra : rebase_source : c5d5ec643879b28b3fdf1b97364d856467ba5948
2017-04-07 15:37:18 +02:00
Jean-Yves Avenard b0c4fd9119 Bug 1354090: P3. Properly offset the media and init byte ranges. r=gerald
The init and media segment byte ranges were not offset by the amount of bytes currently parsed. Whenever a new init segment signature was seen we would recreate a container parser.
This would lead to invalid offsets later.

MozReview-Commit-ID: 8U7kTa7SK8O

--HG--
extra : rebase_source : 6b6e665e01db2685a423558b2d09ce36b9052974
2017-04-07 12:04:24 +02:00
Jean-Yves Avenard fa2ce72185 Bug 1354090: P1. Fix coding style. r=gerald
MozReview-Commit-ID: ByBHvxM3kfc

--HG--
extra : rebase_source : e96be6001fb38e1ff45ca2a5c27975c76b85f42b
2017-04-07 10:55:15 +02:00
Jean-Yves Avenard efb450b903 Bug 1353088: Ensure we don't attempt to process garbage data. r=gerald
MozReview-Commit-ID: AryC34eLjOg
2017-04-09 09:00:40 +02:00
JW Wang fb7b33fc4f Bug 1351160 - accept only integral types for operator*(). r=gerald
See bug 853398 for the reason to block double multiplier which is slower and
less precise for large values. Also we remove the friend functions of
operator* because it is easy to cause overloading ambiguity when making
them templates.

MozReview-Commit-ID: FhIWSHDd41b

--HG--
extra : rebase_source : e9fec65dfb0b077dd7f962eb20af719c0dc76df8
2017-03-28 14:10:31 +08:00
Jean-Yves Avenard 45f18b6e83 Bug 1350932: P1. Add mochitest. r=gerald
Add an AVC3 (content provided by BBC) mochitest. We've regressed BBC playback rather regularly. Better make sure this never happens again.

MozReview-Commit-ID: 5ssaLcqiqsv

--HG--
extra : rebase_source : 27938e746822f89167f287d57c81f276198b2c5e
2017-03-28 23:39:09 +02:00
Jean-Yves Avenard 50a8a24876 Bug 1347101: P1. Re-enable mochitest. r=gerald
MozReview-Commit-ID: 4Zh3WOZiyrI

--HG--
extra : rebase_source : 3c889c37efbbe6658800533c2df500792478bcf9
2017-03-17 01:15:34 +01:00
Jean-Yves Avenard 65f007b6ab Bug 1342913: P1. Add mochitest. r=gerald
MozReview-Commit-ID: IaU4tIm0Wze

--HG--
extra : rebase_source : 99c48155ec1c846496767ed2f823c60811e968f6
2017-03-08 00:28:13 +11:00
Jean-Yves Avenard ec5692956a Bug 1346463: Disable test on windows 8 for now. r=gerald
Issue tracked in bug 1347101

MozReview-Commit-ID: 8YaMr3p8aMk

--HG--
extra : rebase_source : 0ee14327fd0d2bcb1589e35e6cf4455d5d8e7793
2017-03-14 12:39:13 +01:00
JW Wang b28f0b3829 Bug 1343459. Part 2 - remove the 'updateend' handler which might fire before we register it. r=jya
Note the race is uncovered by P1 which kinda change the order of events.

MozReview-Commit-ID: 3INYvJVUhSG

--HG--
extra : rebase_source : e378c2a437a5a729008d39570be2a9087a7eb5f7
extra : intermediate-source : 02e2ecfea068dd9f487791287064e684a15dd599
extra : source : f2f40c70a2304e3e499422f3a7c46b59b54ad1ae
2017-03-01 17:46:42 +08:00
JW Wang 4f89ce372f Bug 1343459. Part 1 - Label runnables under dom/media/mediasource. r=jya
MozReview-Commit-ID: 5lJUZXWFH8u

--HG--
extra : rebase_source : 0a4215862264dcf3103d52141650dd9516290a58
extra : intermediate-source : 934ff70dc058eb7e18bf70f69aeac38b0595bbe9
extra : source : 6804fe809dcc2a365b8922cf72da129e764830c2
2017-03-01 15:08:50 +08:00
Jean-Yves Avenard 1a7b7995d5 Bug 1345756: [MSE] P4. Pre-roll AAC by 2112 audio frames. r=gerald
MozReview-Commit-ID: K09DyZMzbY7

--HG--
extra : rebase_source : 489974fa5cc254eba8b3bc83bb45bad8323a4313
2017-03-09 10:57:02 +01:00
Jean-Yves Avenard 2af615365e Bug 1345756: P3. Fix coding style. r=gerald
MozReview-Commit-ID: HxdcqxWbJzC

--HG--
extra : rebase_source : 614cd9bda49327db234c1ad7fc8e35ba96ba1b1a
2017-03-09 10:40:37 +01:00
Jean-Yves Avenard ea9131893f Bug 1345756: P1. Add mochitest. r=gerald
testing seeking to last audio frame buffered.

MozReview-Commit-ID: A4Cr4OHs8qP

--HG--
extra : rebase_source : 77b91e3777feede619efa7008489c78680c1627e
2017-03-08 23:09:52 +01:00
Wes Kocher a237e462ec Backed out 2 changesets (bug 1342913) for failures in test_ChangeWhileWaitingOnMissingData_mp4.html a=backout
Backed out changeset f770cf70a30e (bug 1342913)
Backed out changeset 7fc8016ace00 (bug 1342913)

MozReview-Commit-ID: GfZmkx9mvoZ
2017-03-09 11:07:18 -08:00
Wes Kocher eb19bf64a5 Backed out 4 changesets (bug 1345756) for failures in test_SeekToLastFrame_mp4.html a=backout
Backed out changeset ee6db88f8695 (bug 1345756)
Backed out changeset afd77992867f (bug 1345756)
Backed out changeset 83dc982bfc63 (bug 1345756)
Backed out changeset bd4999a68867 (bug 1345756)

MozReview-Commit-ID: 1J7H3EfW3fZ
2017-03-09 11:06:41 -08:00
Jean-Yves Avenard f784a126e9 Bug 1345799: [MSE] Add flac in mp4 mochitest. r=gerald
MozReview-Commit-ID: CGW7kZa7u5q

--HG--
extra : rebase_source : 98bde84747f63e8c15abd9f72eadf728947aca38
2017-03-09 13:02:57 +01:00
Jean-Yves Avenard f17d058e7f Bug 1345756: [MSE] P4. Pre-roll AAC by 2112 audio frames. r=gerald
MozReview-Commit-ID: K09DyZMzbY7

--HG--
extra : rebase_source : 68f574f720a4ccc24674a36c2b7aa33f1bca0f9b
2017-03-09 10:57:02 +01:00
Jean-Yves Avenard 00f3f4b13c Bug 1345756: P3. Fix coding style. r=gerald
MozReview-Commit-ID: HxdcqxWbJzC

--HG--
extra : rebase_source : 73d2da1692d4f692af94a9cb90198e2ed8249430
2017-03-09 10:40:37 +01:00
Jean-Yves Avenard 5d03df341f Bug 1345756: P1. Add mochitest. r=gerald
testing seeking to last audio frame buffered.

MozReview-Commit-ID: A4Cr4OHs8qP

--HG--
extra : rebase_source : 6b29a319181ca3284c264db9a1835e90875ccfa6
2017-03-08 23:09:52 +01:00
Jean-Yves Avenard 62f545f559 Bug 1342913: P1. Add mochitest. r=gerald
MozReview-Commit-ID: IaU4tIm0Wze

--HG--
extra : rebase_source : d4ed69e7addd9eaece9031195288c0f411ddea0a
2017-03-08 00:28:13 +11:00
karo 85319b4cd0 Bug 1344073 - Adding consistent formatting to HTMLMediaElement::MozRequestDebugInfo debugInfo dump string. r=cpearce
MozReview-Commit-ID: GfRrLQcebbt

--HG--
extra : rebase_source : 846b74c63528f58e414636654b0167d6c8c1480b
2017-03-01 16:03:01 +13:00
JW Wang 57506c3907 Bug 1343787. Part 2 - move the Register() calls to Load(). r=gerald
MozReview-Commit-ID: 2jjZujE1qH8

--HG--
extra : rebase_source : f787346a5631acceb27d88e352d67f66e8053bf9
extra : source : 2d3a5e31f306ab2109f38e070a9881ef2affba60
2017-03-02 18:03:20 +08:00
JW Wang d6ee299185 Bug 1343732 - use SystemGroup::Dispatch() in ~AutoTaskQueue(). r=jya
MozReview-Commit-ID: IWFs5e8U7VQ

--HG--
extra : rebase_source : e71ae9b777ad8fd421d5a66cefc0086b28af8967
extra : source : 221546a238788a744703380c6023efdf741c48cb
2017-03-01 13:02:29 +08:00
Masatoshi Kimura 7be7b11a1c Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg

--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
2017-02-23 06:10:07 +09:00
Jeff Walden d73ce21741 Bug 1287006 - Adjust media/ code to not pass Maybe (or any class containing a Maybe member) by value, only by reference or pointer. r=jw_wang, r=rjesup
--HG--
extra : rebase_source : 176a2afde5772bbdf43f0f6dc8082201acadcf4f
2017-02-13 09:07:40 -08:00
Jean-Yves Avenard 3afb565f72 Bug 1341342: [MSE] P2. Always enable MSE with webm/vp8. r=gerald
MozReview-Commit-ID: 4x1zyDZXqUt
2017-02-22 13:03:00 +01:00
Jean-Yves Avenard edff5e0800 Bug 1341342: P1. Add mochitest. r=gerald
MozReview-Commit-ID: 9BUnSmEdIRr
2017-02-22 13:03:00 +01:00
Tom Tromey d2667a2b27 Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
MozReview-Commit-ID: 2E8FoiNxU8L

--HG--
extra : rebase_source : 810ac727bef0751f24edea18c52e0ec170bf367d
2016-12-14 09:32:21 -07:00
Tom Tromey 5f8f360823 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs

--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07:00