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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported
}; | 291 enum MediaKeyException { NoError, InvalidPlayerState, KeySystemNotSupported
}; |
292 | 292 |
293 MediaKeyException generateKeyRequest(const String& keySystem, const unsigned
char* initData, unsigned initDataLength); | 293 MediaKeyException generateKeyRequest(const String& keySystem, const unsigned
char* initData, unsigned initDataLength); |
294 MediaKeyException addKey(const String& keySystem, const unsigned char* key,
unsigned keyLength, const unsigned char* initData, unsigned initDataLength, cons
t String& sessionId); | 294 MediaKeyException addKey(const String& keySystem, const unsigned char* key,
unsigned keyLength, const unsigned char* initData, unsigned initDataLength, cons
t String& sessionId); |
295 MediaKeyException cancelKeyRequest(const String& keySystem, const String& se
ssionId); | 295 MediaKeyException cancelKeyRequest(const String& keySystem, const String& se
ssionId); |
296 #endif | 296 #endif |
297 | 297 |
298 bool paused() const; | 298 bool paused() const; |
299 bool seeking() const; | 299 bool seeking() const; |
300 | 300 |
301 static float invalidTime() { return -1.0f;} | 301 static double invalidTime() { return -1.0;} |
302 float duration() const; | 302 double duration() const; |
303 float currentTime() const; | 303 double currentTime() const; |
304 void seek(float time); | 304 void seek(double time); |
305 | 305 |
306 float startTime() const; | 306 double startTime() const; |
307 | 307 |
308 double initialTime() const; | 308 double initialTime() const; |
309 | 309 |
310 float rate() const; | 310 double rate() const; |
311 void setRate(float); | 311 void setRate(double); |
312 | 312 |
313 bool preservesPitch() const; | 313 bool preservesPitch() const; |
314 void setPreservesPitch(bool); | 314 void setPreservesPitch(bool); |
315 | 315 |
316 PassRefPtr<TimeRanges> buffered(); | 316 PassRefPtr<TimeRanges> buffered(); |
317 PassRefPtr<TimeRanges> seekable(); | 317 PassRefPtr<TimeRanges> seekable(); |
318 float maxTimeSeekable(); | 318 double maxTimeSeekable(); |
319 | 319 |
320 bool didLoadingProgress(); | 320 bool didLoadingProgress(); |
321 | 321 |
322 float volume() const; | 322 double volume() const; |
323 void setVolume(float); | 323 void setVolume(double); |
324 | 324 |
325 bool muted() const; | 325 bool muted() const; |
326 void setMuted(bool); | 326 void setMuted(bool); |
327 | 327 |
328 bool hasClosedCaptions() const; | 328 bool hasClosedCaptions() const; |
329 void setClosedCaptionsVisible(bool closedCaptionsVisible); | 329 void setClosedCaptionsVisible(bool closedCaptionsVisible); |
330 | 330 |
331 bool autoplay() const; | 331 bool autoplay() const; |
332 void setAutoplay(bool); | 332 void setAutoplay(bool); |
333 | 333 |
(...skipping 23 matching lines...) Expand all Loading... |
357 | 357 |
358 enum MovieLoadType { Unknown, Download, StoredStream, LiveStream }; | 358 enum MovieLoadType { Unknown, Download, StoredStream, LiveStream }; |
359 MovieLoadType movieLoadType() const; | 359 MovieLoadType movieLoadType() const; |
360 | 360 |
361 enum Preload { None, MetaData, Auto }; | 361 enum Preload { None, MetaData, Auto }; |
362 Preload preload() const; | 362 Preload preload() const; |
363 void setPreload(Preload); | 363 void setPreload(Preload); |
364 | 364 |
365 void networkStateChanged(); | 365 void networkStateChanged(); |
366 void readyStateChanged(); | 366 void readyStateChanged(); |
367 void volumeChanged(float); | 367 void volumeChanged(double); |
368 void muteChanged(bool); | 368 void muteChanged(bool); |
369 void timeChanged(); | 369 void timeChanged(); |
370 void sizeChanged(); | 370 void sizeChanged(); |
371 void rateChanged(); | 371 void rateChanged(); |
372 void playbackStateChanged(); | 372 void playbackStateChanged(); |
373 void durationChanged(); | 373 void durationChanged(); |
374 void firstVideoFrameAvailable(); | 374 void firstVideoFrameAvailable(); |
375 void characteristicChanged(); | 375 void characteristicChanged(); |
376 | 376 |
377 void repaint(); | 377 void repaint(); |
(...skipping 29 matching lines...) Expand all Loading... |
407 #endif | 407 #endif |
408 | 408 |
409 #if PLATFORM(WIN) && USE(AVFOUNDATION) | 409 #if PLATFORM(WIN) && USE(AVFOUNDATION) |
410 GraphicsDeviceAdapter* graphicsDeviceAdapter() const; | 410 GraphicsDeviceAdapter* graphicsDeviceAdapter() const; |
411 #endif | 411 #endif |
412 | 412 |
413 bool hasSingleSecurityOrigin() const; | 413 bool hasSingleSecurityOrigin() const; |
414 | 414 |
415 bool didPassCORSAccessCheck() const; | 415 bool didPassCORSAccessCheck() const; |
416 | 416 |
417 float mediaTimeForTimeValue(float) const; | 417 double mediaTimeForTimeValue(double) const; |
418 | 418 |
419 double maximumDurationToCacheMediaTime() const; | 419 double maximumDurationToCacheMediaTime() const; |
420 | 420 |
421 unsigned decodedFrameCount() const; | 421 unsigned decodedFrameCount() const; |
422 unsigned droppedFrameCount() const; | 422 unsigned droppedFrameCount() const; |
423 unsigned audioDecodedByteCount() const; | 423 unsigned audioDecodedByteCount() const; |
424 unsigned videoDecodedByteCount() const; | 424 unsigned videoDecodedByteCount() const; |
425 | 425 |
426 void setPrivateBrowsingMode(bool); | 426 void setPrivateBrowsingMode(bool); |
427 | 427 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 OwnPtr<MediaPlayerPrivateInterface> m_private; | 478 OwnPtr<MediaPlayerPrivateInterface> m_private; |
479 MediaPlayerFactory* m_currentMediaEngine; | 479 MediaPlayerFactory* m_currentMediaEngine; |
480 KURL m_url; | 480 KURL m_url; |
481 String m_contentMIMEType; | 481 String m_contentMIMEType; |
482 String m_contentTypeCodecs; | 482 String m_contentTypeCodecs; |
483 String m_keySystem; | 483 String m_keySystem; |
484 FrameView* m_frameView; | 484 FrameView* m_frameView; |
485 IntSize m_size; | 485 IntSize m_size; |
486 Preload m_preload; | 486 Preload m_preload; |
487 bool m_visible; | 487 bool m_visible; |
488 float m_rate; | 488 double m_rate; |
489 float m_volume; | 489 double m_volume; |
490 bool m_muted; | 490 bool m_muted; |
491 bool m_preservesPitch; | 491 bool m_preservesPitch; |
492 bool m_privateBrowsing; | 492 bool m_privateBrowsing; |
493 bool m_shouldPrepareToRender; | 493 bool m_shouldPrepareToRender; |
494 bool m_contentMIMETypeWasInferredFromExtension; | 494 bool m_contentMIMETypeWasInferredFromExtension; |
495 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) | 495 #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) |
496 WebMediaPlayerProxy* m_playerProxy; // not owned or used, passed to m_pri
vate | 496 WebMediaPlayerProxy* m_playerProxy; // not owned or used, passed to m_pri
vate |
497 #endif | 497 #endif |
498 | 498 |
499 #if ENABLE(MEDIA_SOURCE) | 499 #if ENABLE(MEDIA_SOURCE) |
(...skipping 13 matching lines...) Expand all Loading... |
513 typedef void (*MediaEngineClearMediaCacheForSite)(const String&); | 513 typedef void (*MediaEngineClearMediaCacheForSite)(const String&); |
514 | 514 |
515 typedef void (*MediaEngineRegistrar)(CreateMediaEnginePlayer, MediaEngineSupport
edTypes, MediaEngineSupportsType, | 515 typedef void (*MediaEngineRegistrar)(CreateMediaEnginePlayer, MediaEngineSupport
edTypes, MediaEngineSupportsType, |
516 MediaEngineGetSitesInMediaCache, MediaEngineClearMediaCache, MediaEngineClea
rMediaCacheForSite); | 516 MediaEngineGetSitesInMediaCache, MediaEngineClearMediaCache, MediaEngineClea
rMediaCacheForSite); |
517 | 517 |
518 } | 518 } |
519 | 519 |
520 #endif // ENABLE(VIDEO) | 520 #endif // ENABLE(VIDEO) |
521 | 521 |
522 #endif | 522 #endif |
OLD | NEW |