summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/GenericSource.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge "close fd if data source is reset without prepare" into lmp-mr1-devChong Zhang2014-11-201-1/+7
|\
| * close fd if data source is reset without prepareChong Zhang2014-11-191-1/+7
| | | | | | | | | | bug: 18434887 Change-Id: I70dff721710b7299d1ca1f8520278f82d355141d
* | NuPlayer: pass media time to selectTrack for responsivenessRobert Shih2014-11-191-3/+23
|/ | | | Bug: 18020001 Change-Id: Id50f8473992f39d8c0aa86a1fabb2601093d2572
* Merge "GenericSource: add mVideoLastDequeueTimeUs/mAudioLastDequeueTimeUs" ↵Robert Shih2014-11-101-11/+16
|\ | | | | | | into lmp-mr1-dev
| * GenericSource: add mVideoLastDequeueTimeUs/mAudioLastDequeueTimeUsRobert Shih2014-11-101-11/+16
| | | | | | | | Bug: 18296874 Change-Id: I9608523b4cc37e6cf8b91fb1407035aac087796b
* | AnotherPacketSource.cpp: Do not queue discontinity signal buffer resulted ↵Wei Jia2014-11-061-5/+3
|/ | | | | | | | | from seek. This will remove the unnecessary flush for seek. Bug: 17511837 Change-Id: I4b7acfc71a410372f5c630afb94b6a95d09d8974
* Merge "NuPlayer: Fix flush mode decoder error handling" into lmp-devAndy Hung2014-10-021-0/+31
|\
| * NuPlayer: Fix flush mode decoder error handlingAndy Hung2014-10-011-0/+31
| | | | | | | | | | | | | | | | | | | | Explicitly handle each flush mode upon decoder error. Do not clear out affected decoder immediately. Alter logcat messages for better diagnostics. Bug: 17638878 Bug: 17679341 Change-Id: I219796c04d65d7c4dd61c0d4f99f9f580241a68b
* | GenericSource: support disconnect before NuCachedSource2 is createdRobert Shih2014-10-011-2/+20
|/ | | | | Bug: 17672488 Change-Id: I96776c9679fdcfbe9a442c86447c59802b1465ac
* Fix Widevine classic playback errors with NuPlayerJeff Tinker2014-09-241-1/+8
| | | | | bug: 17589961 Change-Id: If16c61b90cf92caa89eecd66aabef5813fd7619b
* Merge "MediaBuffer: ABuffer will release MediaBuffer when it's destructed." ↵Wei Jia2014-09-221-1/+1
|\ | | | | | | into lmp-dev
| * MediaBuffer: ABuffer will release MediaBuffer when it's destructed.Wei Jia2014-09-191-1/+1
| | | | | | | | | | Bug: 17454455 Change-Id: Ia423bcc2e1fa39137f114eac44912ed15357bb99
* | Make prepare properly report failure againMarco Nelissen2014-09-191-1/+6
| | | | | | | | | | | | Bug: 17583084 Bug: 17548451 Change-Id: I759d28eaafb520c206d54740c2c0a857b534d23c
* | Merge "Add support for ANDROID_LOOP to NuPlayer" into lmp-devMarco Nelissen2014-09-171-3/+7
|\ \
| * | Add support for ANDROID_LOOP to NuPlayerMarco Nelissen2014-09-171-3/+7
| |/ | | | | | | | | Bug: 17518139 Change-Id: I9355ddd4c998d967013dd8bd32d670a9a83dea31
* | mediaplayer: reset flags when pre-reading multiple buffersMarco Nelissen2014-09-161-0/+2
| | | | | | | | | | Bug: 17521470 Change-Id: I15ee9b1d3dd4ad29f4961a642f7fadafd9fe5b24
* | Merge "Disconnect HTTP-based data source upon reset" into lmp-devChong Zhang2014-09-161-0/+9
|\ \
| * | Disconnect HTTP-based data source upon resetChong Zhang2014-09-161-0/+9
| | | | | | | | | | | | | | | | | | Bug: 17425250 Change-Id: Ieb4c93fd9848489f9dbf35a36474376924fd8eb9
* | | GenericSource: fix selectTrack parameterRobert Shih2014-09-161-1/+1
| |/ |/| | | | | | | Bug: 17512187 Change-Id: I19a0915fb0fb1b1ae036bf5df85b9c9e7657a7ea
* | Merge "mediaplayer: optimize buffer queue management" into lmp-devPhil Burk2014-09-151-2/+4
|\ \ | |/ |/|
| * mediaplayer: optimize buffer queue managementPhil Burk2014-09-121-2/+4
| | | | | | | | | | | | | | | | | | | | Various changes for power consumption including: Restrict the number of messages in flight. Buffer more frames in the GenericSource so reads occur in a burst. Bug: 15094301 Change-Id: I783481fd91f3fdd445b95e88ab82178f649f1a38 Signed-off-by: Phil Burk <philburk@google.com>
* | Merge "GenericSource: move track packet init from start to prepare" into lmp-devRobert Shih2014-09-121-4/+4
|\ \ | |/ |/|
| * GenericSource: move track packet init from start to prepareRobert Shih2014-09-111-4/+4
| | | | | | | | | | Bug: 17244704 Change-Id: I15eba0e4d2a178cc0ba46bbc17be0e6d95e76935
* | avoid kWhatReadBuffer message spam in GenericSourceLajos Molnar2014-09-111-4/+17
|/ | | | | | | | When playig WVM video, an extra readBuffer is posted for each dequeueAccessUnit, resulting in an unbounded number of messages. Bug: 17472979 Change-Id: Ice92ccf2454bf7a70856a4a8b535cefffc9e61ac
* GenericSource: refactor track selection for dedicated looperRobert Shih2014-09-031-16/+170
| | | | | | | | | | | - move getFormatMeta, getSelectedTrack, selectTrack, and seekTo to dedicated looper - start & dequeueAccessUnit posts readBuffer requests instead of reading directly - call internal doGetFormatMeta in onPrepareAsync Bug: 16892748 Change-Id: I5d5e34381f1dfceca655c52a201627b53454ad22
* Merge "GenericSource: set DRM playback status." into lmp-devRonghua Wu2014-08-301-0/+73
|\
| * GenericSource: set DRM playback status.Ronghua Wu2014-08-291-0/+73
| | | | | | | | | | Bug: 17307158 Change-Id: I36b801a9b67831b618930cf1241756bb9644b4fd
* | Merge "do string compare with mime immediately after we get the value" into ↵Chong Zhang2014-08-261-2/+6
|\ \ | |/ |/| | | lmp-dev
| * do string compare with mime immediately after we get the valueChong Zhang2014-08-261-2/+6
| | | | | | | | | | Bug: 17210803 Change-Id: I4d20dd4b95d18251c18a371bd8f89b1320b38879
* | add buffering update to GenericSourceChong Zhang2014-08-221-6/+92
| | | | | | | | | | | | Bug: 17182378 Change-Id: Ib86f3f522d7ea635489edd2b512adb7f4b27e381
* | move cache prefill to GenericSource's message handlerChong Zhang2014-08-211-24/+123
|/ | | | | | | | | | | | This allows prepareAsync to be terminated by reset promptly. It also makes it easier to do buffer update as GenericSource can access the cache status now. Bug: 16892748 Bug: 17182378 Change-Id: Ia55c04a810fd805041cb2025f6739afa5120b5ed
* use dedicated looper for GenericSourceChong Zhang2014-08-141-0/+22
| | | | | | | | | | | | | | | | - handle setVideoSurface in deferred action, and return to client immediately - handle GenericSource's prepareAsync on its own looper, instead of sharing looper with NuPlayer - let HTTPLiveSource share looper with LiveSession, instead of NuPlayer - remove reflector in RTSPSource Bug: 16892748 Change-Id: I1aed557320052012065f5a90adbcb03c238da988
* some clean up of video size change notificationChong Zhang2014-08-081-7/+1
| | | | | | | | need to consider rotation when notifying video size change after initial prepare, in addition to after an output format change. Bug: 16870964 Change-Id: Icd1c9e901ac932e720ce95b8a983c0edcf251c35
* delay data source creation for GenericSource prepare timeChong Zhang2014-08-081-15/+65
| | | | | | Bug: 16708180 Change-Id: I9d578ef5e2edaed50279d28d3831c68556468f39
* Merge "httplive: timestamp reporting, track selection" into lmp-devRobert Shih2014-08-061-1/+1
|\
| * httplive: timestamp reporting, track selectionRobert Shih2014-08-051-1/+1
| | | | | | | | | | | | | | Bug: 15153976 Bug: 15763638 Bug: 16351654 Change-Id: I4462276d4b7342647286a0ca4be11692ce52ff6d
* | some fixes for crash when extractor creation failsChong Zhang2014-08-061-27/+33
| | | | | | | | | | | | | | | | | | | | - prefetch data for sniffing - notify error instead of crashing if extractor is NULL Bug: 16818302 Change-Id: I56ff4996d99ac2811d19d141f7ff7acdd7c1da17
* | set secure flag for secure file playbackChong Zhang2014-08-051-1/+12
| | | | | | | | | | Bug: 16786456 Change-Id: I06f18b0e9c3f65e3e127369baa1f9ea8c9307762
* | GenericSource: timed text supportLajos Molnar2014-07-311-77/+186
|/ | | | | Bug: 16385674 Change-Id: Ib322cc13488dcadf2409921272cd469304b0af37
* GenericSource: support track (de)selectionRobert Shih2014-07-311-61/+298
| | | | | | Bug: 15153976 Change-Id: Idfce856b4ca5fa7853da857757490798bc3ffe1e
* mediaplayerservice: initialize mIsWidevineLajos Molnar2014-07-311-1/+2
| | | | | Bug: 16641557 Change-Id: I77aad6e710117a16093726bf3b36360904fbe148
* Revert GenericSource track selection changesWei Jia2014-07-301-407/+61
| | | | | | | | This reverts commit bace25b0fbcd5101d2db288b0c70c4a239f0e815. This reverts commit eb1735e343a93830df259ae8882160bb0d79dcb5. This reverts commit 05312bc7478feec11d9ae88e951c0857a7a3f28d. Bug: 16660839
* GenericSource: start/stop tracks correctly on selectionRobert Shih2014-07-281-1/+11
| | | | Change-Id: I10343151f930a4ab778a6d2574ab5165af2013ba
* GenericSource: timed text supportRobert Shih2014-07-251-73/+182
| | | | | Bug: 16385674 Change-Id: I954cc463b55af4b93c6a6e714115db4fda729dc8
* GenericSource: support track (de)selectionRobert Shih2014-07-221-63/+290
| | | | | Bug: 15153976 Change-Id: I522b1f9f0ffedf4edbea03a6654a6dbc0262860a
* nuplayer: add widevine support to GenericSourceLajos Molnar2014-07-171-10/+67
| | | | | Bug: 15699665 Change-Id: Ided823bd0b1118bbabb288cf62d6389518f820a9
* GenericSource: implement getTrackCount/getTrackInfoRobert Shih2014-07-161-3/+56
| | | | | Bug: 15153976 Change-Id: I0204c4188d485cda026497469c7cde24f7bd5c95
* HLS: do not discard packets when queuing explicit discontinuityChong Zhang2014-06-261-2/+6
| | | | | | | | | | | in case of explicit discontinuity (#EXT-X-DISCONTINUITY tag in the playlist), do not discard packets that's already queued. (when seeking, the old fetcher will be discarded so this won't affect seeking case.) Bug: 15020526 Change-Id: I5d3fc489df35e3bc44acb1ee7851571cb99cb56b
* Parse trex and mehd boxesMarco Nelissen2014-06-231-0/+8
| | | | | | | | | | | | Also get duration from mvhd if available, use that in addition to track durations to determine total length of file, clear track header struct so we don't read uninitialized garbage from it, and take composition time offset into account for proper ordering when B frames are used. b/15669839 Change-Id: Ibf3e35b5c7299bac11d0e78a391545fc325dd2d0
* Remove no longer needed http proxy handling code, it's obsolete nowAndreas Huber2014-02-051-3/+1
| | | | | | | | since we started to use java's HTTPConnection instead of the native implementation. Also remove other remnants of the previous http implementation, such as accounting for the http user's uid. Change-Id: I60bfd31381ea40d2220db587ec5c433093b60034