summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/NuPlayer.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * libmediaplayerservice: try to open audio sink in offload mode in error.Ronghua Wu2015-05-221-4/+17
| | | | | | | | | | | | Bug: 19061432 Bug: 21370108 Change-Id: Iaa757555ef37fd1ac87b6e2d5a9969bb58cc5ebc
* | mediaplayer: display one frame when seek is called before start.Wei Jia2015-05-211-6/+29
|/ | | | | Bug: 18608164 Change-Id: I83252421278aeeb1c1611138994bfdaf86d7a363
* mediaplayer: remove unused parameter needNotify in NuPlayer::performSeek.Wei Jia2015-05-151-12/+9
| | | | Change-Id: I5ee4c3ba968a2ac52266cda0425d1a709e5c0fb2
* Merge "nuplayer: fixes for subtitle pause/resume" into mnc-devChong Zhang2015-05-071-5/+15
|\
| * nuplayer: fixes for subtitle pause/resumeChong Zhang2015-05-061-5/+15
| | | | | | | | | | | | | | | | | | | | - pause after the current block when select track - ignore metadata timestamps as they're too sparse - use smaller range when searching for next segment to prevent resumeUntil from downloading too much data bug: 20500732 Change-Id: Ibda57a39ec86efd96a8dd0db95adeb92d076697a
* | NuPlayer: parcel placeholder mime in track info if not provided by sourceRobert Shih2015-05-061-1/+13
| | | | | | | | | | Bug: 20853994 Change-Id: Iaf30e84ec78297099e6888070e7e779237b2d69f
* | nuplayer: get playback frame rate from video track meta instead of file meta.Ronghua Wu2015-05-041-10/+28
|/ | | | | Bug: 20481562 Change-Id: Ifb4b89cce5bc810f3f411c27ba61c996a488a1c0
* stagefright: remove NativeWindowWrapperLajos Molnar2015-04-301-28/+24
| | | | | | | | Now that Surface and SurfaceTextureClient are the same and Surface, it does not add value. Bug: 19489395 Change-Id: I016ecd1cf5cc51ce6244b6fa34ecd75f84e3db01
* Merge "GenericSource: reply mime information for *all* track types" into mnc-devRobert Shih2015-05-011-4/+4
|\
| * GenericSource: reply mime information for *all* track typesRobert Shih2015-04-301-4/+4
| | | | | | | | | | Bug: 20729923 Change-Id: I65a8aedf089cfa4756fc9de433949c1b4bd416ce
* | stagefright: support setting/getting playback/sync config in MediaSyncLajos Molnar2015-04-301-13/+163
|/ | | | | | | Bug: 18249558 Bug: 19666434 Bug: 20057497 Change-Id: I5868b17423d7c20cfaf4a399f3eb67bfba440605
* DO NOT MERGE libmediaplayerservice: set priority and operating rate for the ↵Ronghua Wu2015-04-271-0/+19
| | | | | | | | codec used by nuplayer. Bug: 20481562 Change-Id: I9806414962352fbcda726f8274f1cd348c961de0 (cherry picked from commit f19f5d716b39a5d9dc1abdcd5a16a7aaf1b1ab8b)
* Merge "NuPlayer: queue a deferred scan sources when flushing during scan"Chong Zhang2015-04-181-1/+5
|\
| * NuPlayer: queue a deferred scan sources when flushing during scanChong Zhang2015-04-171-1/+5
| | | | | | | | | | | | | | also refactor code to move scheduleRequestBuffers to decoder base. bug: 20267388 Change-Id: I48f16adc6b4d4008f8fcda8b3b01c595ad199f8b
* | libmediaplayerservice: fix warnings, make warnings errors, use clangLajos Molnar2015-04-171-4/+2
|/ | | | Change-Id: I1b2f6b65c5abbc366068a60b8909104f31b94228
* stagefright: initial timed id3 support in hlsRobert Shih2015-04-161-0/+24
| | | | Change-Id: I00a8a786b3f4b74742c34770edd94e937abe20a8
* Unhide the android.media.[Media]DataSource interface.Chris Watkins2015-04-151-0/+16
| | | | | | | | | | | | | | | | | | | | | This allows apps to implement MediaDataSource, which is modeled on stagefright's DataSource, to supply media data to the framework. This was already implemented for MediaExtractor, but it was renamed from DataSource. MediaExtractor, MediaPlayer and MediaMetadataRetriever each have a new overload: #setDataSource(android.media.MediaDataSource) Only NuPlayer supports this new data source. The change introduces: * IDataSource: The binder interface for DataSource. * JMediaDataSource: The native counterpart to the java interface. It implements IDataSource. * CallbackDataSource: A stagefright DataSource that wraps an IDataSource. Change-Id: Ib3c944b49cc8a792c8eb9c85e5015c07f298ebc1
* Merge "nuplayer: Has video hint for offload"Ronghua Wu2015-04-031-0/+2
|\
| * nuplayer: Has video hint for offloadHaynes Mathew George2015-04-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | Send a hint indicating whether the clip being played has a video stream from NuPlayer to NuPlayerDecoderPassThrough. This hint is used to open the audio sink with the correct offload config. Currently, NuPlayerDecoderPassthrough always calls openAudioSink with hasVideo set to false causing an unnecessary recreation of AudioTrack. Change-Id: I7bc6c73818b65f9237a6e606721b7d48e1d807b9 CRs-Fixed: 811510
* | mediaplayer: ensure secure decoders are instantiated before starting sourceLajos Molnar2015-04-011-12/+62
|/ | | | | Bug: 19984798 Change-Id: Iff13cf03c4ce3141380f4d7ab4a2b1045c5ce747
* stagefright: don't use ALooperRoster mutex for reply handlingLajos Molnar2015-03-101-3/+3
| | | | | | | | Change replyID-s from uint32_t to an object Move reply handling into the loopers (to reuse a common mutex) Bug: 19607784 Change-Id: Iaa035b846c424c5687ed17ce1079b325e86c54be
* media: switch to new AMessage handlingLajos Molnar2015-03-051-23/+23
| | | | | Bug: 19607784 Change-Id: I94cddcb81f671422ad4982a23dc4acfe57a9f1aa
* mediaplayer: call setPlaybackRate after Renderer has looper set up.Wei Jia2015-03-041-4/+3
| | | | | Bug: 19196501 Change-Id: Iaac34a4a9e095799eb60e7d7a9bc228f0c7212b6
* mediaplayer: support dynamic playback rateWei Jia2015-02-241-0/+20
| | | | | | Bug: 19196501 Change-Id: I856b1507d5fa2cedfb645706d2435683a7d3e050
* Merge "reuse CCDecoder on video discontinuity" into lmp-mr1-devChong Zhang2015-02-041-1/+3
|\
| * reuse CCDecoder on video discontinuityChong Zhang2015-02-041-1/+3
| | | | | | | | | | bug: 19266084 Change-Id: I06ef57b09b048a85f77be4dee27599c4f60aacc9
* | NuPlayer: pause playback when buffering is lowChong Zhang2015-02-031-11/+58
|/ | | | | | | also fix buffering percentage report (should be the buffered position) bug: 18730095 Change-Id: I11e7ca4ba9e772a1ae76861ca1ff1725b62f65ae
* mark any copyrighted content as protected to disable captureChong Zhang2015-01-071-0/+4
| | | | | bug: 18916274 Change-Id: I23f096b51433bf18a10dc5fe6dc6b75c3881c340
* Merge "NuPlayer: send NOT_SEEKABLE media info to client when the source is ↵Wei Jia2014-12-151-0/+4
|\ | | | | | | not seekable." into lmp-mr1-dev
| * NuPlayer: send NOT_SEEKABLE media info to client when the source is not ↵Wei Jia2014-12-121-0/+4
| | | | | | | | | | | | | | | | | | seekable. LiveSession: return -1 for duration when it's not available. Bug: 18599325 Change-Id: Iecd040f48750806f98d1799e2aaab2f90c6f3887
* | mediaplayer: allow setVideoSurface before setDataSourceLajos Molnar2014-12-101-1/+1
|/ | | | | Bug: 18709604 Change-Id: I41e4734faed48b5583feb29896cd5783b8cd7e33
* Fix NuPlayer assertion on failure to create AudioTrackAndy Hung2014-12-031-24/+15
| | | | | | | | | | Under heavy media load or monkey/stress testing, more than 32 AudioTracks may be created or memory resources may be scarce. Remove the assertion on failure to create AudioTrack and signal MEDIA_ERROR. Bug: 17319843 Change-Id: I5d4e200b5f50d800046851a33e035cdc6ff10075
* notify seek complete upon first video output frameChong Zhang2014-12-011-18/+53
| | | | | Bug: 18541814 Change-Id: Ie4e0976885f26eb253460eab371cb181ea85f2db
* tunnel NuPlayer source and decoder inputChong Zhang2014-11-201-298/+63
| | | | | | Bug: 18342383 Change-Id: Ieff1cd3bad2b39d46f127ddd5d5139b919992461
* Merge "When aggregating buffers, make sure we don't lose data" into lmp-mr1-devMarco Nelissen2014-11-201-0/+6
|\
| * When aggregating buffers, make sure we don't lose dataMarco Nelissen2014-11-191-0/+6
| | | | | | | | | | Bug: 18277034 Change-Id: Ia8c35791eea88545a873cad339eb6b5fc25d1d97
* | mediaplayer: request auto-frc for high quality avsyncLajos Molnar2014-11-191-0/+13
| | | | | | | | | | Bug: 17383204 Change-Id: I7209305b4ff3c2386019d7a09d6a0536e9f21522
* | Merge "NuPlayer: open audio sink in offload mode when resuming from timeout ↵Ronghua Wu2014-11-191-5/+14
|\ \ | | | | | | | | | teardown." into lmp-mr1-dev
| * | NuPlayer: open audio sink in offload mode when resuming from timeout teardown.Ronghua Wu2014-11-181-5/+14
| |/ | | | | | | | | | | | | Also always recheck if a new stream can do offload. Bug: 18154425 Change-Id: I121877834bd963eeeba91a2b951fd30d5dc36a8b
* | NuPlayer: pass media time to selectTrack for responsivenessRobert Shih2014-11-191-2/+5
|/ | | | Bug: 18020001 Change-Id: Id50f8473992f39d8c0aa86a1fabb2601093d2572
* NuPlayer: tunnel decoder with renderer for data buffer passing.Wei Jia2014-11-141-74/+16
| | | | | | Bug: 18342383 Change-Id: I182928007814c146c01a86196c4fda1d46e74ea4
* AnotherPacketSource.cpp: Do not queue discontinity signal buffer resulted ↵Wei Jia2014-11-061-42/+35
| | | | | | | | | from seek. This will remove the unnecessary flush for seek. Bug: 17511837 Change-Id: I4b7acfc71a410372f5c630afb94b6a95d09d8974
* Merge "NuPlayer: merge start() and resume()." into lmp-mr1-devWei Jia2014-10-291-86/+87
|\
| * NuPlayer: merge start() and resume().Wei Jia2014-10-281-86/+87
| | | | | | | | | | | | | | NuPlayerDriver: allow seekTo called in STOPPED_AND_PREPARED state. Bug: 18127606 Change-Id: I92ff9f7e0a176c434202762d30966d8c4643d1ef
* | fix deep buffer logic in NuPlayer.Eric Laurent2014-10-281-1/+1
|/ | | | | | | | | | | Deep buffer output should be requested when there is no video track, not when there is one. Also make sure that the deep buffer flag is restored after a failure to offload audio decoding. Bug: 18114624. Change-Id: If3c04c784bc20d77926993ee475fbf961aeba7ae
* move audio sink open/close to NuPlayerRendererChong Zhang2014-10-161-121/+9
| | | | | Bug: 17675112 Change-Id: I7eb3d02380658f848baedafe2aea287586ccf016
* NuPlayer: query current position from NuPlayerRenderer.Ronghua Wu2014-10-131-28/+20
| | | | | Bug: 17653702 Change-Id: Ie0b1f92420b071a0cfcd389f5e7917a54d332541
* NuPlayer: wait for renderer flush before decoder shutdownAndy Hung2014-10-061-49/+52
| | | | | Bug: 17679341 Change-Id: Ie3883686891e7ee6fb45ceb01af1eb60b559d3a0
* NuPlayer: add audioDecoderStillNeeded.Ronghua Wu2014-10-031-3/+8
| | | | | Bug: 17752358 Change-Id: Ia3b3ee4df65e5564afd0723943d2d747f3a604af
* Merge "NuPlayer: don't restart AudioSink when torn down due to pause ↵Ronghua Wu2014-10-031-1/+10
|\ | | | | | | timeout." into lmp-dev