OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 virtual bool supportsSave() const = 0; | 118 virtual bool supportsSave() const = 0; |
119 | 119 |
120 virtual double duration() const = 0; | 120 virtual double duration() const = 0; |
121 | 121 |
122 virtual double currentTime() const = 0; | 122 virtual double currentTime() const = 0; |
123 | 123 |
124 virtual void seek(double) = 0; | 124 virtual void seek(double) = 0; |
125 | 125 |
126 virtual bool seeking() const = 0; | 126 virtual bool seeking() const = 0; |
127 | 127 |
128 virtual double rate() const = 0; | |
129 virtual void setRate(double) = 0; | |
130 | |
131 virtual bool paused() const = 0; | 128 virtual bool paused() const = 0; |
132 | 129 |
133 virtual void setPoster(const KURL&) = 0; | 130 virtual void setPoster(const KURL&) = 0; |
134 | 131 |
135 enum NetworkState { Empty, Idle, Loading, Loaded, FormatError, NetworkError,
DecodeError }; | 132 enum NetworkState { Empty, Idle, Loading, Loaded, FormatError, NetworkError,
DecodeError }; |
136 virtual NetworkState networkState() const = 0; | 133 virtual NetworkState networkState() const = 0; |
137 | 134 |
138 virtual double maxTimeSeekable() const = 0; | |
139 virtual PassRefPtr<TimeRanges> buffered() const = 0; | |
140 | |
141 virtual bool didLoadingProgress() const = 0; | |
142 | |
143 virtual void paint(GraphicsContext*, const IntRect&) = 0; | 135 virtual void paint(GraphicsContext*, const IntRect&) = 0; |
144 virtual bool copyVideoTextureToPlatformTexture(blink::WebGraphicsContext3D*,
Platform3DObject, GC3Dint, GC3Denum, GC3Denum, bool, bool) = 0; | 136 virtual bool copyVideoTextureToPlatformTexture(blink::WebGraphicsContext3D*,
Platform3DObject, GC3Dint, GC3Denum, GC3Denum, bool, bool) = 0; |
145 | 137 |
146 enum Preload { None, MetaData, Auto }; | 138 enum Preload { None, MetaData, Auto }; |
147 virtual void setPreload(Preload) = 0; | 139 virtual void setPreload(Preload) = 0; |
148 | 140 |
149 virtual bool hasSingleSecurityOrigin() const = 0; | 141 virtual bool hasSingleSecurityOrigin() const = 0; |
150 | 142 |
151 // Time value in the movie's time scale. It is only necessary to override th
is if the media | 143 // Time value in the movie's time scale. It is only necessary to override th
is if the media |
152 // engine uses rational numbers to represent media time. | 144 // engine uses rational numbers to represent media time. |
153 virtual double mediaTimeForTimeValue(double timeValue) const = 0; | 145 virtual double mediaTimeForTimeValue(double timeValue) const = 0; |
154 | 146 |
155 #if ENABLE(WEB_AUDIO) | 147 #if ENABLE(WEB_AUDIO) |
156 virtual AudioSourceProvider* audioSourceProvider() = 0; | 148 virtual AudioSourceProvider* audioSourceProvider() = 0; |
157 #endif | 149 #endif |
158 virtual blink::WebMediaPlayer* webMediaPlayer() const = 0; | 150 virtual blink::WebMediaPlayer* webMediaPlayer() const = 0; |
159 }; | 151 }; |
160 | 152 |
161 } | 153 } |
162 | 154 |
163 #endif // MediaPlayer_h | 155 #endif // MediaPlayer_h |
OLD | NEW |