summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorGloria Wang <gwang@google.com>2011-05-25 20:11:25 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-05-25 20:11:25 -0700
commit98472cced0a66318a89ffe485bbebb80034f12be (patch)
treebd193ac1d94ba546af119390556aa96120a2e5b3 /media/java
parentf9f01008624e2d28c15a90d942fa36f98c8c967d (diff)
parent13bc8cde1c842bea1fa3000a48739a6e22f25a9c (diff)
downloadframeworks_base-98472cced0a66318a89ffe485bbebb80034f12be.zip
frameworks_base-98472cced0a66318a89ffe485bbebb80034f12be.tar.gz
frameworks_base-98472cced0a66318a89ffe485bbebb80034f12be.tar.bz2
Merge "For out of band timed text support (timed text in a separate file)."
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/MediaPlayer.java20
1 files changed, 16 insertions, 4 deletions
diff --git a/media/java/android/media/MediaPlayer.java b/media/java/android/media/MediaPlayer.java
index 0e161a8..8f7dd60 100644
--- a/media/java/android/media/MediaPlayer.java
+++ b/media/java/android/media/MediaPlayer.java
@@ -1253,14 +1253,26 @@ public class MediaPlayer
*/
public native void attachAuxEffect(int effectId);
- /* Do not change these values without updating their counterparts
- * in include/media/mediaplayer.h!
+ /* Do not change these values (starting with KEY_PARAMETER) without updating
+ * their counterparts in include/media/mediaplayer.h!
*/
- /**
+ /*
* Key used in setParameter method.
- * Indicates the index of the timed text track to be enabled/disabled
+ * Indicates the index of the timed text track to be enabled/disabled.
+ * The index includes both the in-band and out-of-band timed text.
+ * The index should start from in-band text if any. Application can retrieve the number
+ * of in-band text tracks by using MediaMetadataRetriever::extractMetadata().
+ * Note it might take a few hundred ms to scan an out-of-band text file
+ * before displaying it.
*/
private static final int KEY_PARAMETER_TIMED_TEXT_TRACK_INDEX = 1000;
+ /*
+ * Key used in setParameter method.
+ * Used to add out-of-band timed text source path.
+ * Application can add multiple text sources by calling setParameter() with
+ * KEY_PARAMETER_TIMED_TEXT_ADD_OUT_OF_BAND_SOURCE multiple times.
+ */
+ private static final int KEY_PARAMETER_TIMED_TEXT_ADD_OUT_OF_BAND_SOURCE = 1001;
/**
* Sets the parameter indicated by key.