| OLD | NEW |
| 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 Loading... |
| 95 | 95 |
| 96 // Reported to UMA. Do not change existing values. | 96 // Reported to UMA. Do not change existing values. |
| 97 enum LoadType { | 97 enum LoadType { |
| 98 LoadTypeURL = 0, | 98 LoadTypeURL = 0, |
| 99 LoadTypeMediaSource = 1, | 99 LoadTypeMediaSource = 1, |
| 100 LoadTypeMediaStream = 2, | 100 LoadTypeMediaStream = 2, |
| 101 LoadTypeMax = LoadTypeMediaStream, | 101 LoadTypeMax = LoadTypeMediaStream, |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 typedef unsigned TrackId; | 104 typedef unsigned TrackId; |
| 105 enum TrackType { TextTrack, AudioTrack, VideoTrack }; |
| 105 | 106 |
| 106 virtual ~WebMediaPlayer() { } | 107 virtual ~WebMediaPlayer() { } |
| 107 | 108 |
| 108 virtual void load(LoadType, const WebURL&, CORSMode) = 0; | 109 virtual void load(LoadType, const WebURL&, CORSMode) = 0; |
| 109 | 110 |
| 110 // Playback controls. | 111 // Playback controls. |
| 111 virtual void play() = 0; | 112 virtual void play() = 0; |
| 112 virtual void pause() = 0; | 113 virtual void pause() = 0; |
| 113 virtual bool supportsSave() const = 0; | 114 virtual bool supportsSave() const = 0; |
| 114 virtual void seek(double seconds) = 0; | 115 virtual void seek(double seconds) = 0; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 virtual void exitedFullscreen() { } | 196 virtual void exitedFullscreen() { } |
| 196 | 197 |
| 197 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } | 198 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } |
| 198 // |selectedTrackId| is null if no track is selected. | 199 // |selectedTrackId| is null if no track is selected. |
| 199 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } | 200 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } |
| 200 }; | 201 }; |
| 201 | 202 |
| 202 } // namespace blink | 203 } // namespace blink |
| 203 | 204 |
| 204 #endif | 205 #endif |
| OLD | NEW |