summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/nuplayer/HTTPLiveSource.cpp
Commit message (Collapse)AuthorAgeFilesLines
* httplive: Ignore seek request for livestreamingSanthosh Behara2015-10-061-1/+5
| | | | | | | Check added in HTTPLiveSource to throw error if seek is called in live streaming usecase. Change-Id: I1d478ea506734bd9b6bbfba4f04649be398f3c7a
* NuPlayer: Add support for getFormatMeta for HLSPreetam Singh Ranawat2015-10-061-0/+15
| | | | | | | | | | | HTTPLiveSource does not support getFormatMeta API. Because of this, offloading is not possible as offloading requires access to format info. Fix this by implementing getFormatMeta API for HLS use cases. CRs-Fixed: 780001 Change-Id: Ia5121892efe4c7ee534f7220c6f33ff9100f0402
* HTTPLiveSource: fix non timed id3 track selectionRobert Shih2015-05-151-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | Non timed id3 track selection generates INVALID_OPERATION when performed on the last track. The buggy logic reads: if (not last track) { // non-timed-id3 related work } else if (has timed id3) { // timed id3 related work } // last track but non timed id3 not handled It should read: if (has no timed id3 || not last track) { // non-timed-id3 track related work } else { // timed id3 related work } Bug: 21195284 Change-Id: I2ddb5d8e2a1ecba4cc071c7ee14c6697fe8e220d
* stagefright: initial timed id3 support in hlsRobert Shih2015-04-161-30/+110
| | | | Change-Id: I00a8a786b3f4b74742c34770edd94e937abe20a8
* HLS: faster switching and pause/resume on low bufferChong Zhang2015-03-271-0/+28
| | | | | | | | | | | | | | | | | | | | | - when upswitching, discard excessive buffering on low bandwidth variant, switch to new variant earlier - when downswitching, report newly found IDR positions continuously, and switch as soon as new fetcher passes playback position. This allows us to skip time-consuming resumeUntil() of old fetcher most of the time - implement pause/resume on low buffering, and notify buffering percentage - buffering parameter tuning, separate pause/resume/ready buffer level and up/down switch buffer level, boost up fetcher buffering significantly bug: 19567254 Change-Id: I750dfcc6f861d78d16a71f501beb86d8129cb048
* media: switch to new AMessage handlingLajos Molnar2015-03-051-2/+2
| | | | | Bug: 19607784 Change-Id: I94cddcb81f671422ad4982a23dc4acfe57a9f1aa
* NuPlayer: pass media time to selectTrack for responsivenessRobert Shih2014-11-191-1/+1
| | | | Bug: 18020001 Change-Id: Id50f8473992f39d8c0aa86a1fabb2601093d2572
* Merge "NuPlayer HTTPLiveSource: impl getSelectedTrack" into lmp-mr1-devRobert Shih2014-11-171-0/+8
|\
| * NuPlayer HTTPLiveSource: impl getSelectedTrackRobert Shih2014-11-061-0/+8
| | | | | | | | | | Bug: 17514665 Change-Id: I81c62553f2c5acb4d2436a9d8f04c10fdbe315d0
* | HTTPLiveSource: NULL check in getFormatRobert Shih2014-11-081-0/+4
|/ | | | Bug: 18297916 Change-Id: I14c5de8d28202ee1b68e369d33e01bd26dbe968d
* use dedicated looper for GenericSourceChong Zhang2014-08-141-4/+11
| | | | | | | | | | | | | | | | - 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-2/+2
| | | | | | | | 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
* refactor getTrackInfo()Chong Zhang2014-06-131-2/+6
| | | | | | | | | | | | | (this is in preparation for supporting other cc source) - split into two methods: getTrackCount() and getTrackInfo() - move track info parcelling to NuPlayer - parcel in the mime type of the subtitle format Bug: 15470448 Change-Id: If00724d8c3a2b2319cb9c5f29d3fe76347bfe947
* warnings be gone.Andreas Huber2014-02-111-1/+1
| | | | Change-Id: Ie3bae3f037730e316d7fca12e7a3527973f752ef
* Remove no longer needed http proxy handling code, it's obsolete nowAndreas Huber2014-02-051-7/+2
| | | | | | | | 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
* FINAL ATTEMPT: HTTP services are now provided from JAVA and made available ↵Andreas Huber2014-02-041-0/+4
| | | | | | to media code Change-Id: I9f74a86e70422187c9cf0ca1318a29019700192d
* Notify current video size if availableMarco Nelissen2013-11-011-1/+10
| | | | | | b/11248101 Change-Id: I0fa3b5592efcf400c86692002267da6825e331ad
* MediaPlayer: add listener for raw track dataChong Zhang2013-08-191-1/+57
| | | | | | Bug: 10326117 Change-Id: I2c0bdf8adc67b11f8dc633423bee66897548f181
* New HLS implementation supporting independent stream sources, audio-only streamsAndreas Huber2013-05-311-95/+45
| | | | | | and more. Change-Id: Icfc45a0100243b2f7a14a9e65696be45b67d6495
* HLS now properly publishes its "seekable" flags after connectionAndreas Huber2013-02-061-17/+57
| | | | | | | has successfully completed and a sufficient amount of data fetched, and only then signals that preparation is completed. Change-Id: I7684a14238b826909f518f2af506966e522dfcfc
* Support for a "preparation" state that can take care of lengthyAndreas Huber2013-02-051-14/+21
| | | | | | | operations in NuPlayer and its sources. Sources also can publish their flags now and the mediaplayer UI will be able to pick up on these. Change-Id: I4f2b7e5d105dcb4b6c9132cd0e8799efa0c6a14b
* Groundwork to support bidirectional, asynchronous communicationAndreas Huber2013-02-051-1/+3
| | | | | | between NuPlayer and its sources. Change-Id: I1989022d806206b926555add3aa5c1fcf37aa78d
* Add support for HLS playlists of type 'event'.Andreas Huber2012-11-271-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | related-to-bug: 6870049 Squashed commit of the following: commit eee2f3ba6bb7335f4e285632726db85645669929 Author: Andreas Huber <andih@google.com> Date: Tue Nov 27 15:02:01 2012 -0800 Make everything a lot less verbose by default. Change-Id: I884d7a7901aa1e7d4ff590f065ca57a79d2af8b3 commit 6bbdb837ed5bd88008e45efb8faf595e4051ba26 Author: Andreas Huber <andih@google.com> Date: Tue Nov 27 14:34:46 2012 -0800 HLS now properly signals media time changes at discontinuities including the start of playback (which may not necessarily be at time 0 if the playlist is of type 'event' and hasn't completed yet). Change-Id: I5ab747d024f9b8d0df72a4e06a12ebb29f62802e commit 1555589832b1878a144a976a643e1af4d61f877c Author: Andreas Huber <andih@google.com> Date: Tue Nov 27 14:32:28 2012 -0800 As part of a time discontinuity, clients of IStreamListener can now signal the corresponding media time after the discontinuity, i.e. the first PTS timestamp following the discontinuity will be considered equivalent to the specified media time and media buffers timestamped accordingly. Change-Id: Id7db7679b7faa6efd6270620ff52e34e884f3e92 commit 5c24c605c073a11c426d025b1e7478fc1ad8365a Author: Andreas Huber <andih@google.com> Date: Tue Nov 27 13:00:56 2012 -0800 NuPlayer sources now expose flags() and can announce that duration may change (increase) dynamically, in which case duration will be polled at 1 second intervals and communicated to the upper layers. Change-Id: I45102909b7a19eed0dda576747e3814d742a0eea commit ecb71de8e281e61971a2cd73e7161a97540bc357 Author: Andreas Huber <andih@google.com> Date: Tue Nov 27 12:57:47 2012 -0800 Stop caching duration in MediaPlayer, duration could increase dynamically. Change-Id: I7bb2f16c0abe49debdf45c776d2266aa069d7791 commit 544aec5823e6d7a3e97e15b6b23546616bcd343e Author: Andreas Huber <andih@google.com> Date: Tue Nov 27 08:46:28 2012 -0800 An attempt to add support for "event" style HLS playlists. Change-Id: I3dfb2e801ecaff8f5d8bdb3a4fca1b18aeeb2c60 Change-Id: I48cf7f65a654d33f2f49ded74f8be22aed9e3b98
* experimental support for fragmented mp4 playback in nuplayerAndreas Huber2012-08-031-1/+1
| | | | | | cherry picked from change 170999 Change-Id: I407775f0290154ad4961134839a15c9f296424c0
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-1/+1
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
* Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGESteve Block2012-01-041-2/+2
| | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
* Signal an appropriate error even if there are no active streams yet.Andreas Huber2011-09-271-9/+9
| | | | | Change-Id: I3ac1053ad288558b62ee18056dfd0a9ce0da8f49 related-to-bug: 5372901
* Propagate error signalled by the source all the way to the output EOS ↵Andreas Huber2011-09-261-1/+5
| | | | | | | notification. Change-Id: I30e959a6d669f09745c59fbdebee08f869511cf7 related-to-bug: 5372901
* I have one HLS stream that switches stream PIDs from one bandwidth to the nextAndreas Huber2011-08-311-1/+8
| | | | | | | this change intends to support its very limited case and signals an error in all other cases of unexpected PID changes that we cannot recover from. Change-Id: Icbfdf9fe7461969e2a8781ed416f54d891dd789a
* Fix seek behaviour at startup and teardown of media session that hasn't been ↵Andreas Huber2011-07-151-2/+4
| | | | | | | | started Nuplayer specific. Change-Id: I7b0be52c29bdb7032414d63c503d686df7844bf6
* Charge network traffic to the uid of the process using the MediaPlayer.Andreas Huber2011-07-011-2/+6
| | | | | Change-Id: I2bcb54b8232afd3fc7ee16289f37c7a7b3f23067 related-to-bug: 4517282
* Support mpeg1,2 audio and mpeg1,2,4 video content extraction from .ts streams.Andreas Huber2011-05-251-2/+2
| | | | Change-Id: I9d2ee63495f161e30daba7c3aab16cb9d8ced6a5
* Add extra headers specified in the media player's setDataSource callAndreas Huber2011-04-201-3/+18
| | | | | | | to all http requests made by the http live implementation. Change-Id: I9dd78bb261bc678ea98c82009ca2634b74f3cd58 related-to-bug: 4315346
* Allow optional specification of a PTS timestamp when signalling a discontinuity.Andreas Huber2011-03-021-1/+3
| | | | | | | If present, rendering will be suppressed until reaching the timestamp. Change-Id: Ic64bdf4225063c5a4d042ea9809960b843a46d19 related-to-bug: 3489454
* Suppress the logging of URLs when in incognito mode.Andreas Huber2011-02-241-2/+5
| | | | | Change-Id: Ib951b495eae15669e160ef54686eab0eeb9b366a related-to-bug: 3336575
* Some more fixes regarding HTTP live in NuPlayer.Andreas Huber2011-01-051-1/+1
| | | | Change-Id: I9e29615fa8ee6c7bd4189373a75c20caef3fd2b1
* Seek/Duration support for completed http live streams in NuPlayer.Andreas Huber2011-01-051-0/+20
| | | | | Change-Id: I55bbe75d87140c07b1927d14ad24130fce803463 related-to-bug: 3321475
* Properly shutdown the decoders on a reset() in NuPlayer's implementation.Andreas Huber2011-01-041-1/+1
| | | | | related-to-bug: 3321470 Change-Id: Ida6d2171c5a3a407188d4633602b764f8fe7086a
* Squashed commit of the following:Andreas Huber2010-12-231-0/+132
commit eaeaa2672d4e0a82891493b2bde8bdd0c0e79a1b Author: Andreas Huber <andih@google.com> Date: Thu Dec 23 10:26:48 2010 -0800 Remove lowest bandwidth stream if using the legacy player. Change-Id: I2f885e26344996de9152f8fda9fd6bdef89bf953 commit 7d652972615b2750fd8f1c21b9fab0e136df2b82 Author: Andreas Huber <andih@google.com> Date: Thu Dec 23 10:14:36 2010 -0800 Don't clear the packet source's format for legacy discontinuities. Change-Id: I9bd5a21b9bd28043ad38bd0658ccc8eda3c1079a commit 2b18a45aac17cbfe1aa089d0f6510957d438dd64 Author: Andreas Huber <andih@google.com> Date: Thu Dec 23 10:13:55 2010 -0800 Use NuPlayer for HTTP live streaming based on runtime property. adb shell setprop media.httplive.enable-nuplayer true Change-Id: I22738df3403985dc8e6992b1ab5da5747309f773 commit 50d899fb7b9ea52c3994b0a58e993998d926aeed Author: Andreas Huber <andih@google.com> Date: Wed Dec 22 16:25:22 2010 -0800 Make ACodec a lot less verbose. Change-Id: I94c7e499b61032321ffaf999f5ad2c913cde6a48 commit b19e1740cb4d02990a56844654b5d019987c6405 Author: Andreas Huber <andih@google.com> Date: Wed Dec 22 16:22:22 2010 -0800 Wait until we have fresh codec-specific-data before instantiating the decoders after a discontinuity involving a format change. Change-Id: I7bcf9b5ae3319f08bf8978a117e8ee5220902e37 commit 06428c006906c9099e430aface3b439ff1d36ecc Author: Andreas Huber <andih@google.com> Date: Wed Dec 22 15:20:38 2010 -0800 Disable random seeks in the streaming tool for now. Change-Id: Ie86fde422dcfc4b2c7a01be51a193fda9c88cd71 commit e19db68f3bea8a61c191f60f6940f30e3a0d5f1b Author: Andreas Huber <andih@google.com> Date: Wed Dec 22 15:20:27 2010 -0800 Tweak HTTP live parameters. Change-Id: If4b71e12485facc523a8a43d8213d0feb190daab commit 1e9942791538c2256b579d96c6c04264b0d8b087 Author: Andreas Huber <andih@google.com> Date: Wed Dec 22 14:48:23 2010 -0800 Enable http live streaming through NuPlayer for http URLs containing the string m3u8 Change-Id: I1691fe12ae8f1507fe3673313959cd50bc324624 commit 4c33f96a6e499ee0efe0e70b687094430cb7c1c0 Author: Andreas Huber <andih@google.com> Date: Wed Dec 22 14:40:27 2010 -0800 Support for HTTP live streaming in NuPlayer. Change-Id: Iacba1c3ebaeb8d3b972185deaf4cff18c8009c54 commit ddf705ce553708bc5b13d89a878484cf839bd674 Author: Andreas Huber <andih@google.com> Date: Wed Dec 22 13:42:47 2010 -0800 StreamingSource now a subclass of abstract NuPlayer::Source Change-Id: Ia6c7c639628910b9d1f37decc55da48b07a70de3 commit 9e04a8406b1882a8e3fdeb7b4d52db5ae70b970a Author: Andreas Huber <andih@google.com> Date: Wed Dec 22 13:33:52 2010 -0800 Refactor media data sourcing to NuPlayer::Source. Change-Id: I1db9fb08c4e527bf7b19c29978cf342c2b0a0bc9 Change-Id: I9610a097481dda58f22142eacda3ac2dba0b63f9