Index: media/base/pipeline.h |
diff --git a/media/base/pipeline.h b/media/base/pipeline.h |
index 0a909608b51f235d973703d5b7927b13b3c181cf..3fd7f6fe4ac1c2fdf26d78adb7a33844c63f8fac 100644 |
--- a/media/base/pipeline.h |
+++ b/media/base/pipeline.h |
@@ -12,6 +12,7 @@ |
#include "media/base/buffering_state.h" |
#include "media/base/cdm_context.h" |
#include "media/base/media_export.h" |
+#include "media/base/media_track.h" |
#include "media/base/pipeline_metadata.h" |
#include "media/base/pipeline_status.h" |
#include "media/base/ranges.h" |
@@ -75,6 +76,15 @@ class MEDIA_EXPORT Pipeline { |
Client* client, |
const PipelineStatusCB& seek_cb) = 0; |
+ // |enabledTrackIds| contains track ids of enabled audio tracks. |
+ virtual void OnEnabledAudioTracksChanged( |
+ const std::vector<MediaTrack::Id>& enabledTrackIds) = 0; |
+ |
+ // |trackId| either empty, which means no video track is selected, or contain |
+ // one element - the selected video track id. |
+ virtual void OnSelectedVideoTrackChanged( |
+ const std::vector<MediaTrack::Id>& selectedTrackId) = 0; |
+ |
// Stops the pipeline. This is a blocking function. |
// If the pipeline is started, it must be stopped before destroying it. |
// It it permissible to call Stop() at any point during the lifetime of the |