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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaPlayer.h

Issue 2050043002: Generate and assign media track ids in demuxers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use-streamparser-trackid
Patch Set: rebase to ToT Created 4 years, 6 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 }; 95 };
96 96
97 // Reported to UMA. Do not change existing values. 97 // Reported to UMA. Do not change existing values.
98 enum LoadType { 98 enum LoadType {
99 LoadTypeURL = 0, 99 LoadTypeURL = 0,
100 LoadTypeMediaSource = 1, 100 LoadTypeMediaSource = 1,
101 LoadTypeMediaStream = 2, 101 LoadTypeMediaStream = 2,
102 LoadTypeMax = LoadTypeMediaStream, 102 LoadTypeMax = LoadTypeMediaStream,
103 }; 103 };
104 104
105 typedef unsigned TrackId; 105 typedef WebString TrackId;
106 enum TrackType { TextTrack, AudioTrack, VideoTrack }; 106 enum TrackType { TextTrack, AudioTrack, VideoTrack };
107 107
108 virtual ~WebMediaPlayer() { } 108 virtual ~WebMediaPlayer() { }
109 109
110 virtual void load(LoadType, const WebMediaPlayerSource&, CORSMode) = 0; 110 virtual void load(LoadType, const WebMediaPlayerSource&, CORSMode) = 0;
111 111
112 // Playback controls. 112 // Playback controls.
113 virtual void play() = 0; 113 virtual void play() = 0;
114 virtual void pause() = 0; 114 virtual void pause() = 0;
115 virtual bool supportsSave() const = 0; 115 virtual bool supportsSave() const = 0;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 virtual void exitedFullscreen() { } 198 virtual void exitedFullscreen() { }
199 199
200 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { } 200 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { }
201 // |selectedTrackId| is null if no track is selected. 201 // |selectedTrackId| is null if no track is selected.
202 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } 202 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { }
203 }; 203 };
204 204
205 } // namespace blink 205 } // namespace blink
206 206
207 #endif 207 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698