Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(914)

Unified Diff: third_party/WebKit/Source/modules/mediasource/SourceBuffer.h

Issue 1659653002: Pass MSE media track info from ChunkDemuxer to blink::SourceBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use-media-tracks-in-media
Patch Set: nit Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/mediasource/SourceBuffer.h
diff --git a/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h b/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h
index c424e05d3ffb0141d975318b30dd2822c6662be2..baa22e3470961b191e2b530b339d1866e181cec3 100644
--- a/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h
+++ b/third_party/WebKit/Source/modules/mediasource/SourceBuffer.h
@@ -44,6 +44,7 @@
namespace blink {
+class AudioTrackList;
class DOMArrayBuffer;
class DOMArrayBufferView;
class ExceptionState;
@@ -52,6 +53,7 @@ class GenericEventQueue;
class MediaSource;
class Stream;
class TimeRanges;
+class VideoTrackList;
class WebSourceBuffer;
class SourceBuffer final
@@ -90,6 +92,9 @@ public:
TrackDefaultList* trackDefaults() const { return m_trackDefaults.get(); }
void setTrackDefaults(TrackDefaultList*, ExceptionState&);
+ AudioTrackList& audioTracks();
+ VideoTrackList& videoTracks();
+
void abortIfUpdating();
void removedFromMediaSource();
@@ -106,7 +111,7 @@ public:
const AtomicString& interfaceName() const override;
// WebSourceBufferClient interface
- void initializationSegmentReceived() override;
+ std::vector<WebMediaPlayer::TrackId> initializationSegmentReceived(const std::vector<MediaTrackInfo>&) override;
// Oilpan: eagerly release owned m_webSourceBuffer
EAGERLY_FINALIZE();
@@ -145,6 +150,8 @@ private:
AtomicString m_mode;
bool m_updating;
double m_timestampOffset;
+ Member<AudioTrackList> m_audioTracks;
+ Member<VideoTrackList> m_videoTracks;
double m_appendWindowStart;
double m_appendWindowEnd;
bool m_firstInitializationSegmentReceived;

Powered by Google App Engine
This is Rietveld 408576698