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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 virtual bool seeking() const = 0; | 140 virtual bool seeking() const = 0; |
141 | 141 |
142 virtual double rate() const = 0; | 142 virtual double rate() const = 0; |
143 virtual void setRate(double) = 0; | 143 virtual void setRate(double) = 0; |
144 | 144 |
145 virtual bool paused() const = 0; | 145 virtual bool paused() const = 0; |
146 | 146 |
147 virtual void setVolume(double) = 0; | 147 virtual void setVolume(double) = 0; |
148 virtual void setMuted(bool) = 0; | 148 virtual void setMuted(bool) = 0; |
149 | 149 |
| 150 virtual void setPoster(const KURL&) = 0; |
| 151 |
150 enum NetworkState { Empty, Idle, Loading, Loaded, FormatError, NetworkError,
DecodeError }; | 152 enum NetworkState { Empty, Idle, Loading, Loaded, FormatError, NetworkError,
DecodeError }; |
151 virtual NetworkState networkState() const = 0; | 153 virtual NetworkState networkState() const = 0; |
152 | 154 |
153 enum ReadyState { HaveNothing, HaveMetadata, HaveCurrentData, HaveFutureDat
a, HaveEnoughData }; | 155 enum ReadyState { HaveNothing, HaveMetadata, HaveCurrentData, HaveFutureDat
a, HaveEnoughData }; |
154 virtual ReadyState readyState() const = 0; | 156 virtual ReadyState readyState() const = 0; |
155 | 157 |
156 virtual double maxTimeSeekable() const = 0; | 158 virtual double maxTimeSeekable() const = 0; |
157 virtual PassRefPtr<TimeRanges> buffered() const = 0; | 159 virtual PassRefPtr<TimeRanges> buffered() const = 0; |
158 | 160 |
159 virtual bool didLoadingProgress() const = 0; | 161 virtual bool didLoadingProgress() const = 0; |
(...skipping 29 matching lines...) Expand all Loading... |
189 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported,
InvalidAccess }; | 191 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported,
InvalidAccess }; |
190 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign
ed, const unsigned char*, unsigned, const String&) = 0; | 192 virtual MediaKeyException addKey(const String&, const unsigned char*, unsign
ed, const unsigned char*, unsigned, const String&) = 0; |
191 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c
har*, unsigned) = 0; | 193 virtual MediaKeyException generateKeyRequest(const String&, const unsigned c
har*, unsigned) = 0; |
192 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0
; | 194 virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0
; |
193 virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*)
= 0; | 195 virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*)
= 0; |
194 }; | 196 }; |
195 | 197 |
196 } | 198 } |
197 | 199 |
198 #endif // MediaPlayer_h | 200 #endif // MediaPlayer_h |
OLD | NEW |