summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/HTTPBase.cpp
Commit message (Collapse)AuthorAgeFilesLines
* stagefright: warnings be gone, some are now errors, use clangLajos Molnar2015-04-171-2/+2
| | | | Change-Id: I81f438ae444f04c12ae27ae4ef6d073033de172c
* do not do bandwidth estimation if total data downloaded is too smallChong Zhang2015-03-091-1/+5
| | | | | | bug: 19656539 Change-Id: I0ab9baad31e8953224a37d5aaf816e44780191c0
* stagefright: httplive: Decouple block size from bandwidth estimateLeena Winterrowd2015-01-281-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | A very small block size in PlaylistFetcher can lead to framework overhead and difficulty streaming high bitrate content, but since HTTPBase keeps a constant history of the past 100 HTTP reads, the block size directly affects bandwidth estimation and in turn, switching latency. Add setBandwidthHistorySize() to HTTPBase to allow setting the history size for bandwidth estimation. Call this within LiveSession based on the current block size to ensure that the number of bytes used for estimating bandwidth does not change if the block size is changed in PlaylistFetcher. Since a single TCP/IP packet can contain up to 64k of data, increase the block size in PlaylistFetcher from 2k to lcm(188, 1024) or 47k to avoid inaccuracies in read timings due to up to a comparable 47 reads from the same locally-cached packet instead of from the network. Also make HTTPBase::addBandwidthMeasurement() virtual to allow bandwidth estimation extensions that do not rely on a history list. Bug: 18821145 Change-Id: I5f957be01f5346e74cfb7eeb150ca4b397ad5798
* Revert "HLS: QCom enhancements"Lajos Molnar2015-01-281-7/+2
| | | | | | | | | This is to restore patch attributions This reverts commit f580806d893c4631f5324ff0af5c2db68a40ef42. Bug: 18821145 Change-Id: Idc49385fffccfde2a3915388fe3fe4e2b740d787
* HLS: QCom enhancementsRobert Shih2014-12-221-2/+7
| | | | | | | | | | | | | | | This commit consists of: http://go/pag/c/188753 Add NULL check for empty playlist http://go/pag/c/188754 Fix deadlock for low duration clips http://go/pag/c/188757 Create a copy of last enqueued metadata http://go/pag/c/188755 Propagate target duration to LiveSession http://go/pag/c/188762 Decouple block size from bandwidth estimate http://go/pag/c/188756 Reduce memcpy calls for chunked content http://go/pag/c/188758 Dont resume if we have almost fetched till stop time Bug: 18821145 Change-Id: I7fd650999c6c50bbadffd65adee9020e669dfe62
* Use a better and more direct API to mark a socket as if it were a user's.Sreeram Ramachandran2014-07-111-2/+2
| | | | Change-Id: If525ee259b74314191d1913f7c2a3e828e05c38f
* Remove no longer needed http proxy handling code, it's obsolete nowAndreas Huber2014-02-051-32/+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
* FINAL ATTEMPT: HTTP services are now provided from JAVA and made available ↵Andreas Huber2014-02-041-15/+0
| | | | | | to media code Change-Id: I9f74a86e70422187c9cf0ca1318a29019700192d
* Add routing sockets for the requesting userChad Brubaker2013-07-191-0/+12
| | | | | | | Mediaserver sockets are now routed as if the connection was in the requesting app in per user routing. Change-Id: I60f4649c3c4145a65264b54c1aa2c6c7741efaba
* Update HTTP proxy configuration for all media playback inside stagefright.Andreas Huber2013-05-311-0/+10
| | | | | | Change-Id: Ie0dd00045aba668d8b49da73224e7a7c9c04f69b related-to-bug: 8873723 (cherry picked from commit 2704965b8a1ff3b7450ff58ccecf86d8ec688c40)
* libstagefright: dynamically load libstagefright_chromium_httpColin Cross2012-06-151-2/+5
| | | | | | | dlopen libstagefright_chromium_http to allow it to be on the platform side of the pdk without getting overwritten during a pdk fusion build. Change-Id: I391e81d98beab165c3313bc8a71bb370ebb8584d
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-3/+3
| | | | | | | 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-1/+1
| | | | | | | See https://android-git.corp.google.com/g/156801 Bug: 5449033 Change-Id: Ib08fe86d23db91ee153e9f91a99a35c42b9208ea
* Network traffic accounting for chromium stack support in mediaserver.Ashish Sharma2011-08-051-4/+15
| | | | | | | - Atribute network activity to uid calling the mediaplayer - Enables logging of chromium network stack in logcat Change-Id: I2d28c8392248a056b3cee305dd4d4475ebba4337
* Remove legacy http support from stagefright, chromium is the new hotness.Andreas Huber2011-07-131-7/+12
| | | | Change-Id: I6725d42d38b91e6a1cbca43174870f445aeb3d99
* Charge network traffic to the uid of the process using the MediaPlayer.Andreas Huber2011-07-011-1/+17
| | | | | Change-Id: I2bcb54b8232afd3fc7ee16289f37c7a7b3f23067 related-to-bug: 4517282
* Send estimated bandwidth value as informational event when cache fetcher pausesJames Dong2011-05-311-1/+78
| | | | | | | | | | o Application can make informed decision about the available network bandwidth when cache fetcher pauses. o Application can also adjust how frequently the bandwidth is estimated within a range from one second to one minute. Change-Id: I90068001343e79da1886de03c565537787e1580b
* Only use ChromiumHTTPDataSource if webkit was built with chromium support.Andreas Huber2011-03-111-1/+7
| | | | Change-Id: I9ce16f4aae35c61c9fb92fefc2a7c72537631cba
* An HTTP datasource for stagefright using the chromium code.Andreas Huber2011-03-091-0/+39
Use of this new datasource is now the default unless overwritten by adb shell setprop media.stagefright.use-chromium false Change-Id: I156a8eb9a1fff1cb537b4aec6cf3e8e6052be81e