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

953 Коммитов

Автор SHA1 Сообщение Дата
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
Jean-Yves Avenard 36471a6bc1 Bug 1336431: P4. Rename SharedTrackInfo. r=gerald
into TrackInfoSharedPtr to better indicate what this class is about.
Adding cast operator to allow transparent conversion from TrackInfoSharedPtr to const TrackInfo*

MozReview-Commit-ID: 6RwXl5CG0fG

--HG--
extra : rebase_source : b5a7a0f06793c609e2eab60aacc4f76d96d6ec32
2017-02-13 19:18:05 +01:00
JW Wang 553e846993 Bug 1331070 - delay seek request until decoding first frames for non-MSE media. r=kaku
See see bug 1321198 comment 17. This is a workaround to alleviate the issue
which seems to happen on win8 x64 opt only.

MozReview-Commit-ID: Lr4viEjuFkC

--HG--
extra : rebase_source : 99895cf6f6f13d5f4d698f76db7acda15d8cee77
2017-02-08 18:15:28 +08:00
Jean-Yves Avenard 71e0f46c33 Bug 1325707: P4. Fix coding style of MediaDataDemuxers. r=gerald
MozReview-Commit-ID: AV2lXwVZqLV

--HG--
extra : rebase_source : f66559f4d104516c8dfd2c9a146dfba8672dce33
2017-02-07 09:23:34 +01:00
Jean-Yves Avenard b7844bd5c3 Bug 1319987: P9. More coding style fixes. r=gerald
MozReview-Commit-ID: DhFRqkWQZny

--HG--
extra : rebase_source : 03ed44efc83fe9cab7fc975229ac4e5746aff96b
2017-01-27 13:20:37 +01:00
Florian Quèze bdc1ffa608 Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws. 2017-01-30 08:10:22 +01:00
Florian Quèze f187782ccf Bug 1334250 - script-generated patch to avoid removeEventListener calls when a variable is used for the event name, r=jaws. 2017-01-27 10:48:00 +01:00
Florian Quèze 0e0865f4fc Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Bevis Tseng f2bdbd8fd1 Bug 1314833 - Part 2.1: Factor out AbstractThread::MainThread() used in Media Playback. r=billm,jwwang
MozReview-Commit-ID: 9yJi3iDtVZG

--HG--
extra : rebase_source : 39c720ccc576ed9247b5e8abb70d99d7873b3ad6
2016-11-29 13:03:36 +08:00
JW Wang 992114f5fd Bug 1332160 - use nsCString internally whenever possible. r=gerald
MozReview-Commit-ID: 1DUaJWfbL88

--HG--
extra : rebase_source : f4a02736b0385e4be6258a185822f7855d0b0189
extra : intermediate-source : 1faaf4254a2e1ce2c096a8650b66d07c84c7fdbe
extra : source : c23fc2cea382627af8ff20ae3edea926eaa6d51a
2017-01-18 16:51:31 +08:00
Gerald Squelart f17dd305d6 Bug 1331289 - Use MediaContainerType in MediaResource, SourceBuffer, TrackBuffersManager, and dependencies - r=jya
Continuing the work of replacing MIME strings with MediaContainerType, starting
from MediaResource and following the dependencies.

Most changes are mechanical: Just change ns*String into MediaContainerType, and
MIME string literals into MEDIAMIMETYPE("a/b").
Some checks for empty/invalid strings and lowercase comparisons can go, thanks
to the always-valid always-lowercase-MIME invariants of MediaContainerType.

One special case in is MediaSourceResource, which used to have an empty string
as its type (because its own type is not relevant, but its SourceBuffers carry
types). Because the inherited GetContentType *must* be overridden, and must
return a MediaContainerType, we needed a valid type even though it should not
be seen in the real world. I've chosen "application/x.mediasource" for that.

MozReview-Commit-ID: 1aCH75Kh2e6

--HG--
extra : rebase_source : 0d9cd9b69c264e5dcfc3845f80ee107f4bcbcd9a
2016-12-28 18:59:02 +11:00
Gerald Squelart 5745998021 Bug 1331770 - Rename 'MediaContentType' to 'MediaContainerType' - r=jya
MozReview-Commit-ID: F0BWai8vPyo

--HG--
rename : dom/media/MediaContentType.cpp => dom/media/MediaContainerType.cpp
rename : dom/media/MediaContentType.h => dom/media/MediaContainerType.h
extra : rebase_source : 640ada96750b4496055087e80ae3f600c9df31c9
2017-01-18 11:59:03 +11:00
Florian Quèze 85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
Jean-Yves Avenard ff5bf730de Bug 1329480: [MSE] Do not reject partial boxes. r=gerald
Partial content less than 8 bytes long was incorrectly rejected.

We now assume that content is valid unless it is explicitly incorrect (bad box type)

MozReview-Commit-ID: 8L32mNVjzxh

--HG--
extra : rebase_source : 980242aab96d5b96dc7e62ad289e8ecd7b228032
2017-01-13 17:38:40 +01:00
Gerald Squelart f3a92fa0a6 Bug 1330284 - Use MediaContentType in MP4Decoder - r=jya
MozReview-Commit-ID: 9Npl40Iicjc

--HG--
extra : rebase_source : 27df1df1cdf8eb8b608e155c0146c8b09d655de4
2017-01-01 12:27:45 +11:00
Gerald Squelart 5587e692df Bug 1329568 - Remove MediaContentType crutches - r=jya
Now that we have move all data-handling functions to MediaMIMEType and friends,
we can remove direct accesses to data from MediaContentType, to better separate
the context that MediaContentType represents, from the data it includes.

Dependent code needs to be mechanically updated to now use the proper APIs.

Note that in most places, we just extract MIME strings. Further work will take
place in later bugs, to completely replace these strings with MediaContentType
or more appropriate types...

MozReview-Commit-ID: LoX8dhX7OlB

--HG--
extra : rebase_source : cf221ac3c104f99b36cfa055afcf67d3bca26d0e
2017-01-01 09:24:24 +11:00