summaryrefslogtreecommitdiffstats
path: root/media/jni/android_media_MediaDataSource.cpp
Commit message (Collapse)AuthorAgeFilesLines
* MediaDataSource: address API council commentsChong Zhang2015-05-141-5/+10
| | | | | | | | | | | | - throw IOExecption on fatal errors - add offset argument to readAt - and fix a crash in MediaExtractor bug: 21045118 bug: 21163225 Change-Id: I3c0ff42e539868b9374a4f1f3a9852143f68ba68
* Unhide the android.media.[Media]DataSource interface.Chris Watkins2015-04-151-0/+148
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: I6d9c1167b4a7384c469b1e928f31791a7ebed716