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