Commit Graph
1098 Commits
Author SHA1 Message Date
JW Wang 7ed20b98c1 Bug 1252341 - No need to reset mReader in ~MediaDecoderStateMachine() because the destructor will do that. r=bechen.
MozReview-Commit-ID: AmFsE95Ai9A
2016-03-01 10:47:36 +08:00
Jean-Yves Avenard e261f9bce4 Bug 1244639: P2. Don't clamp audio time to seek time if there's no video track. r=cpearce
This remove the need for working around the MP3 decoder returning decoded frames in the future.
2016-02-05 14:53:58 +11:00
Jean-Yves Avenard 2bcd0eceba Bug 1243608: P5. Add type utility methods to SeekTarget class. r=cpearce 2016-02-02 18:57:13 +11:00
Jean-Yves Avenard e70f02fb04 Bug 1243608: P4. Have MediaDecoderReader::SeekPromise return a TimeUnit. r=cpearce 2016-02-02 18:57:13 +11:00
Jean-Yves Avenard c9318d6fbf Bug 1243608: P3. Make SeekTarget::mTime a TimeUnit object. r=cpearce
Also makes it a private member and provide a GetTime() accessor instead.
2016-02-02 18:57:12 +11:00
Jean-Yves Avenard 9ef9b53e3b Bug 1243608: P2. Pass the full SeekTarget object to MediaDecoderReader::Seek. r=cpearce
This will allow the reader to know if we are performing a fast seek.
2016-02-02 18:57:12 +11:00
Jean-Yves Avenard cafbc3ef05 Bug 1243608: P1. Only use video time if video frame contains seek target. r=cpearce
This restrict the behaviour introduced in bug 1112438.
2016-02-02 18:57:11 +11:00
Carsten "Tomcat" Book 0e3de28f66 Backed out changeset 3c471a71317e (bug 1112438) for m2 test failures 2016-02-01 10:08:41 +01:00
Jean-Yves Avenard 23cc8eade3 Bug 1244477: Offset seek time by start time. r=jwwang
We adjust the timestamps as frames are returned by the decoder, but weren't adjusting the seek time.
2016-02-01 17:45:32 +11:00
Jean-Yves Avenard 2c3f34a2e1 Revert "Bug 1112438 - Make newCurrentFrameTime more accurate while seeking by checking audio & video timestamp boundary in addition. r=cpearce" r=cpearce
This reverts commit 4b812ca9

The original commit was a work around for poorly encoded videos generated by some FFOS devices which could make the first audio frame non-zero. Trying then to make them appear as zero when seeking to start.

