summaryrefslogtreecommitdiffstats
path: root/media/base
Commit message (Collapse)AuthorAgeFilesLines
* Rename switch to disable prefixed Encrypted Media APIs.ddorwin@chromium.org2013-05-312-5/+0
| | | | | | | | | | | | | | | | This will allow the prefixed and unprefixed versions to be controlled independently. The new unprefixed enable switch and flag are also added, though they currently have no effect. Both switches are moved from media_switches to content_switches (the reason reason the switch was moved no longer applies), and the method for disabling on Android is changed from the switch to the runtime check. BUG=224791 Review URL: https://chromiumcodereview.appspot.com/15383003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203511 0039d316-1c4b-4281-b951-d872f2087c98
* Passing ScopedJavaSurface to MediaPlayerAndroidqinmin@chromium.org2013-05-315-10/+11
| | | | | | | | | | | | For media source implementation, we need to store the surface object inside MediaPlayerAndroid for later use. Passing the ScopedJavaSurface to MPA so that it can control the life time of the java surface. However, in fullscreen case, the player does not own the surface. As a result, added a member variable in ScopedJavaSurface to indicate whether the surface can be released upon object deletion. BUG=233420 Review URL: https://chromiumcodereview.appspot.com/15992007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203442 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 203427 "Hook up the device selection to the WebAudio live..."justinlin@chromium.org2013-05-311-1/+7
| | | | | | | | | | | | | | | | | | | | | | Possibly caused content_browsertests to fail on Mac. > Hook up the device selection to the WebAudio live audio. > WebAudio live audio needs to pass the session_id to the browser process so that Chrome can open the correct input device for unitfied IO. > > This CL looks big because it touches quite some interfaces from the render to the browser. But the change is simple and basically adding a session_id/device_id to the classes. All the changes some together and it is very hard to break it down. > It also makes the media output code more similar to the media input code as well, and it will be easier to merge them for the future. > > > BUG=147327 > TEST=http://chromium.googlecode.com/svn/trunk/samples/audio/visualizer-live.html > Change the device using the camera icon on the right of the omnibox, then reload. Verify the sound is coming from the correct input device. > > Review URL: https://chromiumcodereview.appspot.com/15721002 TBR=xians@chromium.org Review URL: https://codereview.chromium.org/15725013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203434 0039d316-1c4b-4281-b951-d872f2087c98
* Hook up the device selection to the WebAudio live audio.xians@chromium.org2013-05-311-7/+1
| | | | | | | | | | | | | | | | WebAudio live audio needs to pass the session_id to the browser process so that Chrome can open the correct input device for unitfied IO. This CL looks big because it touches quite some interfaces from the render to the browser. But the change is simple and basically adding a session_id/device_id to the classes. All the changes some together and it is very hard to break it down. It also makes the media output code more similar to the media input code as well, and it will be easier to merge them for the future. BUG=147327 TEST=http://chromium.googlecode.com/svn/trunk/samples/audio/visualizer-live.html Change the device using the camera icon on the right of the omnibox, then reload. Verify the sound is coming from the correct input device. Review URL: https://chromiumcodereview.appspot.com/15721002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203427 0039d316-1c4b-4281-b951-d872f2087c98
* Add AAC codec specific data for MSE on androidqinmin@chromium.org2013-05-313-44/+113
| | | | | | | | | | | For AAC/ADTS, MediaCodec needs csd in order to work properly. Passing the csd data from the stream parser using the extra_data field. BUG=233420 Review URL: https://chromiumcodereview.appspot.com/16114009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203330 0039d316-1c4b-4281-b951-d872f2087c98
* Use base::MessageLoop in more files.xhwang@chromium.org2013-05-301-1/+1
| | | | | | | | | | | These are either missed in the first pass, or added after the first pass. TBR=thestig@chromium.org BUG=236029 Review URL: https://codereview.chromium.org/16092013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203259 0039d316-1c4b-4281-b951-d872f2087c98
* allow multiple media players to playqinmin@chromium.org2013-05-301-1/+1
| | | | | | | | | | | | | When a player starts playing, we always request audio focus. This will cause other players to pause. We should always allow other players to lower their output level and play at the same time. BUG=244696 R=miguelg@chromium.org Review URL: https://codereview.chromium.org/15937017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203154 0039d316-1c4b-4281-b951-d872f2087c98
* Allow some Android media player implementation to be overridden by embedders.avayvod@chromium.org2013-05-304-2/+22
| | | | | | | | | BUG=178307 R=qinmin@chromium.org,bulach@chromium.org Review URL: https://chromiumcodereview.appspot.com/15876006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203080 0039d316-1c4b-4281-b951-d872f2087c98
* Separate MediaKeys interface from Decryptor interface.xhwang@chromium.org2013-05-304-81/+115
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/15772012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203026 0039d316-1c4b-4281-b951-d872f2087c98
* Improve container detection testing by testing additional containers (new ↵jrummell@chromium.org2013-05-302-11/+66
| | | | | | | | | | containers added https://codereview.chromium.org/16034004/). Also put back original reference URLs in source. BUG=235108 Review URL: https://chromiumcodereview.appspot.com/15966005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203019 0039d316-1c4b-4281-b951-d872f2087c98
* add error handling if MediaCodec fails to decode dataqinmin@chromium.org2013-05-294-12/+36
| | | | | | | | | | | If MediaCodec fails, we need to report the error to WMPA. BUG=233420 R=acolwell@chromium.org Review URL: https://codereview.chromium.org/15822006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202868 0039d316-1c4b-4281-b951-d872f2087c98
* Add FakeVideoDecoder.xhwang@chromium.org2013-05-292-0/+213
| | | | | | | | | | | | | | | | The FakeVideoDecoder simulates a typical video decoder that could have some decoding delays (to simulate out-of-order decoding). Since it's fake, it does not care about what the input is. It always generate output frames successfully but with a frame delay (specified in the ctor). All callbacks passed to FakeVideoDecoder can be held if desired. This gives the test class a chance to do some operation during pending callbacks. BUG=141788 Review URL: https://chromiumcodereview.appspot.com/15085011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202789 0039d316-1c4b-4281-b951-d872f2087c98
* Using native sampling rate and optimal buffer size for audio on Android.leozwang@chromium.org2013-05-271-5/+69
| | | | | | | | | | | We want to use native sampling rate and optimial buffer size which is returned by framework on Android to achieve high audio quality. BUG=https://code.google.com/p/webrtc/issues/detail?id=1669 Review URL: https://chromiumcodereview.appspot.com/15217002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202464 0039d316-1c4b-4281-b951-d872f2087c98
* Add Create() function to AudioCodecBridge and VideoCodecBridge to allow ↵qinmin@chromium.org2013-05-266-60/+83
| | | | | | | | | | | | return of null pointers If codec is not supported, we should allow null pointers to be returned when trying to create a MediaCodecBridge. BUG=233420 Review URL: https://chromiumcodereview.appspot.com/14932020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202323 0039d316-1c4b-4281-b951-d872f2087c98
* Add UMA stats for audio/video containers.jrummell@chromium.org2013-05-256-0/+1948
| | | | | | | | BUG=238108 Review URL: https://chromiumcodereview.appspot.com/14495010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202275 0039d316-1c4b-4281-b951-d872f2087c98
* Remove bad SSE2 intrinsic include.dalecurtis@google.com2013-05-251-1/+0
| | | | | | | | | | BUG=none TEST=compiles TBR=fischman Review URL: https://codereview.chromium.org/15831006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202241 0039d316-1c4b-4281-b951-d872f2087c98
* Add dummy .c file to media_asm target.dalecurtis@google.com2013-05-251-0/+10
| | | | | | | | | | | | Fixes xcode from complaining about an "empty" assembly only target. BUG=157073 TEST=compiles TBR=fischman Review URL: https://codereview.chromium.org/15724007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202239 0039d316-1c4b-4281-b951-d872f2087c98
* Streamline SIMD targets in media.gypdalecurtis@google.com2013-05-2419-380/+454
| | | | | | | | | | | | | | | | | | | | | Prevents duplicates of the media_sse and yuv_convert targets from ending up in both media and media_unittests during shared builds. - Removes the yuv_convert target since everyone who uses it already uses media. - Merges differ_block_sse2 and yuv_convert_simd_x86 into media_sse2. - Moves assembly into media_asm. - Moves incorrect mmx bundling from sse2 to new media_mmx target. - Introduces EXPORT macro to x86inc.asm - Introduces yasm_includes for non-.asm files in yasm_compile.gypi. - Fixes missing const on yuv constants table. BUG=none TEST=compiles, all unittests pass. TBR=fischman@chromium.org, kbr@chromium.org, sergeyu@chromium.org Review URL: https://codereview.chromium.org/15151002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202230 0039d316-1c4b-4281-b951-d872f2087c98
* Enable seek in fullscreen mode for MSE impl on androidqinmin@chromium.org2013-05-245-52/+140
| | | | | | | | | | | | | | | | | | | | | | | | Since the actual MediaCodec instances live in browser process, we need to inform the chunk demuxer when a seek happens. To avoid race conditions, all the operations related to seek needs to be performed on the browser thread, instead of MediaDecoderJobs' own threads. Here is the work flow of the fullscreen seek event: 1. User hit the seek bar. 2. MediaSourcePlayer waits for all the decoder tasks to finish on the browser thread. 3. MediaSourcePlayer sends MediaSeekRequest to render process. 4. Render process gets the MediaSeekRequest, sends back the ack, and ask chunk demuxer to do a seek 5. MediaSourcePlayer gets the MediaSeekRequestAck, and starts sending IPC for getting more data For embedded video case, the workflow is: 1. user hit the seek bar 2. WebMediaPlayerAndroid sends a SeekTo message to MediaSourcePlayer. 3. MediaSourcePlayer waits for all the decoder tasks to finish, and then follows step 3-5 as shown in the fullscreen case. This change also allows toggling from embedded mode to fullscreen mode. When that happens, we first wait for the current decoding tasks to finish. Then perform a seek and reestablish the surface. BUG=233420 Review URL: https://chromiumcodereview.appspot.com/15499006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202098 0039d316-1c4b-4281-b951-d872f2087c98
* Fix various MediaSource related crashes on Android.acolwell@chromium.org2013-05-242-5/+8
| | | | | | | | | | | | | | | | | | | | This change fixes several issues that were causing crashes. - MediaPlayerHostMsg_DemuxerReady_Params was not initializing the xxx_codec member variables so audio-only or video-only content would randomly be flagged as A/V content with a random codec ID. - ChunkDemuxer::Stop() was not being called which could cause the delegate to be accessed after it was destroyed. - MediaSourceDelegate was signalling that it had metadata before the ChunkDemuxer was even initialized. This caused the HTMLMediaElement to signal that the load completed way too early and caused play() to be called when the delegate wasn't ready. BUG=233420 TEST=webkitmediasource-play.html LayoutTest reliably runs w/o crashing now. Review URL: https://chromiumcodereview.appspot.com/15898002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202019 0039d316-1c4b-4281-b951-d872f2087c98
* Keep original orientation of capture frames on Android.wjia@chromium.org2013-05-231-2/+2
| | | | | | | | | | This will be consistent with video capture on desktop platforms. R=qinmin@chromium.org Review URL: https://codereview.chromium.org/15900002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201833 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 201791 "Fix various MediaSource related crashes on Android."thestig@chromium.org2013-05-232-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | > Fix various MediaSource related crashes on Android. > > This change fixes several issues that were causing crashes. > - MediaPlayerHostMsg_DemuxerReady_Params was not initializing the xxx_codec > member variables so audio-only or video-only content would randomly be > flagged as A/V content with a random codec ID. > - ChunkDemuxer::Stop() was not being called which could cause the delegate > to be accessed after it was destroyed. > - MediaSourceDelegate was signalling that it had metadata before the > ChunkDemuxer was even initialized. This caused the HTMLMediaElement to > signal that the load completed way too early and caused play() to be > called when the delegate wasn't ready. > > BUG=233420 > TEST=webkitmediasource-play.html LayoutTest reliably runs w/o crashing now. > > Review URL: https://chromiumcodereview.appspot.com/15754004 TBR=acolwell@chromium.org Review URL: https://codereview.chromium.org/15838006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201797 0039d316-1c4b-4281-b951-d872f2087c98
* Fix various MediaSource related crashes on Android.acolwell@chromium.org2013-05-232-5/+8
| | | | | | | | | | | | | | | | | | | | This change fixes several issues that were causing crashes. - MediaPlayerHostMsg_DemuxerReady_Params was not initializing the xxx_codec member variables so audio-only or video-only content would randomly be flagged as A/V content with a random codec ID. - ChunkDemuxer::Stop() was not being called which could cause the delegate to be accessed after it was destroyed. - MediaSourceDelegate was signalling that it had metadata before the ChunkDemuxer was even initialized. This caused the HTMLMediaElement to signal that the load completed way too early and caused play() to be called when the delegate wasn't ready. BUG=233420 TEST=webkitmediasource-play.html LayoutTest reliably runs w/o crashing now. Review URL: https://chromiumcodereview.appspot.com/15754004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201791 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Added ability to inject a custom implementation of ↵avayvod@chromium.org2013-05-232-13/+31
| | | | | | | | | | | | | | | | | | MediaPlayerManager to RenderViewHostImpl. Inlined MediaPlayerManager interface's virtual destructor to remove a single method .cc file. Added a few missing methods to the interface. Fixed includes in the files calling to these methods. Refactoring, thus no new tests. R=bulach@chromium.org, qinmin@chromium.org TBR=scherkus@chromium.org BUG=178307 Review URL: https://chromiumcodereview.appspot.com/15341003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201724 0039d316-1c4b-4281-b951-d872f2087c98
* Media Source dispatches inband text tracksmatthewjheaney@chromium.org2013-05-232-0/+53
| | | | | | | | | | | | The Media Source (WebM) parser now detects the presence of inband text tracks. As frames of inband text (WebVTT cues) are found in the network stream, they are pushed up the media stack. BUG=230708 Review URL: https://chromiumcodereview.appspot.com/13419002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201716 0039d316-1c4b-4281-b951-d872f2087c98
* Remove extra memcpys from AudioPullFifo.dalecurtis@chromium.org2013-05-234-33/+39
| | | | | | | | | | | | | | | | | | Due to AudioPullFifo always clearing the |fifo_| before reading another block from |read_cb_| we can actually remove the AudioFifo object in favor of a plain AudioBus. Speedup is ~17% over the old version per AudioConverter benchmark using --audio-converter-iterations=500000: Old: 430.04ms New: 355.44ms BUG=none TEST=media_unittests Review URL: https://chromiumcodereview.appspot.com/15394003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201662 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Android component build.newt@chromium.org2013-05-221-2/+3
| | | | | | | | R=acolwell@chromium.org, asvitkine@chromium.org Review URL: https://codereview.chromium.org/15613003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201562 0039d316-1c4b-4281-b951-d872f2087c98
* Adding VP8 Alpha support in Media Sourcevigneshv@chromium.org2013-05-224-21/+24
| | | | | | | | | | | | Adding support for playback of VP8 videos with Alpha Channel through the Media Source API. BUG=242357 TEST=VP8 Alpha Streams play properly via Media Source Review URL: https://chromiumcodereview.appspot.com/15342004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201496 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Fix Component build for Android."aurimas@chromium.org2013-05-211-4/+3
| | | | | | | | | | | | This reverts commit f4d67e80c8908301eaf8bc2c578c36b46883c2b7. Reverting https://codereview.chromium.org/15292012/ TBR=acolwell,asvitkine NOTRY=true Review URL: https://chromiumcodereview.appspot.com/15590002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201334 0039d316-1c4b-4281-b951-d872f2087c98
* [Android] Move MediaPlayerBridge::Initialize() call out of the constructor.avayvod@chromium.org2013-05-212-11/+11
| | | | | | | | | R=qinmin@chromium.org BUG=178307 Review URL: https://chromiumcodereview.appspot.com/15354002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201333 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Component build for Android.aurimas@chromium.org2013-05-211-3/+4
| | | | | | | | | | Added missing EXPORT macros to fix Android' component build. NOTRY=true Review URL: https://chromiumcodereview.appspot.com/15292012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201331 0039d316-1c4b-4281-b951-d872f2087c98
* Add MSE implementation on androidqinmin@chromium.org2013-05-2011-146/+953
| | | | | | | | | | | | Here are the changes included in this CL: 1. Adds a MediaSourcePlayer for android to play media source extensions. Only embedded mode are working currently. 2. Rewrite the MediaCodecBridge code in java. The current MediaCodecBridge code is not very suitable for exception handling. Also, this refactoring adds support for audio playback. BUG=233420 Review URL: https://chromiumcodereview.appspot.com/15113002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201031 0039d316-1c4b-4281-b951-d872f2087c98
* Move SincResampler SSE initialization into MediaInitializer.dalecurtis@chromium.org2013-05-163-26/+39
| | | | | | | | | BUG=none TEST=media_unittests Review URL: https://chromiumcodereview.appspot.com/14672024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200623 0039d316-1c4b-4281-b951-d872f2087c98
* Set default sampling rate to 44100 and query the native output sampling rate.leozwang@chromium.org2013-05-161-0/+15
| | | | | | | | BUG=231094 Review URL: https://chromiumcodereview.appspot.com/14049003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200461 0039d316-1c4b-4281-b951-d872f2087c98
* Report timing statistics for audio controller methods via UMA.dalecurtis@chromium.org2013-05-162-0/+48
| | | | | | | | | | | | | | Logs the time taken to execute the main methods of AudioInputController and AudioOutputController. This timing information will be used to determine if we can combine the audio thread and the UI thread on OSX to (hopefully) fix http://crbug.com/158170. BUG=158170 TEST=chrome://histograms/Media.Audio contains information. Review URL: https://chromiumcodereview.appspot.com/14827002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200414 0039d316-1c4b-4281-b951-d872f2087c98
* Replaced 8 callbacks provided to MediaPlayerBridge with an interface ↵avayvod@chromium.org2013-05-155-136/+60
| | | | | | | | | | | (reusing MediaPlayerManager). BUG=None TEST=No new tests, no functional changes. Review URL: https://chromiumcodereview.appspot.com/14581015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200365 0039d316-1c4b-4281-b951-d872f2087c98
* Add VideoDecoder::NeedsBitStreamConversion().xhwang@chromium.org2013-05-152-0/+7
| | | | | | | | | | | | | | In the future world where VideoDecoder doesn't talk to DemuxerStream directly (see issue 141788), the owner of the VideoDecoder (e.g. VideoFrameStream) needs to get the info about whether the decoder needs bitstream conversion so that it can call DemuxerStream::EnableBitstreamConverter() accordingly. BUG=141788,240342 TEST=Current media_unittests pass. Review URL: https://chromiumcodereview.appspot.com/15140002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200232 0039d316-1c4b-4281-b951-d872f2087c98
* Fix conflicting #define for WebaudioMediaCodecBridgeqinmin@chromium.org2013-05-131-3/+3
| | | | | | | | | | This conflicts with the #define in MediaCodecBridge R=dalecurtis@chromium.org Review URL: https://codereview.chromium.org/14796017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199756 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the build for Google TVqinmin@chromium.org2013-05-111-0/+1
| | | | | | | | | | | R=qinmin@chromium.org BUG= Review URL: https://codereview.chromium.org/15096003 Patch from Yuncheol Heo <ycheo@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199628 0039d316-1c4b-4281-b951-d872f2087c98
* Reenable media::Pipeline's ThreadChecker now that reference counting has ↵scherkus@chromium.org2013-05-111-4/+0
| | | | | | | | | | been removed. BUG=148405 Review URL: https://chromiumcodereview.appspot.com/14720010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199617 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup and reduce memory usage for MultiChannelResampler.dalecurtis@chromium.org2013-05-102-31/+22
| | | | | | | | | | | | | | Removes a vector allocation and an allocation for an unused channel in favor of AudioBus::CreateWrapper(). These allocations are also moved to the constructor now that SincResampler will always ask for the same amount of data. BUG=none TEST=media_unittests Review URL: https://chromiumcodereview.appspot.com/14969017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199521 0039d316-1c4b-4281-b951-d872f2087c98
* Cut content/browser dependency on webkit_mediajamesr@chromium.org2013-05-102-0/+14
| | | | | | | | BUG=237267 Review URL: https://chromiumcodereview.appspot.com/15063003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199384 0039d316-1c4b-4281-b951-d872f2087c98
* Remove function level static initializers from VectorMath.dalecurtis@google.com2013-05-104-43/+55
| | | | | | | | | | | | | | | | | | Since VectorMath routines (and other features) are used both in the renderer process and the browser process, relying on InitializeMediaLibrary() alone is insufficient. Enter: InitializeCPUSpecificMediaFeatures(), a method which can be called from the browser process without initializing any of the loadable media modules. BUG=224662 TEST=media_unittests R=scherkus@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/15044005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199315 0039d316-1c4b-4281-b951-d872f2087c98
* media: Ensure VP8 alpha tests really use the VP8 alpha decoder.tomfinegan@chromium.org2013-05-091-0/+4
| | | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/15019011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199204 0039d316-1c4b-4281-b951-d872f2087c98
* Reland: Remove reference counting from media::Pipeline.scherkus@chromium.org2013-05-093-52/+50
| | | | | | | | | | Now with a test that covers the refresh/teardown case. BUG=173313 Review URL: https://chromiumcodereview.appspot.com/14779009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199130 0039d316-1c4b-4281-b951-d872f2087c98
* Fix some includes in media code.xhwang@chromium.org2013-05-092-2/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/14773010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199129 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce jitter from uneven SincResampler buffer size requests.dalecurtis@google.com2013-05-089-162/+277
| | | | | | | | | | | | | | Ensures all buffer requests are for the same size. Reduces jitter by allowing clients with specific buffer size requirements to avoid overreading. BUG=none TEST=media_unittests. R=crogers@google.com, henrika@chromium.org, sergeyu@chromium.org Review URL: https://codereview.chromium.org/14189035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199032 0039d316-1c4b-4281-b951-d872f2087c98
* Add MediaPlayerAndroid as a super class for all media player implementations ↵qinmin@chromium.org2013-05-085-215/+360
| | | | | | | | | | | | | | | | | on android. There are several different implementations of media players on Android. Currently they all inherit from MediaPlayerBridge. This only works if their java player is a subclass of Android MediaPlayer class, which is not necessary in some cases. Additionally, we are not going to use any subclass of android MediaPlayer for MSE implementation As a result, this change introduces a super class for all the media player implementations. BUG=233420 R=scherkus@chromium.org, ycheo@chromium.org, yfriedman@chromium.org Review URL: https://codereview.chromium.org/14762006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198957 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 198921 "Add FakeDemuxerStream."xhwang@chromium.org2013-05-081-0/+1
| | | | | | | | | | | | | | | | | | > Add FakeDemuxerStream. > > FakeVideoDecoder will be added later. Hopefully these will make tests in > VideoFrameStream cleaner. > > BUG=141788 > R=scherkus@chromium.org > > Review URL: https://codereview.chromium.org/13947052 TBR=xhwang@chromium.org Review URL: https://codereview.chromium.org/14756015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198925 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 198760 "Remove reference counting from media::Pipeline."scherkus@chromium.org2013-05-083-50/+52
| | | | | | | | | | | | | | | | > Remove reference counting from media::Pipeline. > > BUG=173313 > R=acolwell@chromium.org > > Review URL: https://codereview.chromium.org/14371023 BUG=238908 TBR=scherkus@chromium.org Review URL: https://codereview.chromium.org/14972012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198922 0039d316-1c4b-4281-b951-d872f2087c98