Commit Graph

15 Commits

Author SHA1 Message Date
trav90 f617b3a495 Seek to original seeking position should video seeked time not found 2018-07-25 07:03:11 +08:00
trav90 da73c16e6e Rename MediaDecoderReader::OnDecodeThread to MediaDecoderReader::OnTaskQueue 2018-07-25 06:44:55 +08:00
trav90 3e79afcc05 Enable MediaFormatReader in MP4Decoder & MediaSourceReader 2018-07-25 01:31:23 +08:00
trav90 5a4c071b9e Revert "Disable audio track when using combined track sourcebuffer"
This reverts commit a38b1a6
2018-07-25 01:30:35 +08:00
trav90 b20b8dadab Replace dom::TimeRanges with TimeIntervals object 2018-07-25 01:27:34 +08:00
trav90 3feb1cae2d Disable audio track when using combined track sourcebuffer 2018-07-25 01:26:49 +08:00
trav90 e1fbf7147a Put new MediaFormatReader behind a pref
media.format-reader.mp4=true: Will enable the new format decoder for normal MP4
media.mediasource.format-reader.mp4=true: Will enable new format decoder for
MP4 within MSE.

Both are currently defaulted to false.
2018-07-25 01:26:47 +08:00
trav90 50d8280608 Encrypted event should be fired once per initData 2018-07-25 01:21:41 +08:00
trav90 964a6a2ee6 Fix build bustage: Add missing bool 2018-07-25 01:03:54 +08:00
trav90 07ffc3fc1e Deliver NotifyWaitingForResourcesStatusChanged asynchronously on the state machine task queue
The previous setup is wacky, and can cause the notification to reach the state machine before the promise rejection, which causes us to stall intermittently. We also take the opportunity to be a bit less trigger happy when we fire it in MediaSourceReader.cpp.
2018-07-25 01:03:45 +08:00
trav90 3ef89dda87 Fire loadedmetadata before encrypted event 2018-07-25 01:03:42 +08:00
trav90 1d38e973bb Streamline seek initiation logic and abolish manual seek cancels and retries
The model we're moving towards is one where the MDSM can just disconnect all of its promises, send a ResetDecode down the pipe, and start doing something unrelated.
2018-07-25 01:03:03 +08:00
trav90 62337b35dc Return samples on the state machine thread
This is necessary because we're going to want to start disconnecting sample and seek requests directly from the state machine thread, and the machinery asserts that disconnection happens on the same thread as resolution.
2018-07-25 01:02:38 +08:00
wolfbeast 02112270b5 Remove EME (Encrypted Media Extensions) DRM support.
This resolves #102.
2018-07-24 23:32:00 +08:00
Moonchild baf46a6bf1 Merge pull request #1 from mozilla/esr38: Esr38 upstream pull 2018-07-24 23:04:07 +08:00