There are better ways to get around this problem.
2016-02-01 17:45:32 +11:00
JW Wang cb7980a529 Bug 1242845. Part 2 - fix format nits. r=me. 2016-01-27 20:14:43 +08:00
JW Wang 8be9273899 Bug 1242845 - Make the computation of MediaDecoderStateMachine::HasLowUndecodedData() more accurate and consistent. r=jya. 2016-01-27 15:12:49 +08:00
JW Wang dee8d011d5 Bug 1242843 - Make MDSM::mDecodedVideoEndTime zero-based. r=kikuo. 2016-01-27 15:12:46 +08:00
JW Wang 953a88bf0e Bug 1242841 - Make MDSM::mDecodedAudioEndTime zero-based. r=kikuo. 2016-01-26 11:31:56 +08:00
Alastor Wu 200f23ab4c Bug 1238906 - part2 : notify audible state from MDSM to ME. r=jwwang 2016-01-21 10:27:38 +08:00
Alastor Wu 662ac883c6 Bug 1238906 - part1 : check whether audio data is audible. r=jwwang 2016-01-21 10:19:19 +08:00
Sebastian Hengst c4450c2e3b Backed out 2 changesets (bug 1238906) for bustage in M(2) on OSX and Windows. r=bustage
Backed out changeset e729b30ba7b4 (bug 1238906)
Backed out changeset 1857bca40ac4 (bug 1238906)
2016-01-18 13:11:43 +01:00
Alastor Wu 3a65043820 Bug 1238906 - part2 : notify audible state from MDSM to ME. r=jwwang 2016-01-18 10:50:47 +08:00
Alastor Wu 67ce7cac7d Bug 1238906 - part1 : check whether audio data is audible. r=jwwang 2016-01-18 10:50:35 +08:00
JW Wang 64c0b513b6 Bug 1235966 - reset mAudioCompleted and mVideoCompleted when switching MediaSink so they are resolved by the new MediaSink. r=kikuo. 2016-01-13 06:13:00 +08:00
JW Wang 851b76e982 Bug 948267. Part 3 - remove MDSM::AdjustAudioThresholds() to ensure we have enough data for AudioStream::DataCallback() to consume in the audio-only case. Also increase the amount of prerolling audio to 1s (which is the size of the circular buffer of AudioStream) to ensure a smooth start of playback. r=kinetik. 2016-01-12 21:48:25 +08:00
JW Wang fb8b7440fd Bug 1237806 - update playback position before entering buffering mode so the currentTime of the media element is more accurate during buffering. r=jya. 2016-01-12 10:25:23 +08:00
JW Wang acaf30a261 Bug 1238347 - stop prerolling when decoding starts if we are waiting for data. r=cpearce. 2016-01-12 08:06:44 +08:00
JW Wang 4c38e52c9c Bug 1238343 - Update MDSM::mIsAudioPrerolling/mIsVideoPrerolling when playback rate changes. r=cpearce. 2016-01-12 08:05:21 +08:00
JW Wang 645a7bdc58 Bug 1237482 - Remove MediaDecoderStateMachine::mStreamSink. r=kikuo. 2016-01-08 15:52:12 +08:00
JW Wang 62a6167dd2 Bug 1237174 - Remove the unnecessary code since mState won't change in the case of DECODER_STATE_COMPLETED. r=bechen. 2016-01-06 18:18:13 +08:00
JW Wang 94832fa5a0 Bug 1234424. Part 2 - remove unused code. r=roc. 2016-01-05 21:15:43 +08:00
JW Wang 227e7abb19 Bug 1234424. Part 1 - share the underlying value of MDSM::mSameOriginMedia with DecodedStream. r=roc. 2016-01-05 21:15:37 +08:00
JW Wang e0fbde9d72 Bug 1233650. Part 4 - remove unused functions from DecodedStream. r=roc. 2015-12-24 10:14:16 +08:00
JW Wang f0e09dea46 Bug 1233650. Part 3 - move creation of OutputStreamManager from DecodedStream to MDSM. r=roc. 2015-12-24 10:14:16 +08:00
JW Wang 2dcb704743 Bug 1233630 - Remove MediaDecoderStateMachine::AudioDecodedUsecs. r=kikuo. 2015-12-24 10:00:47 +08:00
JW Wang b60e2e609e Bug 1231091. Part 1 - Add mVideoCompleted so MDSM can check when audio/video is done rendering. This removes the only caller of DecodedStream::IsFinished(). r=roc. 2015-12-22 08:42:38 +08:00
Jean-Yves Avenard 4a0eef18ed Bug 1229987: P4. Stop pre-rolling when encountering WAITING_FOR_DATA. r=cpearce
This allows to start displaying frames even when we have less than 5 frames.
2015-12-18 19:26:54 +11:00
JW Wang 31d0cbefaf Bug 1231075. Respect the timestamp of video frames and don't pop frames as fast as we can in real-time mode. r=roc. 2015-12-17 10:53:49 +08:00
JW Wang bcb2afb601 Bug 1230882. Part 2 - remove DecodedStream::BeginShutdown() and other unused code. r=roc. 2015-12-14 11:32:19 +08:00
Phil Ringnalda a5418f8a15 Back out 4 changesets (bug 1229987) for ASan e10s timeout in test_playback.html, Mac timeouts in test_BufferingWait_mp4.html, and Win8 failures in test_WaitingToEndedTransition_mp4.html
Backed out changeset 707a87454058 (bug 1229987)
Backed out changeset 37003d495f20 (bug 1229987)
Backed out changeset c8f4e1eaf884 (bug 1229987)
Backed out changeset 42ca05d8546d (bug 1229987)
2015-12-10 23:10:20 -08:00
Jean-Yves Avenard c682154ccc Bug 1230527: P1. Ensure seeked event is fired prior loadeddata. r=jwwang 2015-12-10 14:08:05 -05:00
Jean-Yves Avenard abe15854ff Bug 1229987: P4. Stop pre-rolling when encountering WAITING_FOR_DATA. r=cpearce
This allows to start displaying frames even when we have less than 5 frames.
2015-12-10 12:17:29 -05:00
JW Wang 7fa0fb3d54 Bug 1230004. Part 2 - have MDSM::BeginShutdown return a promise and remove MDSM::mDecoder. r=cpearce. 2015-12-03 15:59:44 +08:00
JW Wang 44efdca870 Bug 1230004. Part 1 - cache data in MDSM so it won't need to ask MediaDecoder. r=cpearce. 2015-12-03 15:59:30 +08:00
JW Wang cb6c7460e1 Bug 1228939 - 1. add mSeekable to MediaInfo. 2. use MediaEventSource to notify the decoder when the media is not seekable. 3. remove unused code. r=jya. 2015-12-02 15:42:32 +08:00
JW Wang ea5b44f5ac Bug 1228923 - Merge some MediaEventSource for MDSM. r=jya. 2015-12-01 09:34:02 +08:00
JW Wang e29a951f12 Bug 1227797 - Use MediaEventSource to publish playback events for MDSM. r=jya. 2015-11-30 13:06:19 +08:00
JW Wang 23e5234319 Bug 1218311 - Port the fix of bug 1193614 to VideoSink. r=cpearce. 2015-11-25 15:15:05 +08:00
JW Wang 98580acba1 Bug 1226569. Part 1 - Use MediaEventSource to publish MetadataLoaded and FirstFrameLoaded events. r=jya. 2015-11-23 10:35:18 +08:00
sajitk 67836f0590 Bug 1201997 - Part 4 - Change size and offset variables to size_t.r=froydn 2015-11-15 14:48:08 +01:00
JW Wang eab89943d5 Bug 1220512 - ensure next frame status is updated before notifying MediaDecoder::PlaybackEnded. See bug 1220512 comment 1 for the detail. r=cpearce. 2015-11-02 21:26:10 +08:00
Nathan Froyd c4013082d6 Bug 1220491 - clarify ownership relationships for creators of AudioData; r=gerald
The way we pass in AudioDataValue arrays into AudioData is non-uniform:
sometimes we have nsAutoArrayPtrs, sometimes we don't, and it's not
immediately obvious from the function signature of the constructor that
we're actually taking ownership of this array.  Let's fix that by using
UniquePtr<AudioDataValue[]> smart pointers to hold the data prior to
creating AudioData values, and for passing in to AudioData's
constructor.  Using standard-er C++ things instead of our homegrown ones
is a good thing.
2015-11-01 17:34:26 -05:00
Jean-Yves Avenard 2d2d243fb4 Bug 1207198: P2. Defer dormant request while ReadMetadata is pending in MDSM. r=sotaro 2015-10-23 23:34:06 +11:00
JW Wang 9fb5a4078f Bug 1216850. Part 3 - backout bug 1214073. r=me. 2015-10-21 14:04:20 +08:00