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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaPlayer.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: CR feedback2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // Reported to UMA. Do not change existing values. 91 // Reported to UMA. Do not change existing values.
92 enum LoadType { 92 enum LoadType {
93 LoadTypeURL = 0, 93 LoadTypeURL = 0,
94 LoadTypeMediaSource = 1, 94 LoadTypeMediaSource = 1,
95 LoadTypeMediaStream = 2, 95 LoadTypeMediaStream = 2,
96 LoadTypeMax = LoadTypeMediaStream, 96 LoadTypeMax = LoadTypeMediaStream,
97 }; 97 };
98 98
99 typedef unsigned TrackId; 99 typedef unsigned TrackId;
100 enum TrackType { TextTrack, AudioTrack, VideoTrack };
100 101
101 virtual ~WebMediaPlayer() { } 102 virtual ~WebMediaPlayer() { }
102 103
103 virtual void load(LoadType, const WebURL&, CORSMode) = 0; 104 virtual void load(LoadType, const WebURL&, CORSMode) = 0;
104 105
105 // Playback controls. 106 // Playback controls.
106 virtual void play() = 0; 107 virtual void play() = 0;
107 virtual void pause() = 0; 108 virtual void pause() = 0;
108 virtual bool supportsSave() const = 0; 109 virtual bool supportsSave() const = 0;
109 virtual void seek(double seconds) = 0; 110 virtual void seek(double seconds) = 0;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 virtual void exitedFullscreen() { } 191 virtual void exitedFullscreen() { }
191 192
192 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { } 193 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { }
193 // |selectedTrackId| is null if no track is selected. 194 // |selectedTrackId| is null if no track is selected.
194 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } 195 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { }
195 }; 196 };
196 197
197 } // namespace blink 198 } // namespace blink
198 199
199 #endif 200 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698