summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author David Zhao <qingxun@google.com> 2024-01-16 21:51:06 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-01-16 21:51:06 +0000
commitf1a66ac51af7d6b6bd5e9025f0cc9ce6972d50d4 (patch)
treea30ec5e83e2642e18ee8ff30622013312519b34c
parent213f29f80ae124c2159f8965c6a22ffa38d8b849 (diff)
parenta63090113eac4234b4db6c58270ab65dfeef5a6d (diff)
Merge "Add MPEG-2 TS Bundle Keys" into main
-rw-r--r--media/java/android/media/tv/TvTrackInfo.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/media/java/android/media/tv/TvTrackInfo.java b/media/java/android/media/tv/TvTrackInfo.java
index 78d7d7631145..2ebb19a7767e 100644
--- a/media/java/android/media/tv/TvTrackInfo.java
+++ b/media/java/android/media/tv/TvTrackInfo.java
@@ -55,6 +55,27 @@ public final class TvTrackInfo implements Parcelable {
*/
public static final int TYPE_SUBTITLE = 2;
+ /**
+ * The component tag identifies a component carried by a MPEG-2 TS.
+ *
+ * This corresponds to the component_tag in the component descriptor in the
+ * Elementary Stream loop of the stream in the Program Map Table
+ * (PMT) [EN 300 468], or undefined if the component is not carried in an
+ * MPEG-2 TS.
+ *
+ * @hide
+ */
+ public static final String EXTRA_BUNDLE_KEY_COMPONENT_TAG = "component_tag";
+
+ /**
+ * The MPEG Program ID (PID) of the component in the MPEG2-TS in
+ * which it is carried, or undefined if the component is not carried in an
+ * MPEG-2 TS.
+ *
+ * @hide
+ */
+ public static final String EXTRA_BUNDLE_KEY_PID = "pid";
+
private final int mType;
private final String mId;
private final String mLanguage;