MediaPlayerProxy.h [plain text]
#ifndef MediaPlayerProxy_h
#define MediaPlayerProxy_h
#if PLATFORM(IOS)
#if defined(__OBJC__)
#import <Foundation/NSGeometry.h>
#endif
#ifndef OBJC_CLASS
#ifdef __OBJC__
#define OBJC_CLASS @class
#else
#define OBJC_CLASS class
#endif
#endif // !defined(OBJC_CLASS)
#endif // PLATFORM(IOS)
OBJC_CLASS WebMediaPlayerProxy;
OBJC_CLASS CALayer;
enum MediaPlayerProxyNotificationType {
MediaPlayerNotificationMediaValidated = 1,
MediaPlayerNotificationMediaFailedToValidate,
MediaPlayerNotificationStartUsingNetwork,
MediaPlayerNotificationStopUsingNetwork,
MediaPlayerNotificationEnteredFullscreen,
MediaPlayerNotificationExitedFullscreen,
MediaPlayerNotificationReadyForInspection,
MediaPlayerNotificationReadyForPlayback,
MediaPlayerNotificationDidPlayToTheEnd,
MediaPlayerNotificationPlaybackFailed,
MediaPlayerNotificationStreamLikelyToKeepUp,
MediaPlayerNotificationStreamUnlikelyToKeepUp,
MediaPlayerNotificationStreamBufferFull,
MediaPlayerNotificationStreamRanDry,
MediaPlayerNotificationFileLoaded,
MediaPlayerNotificationSizeDidChange,
MediaPlayerNotificationVolumeDidChange,
MediaPlayerNotificationMutedDidChange,
MediaPlayerNotificationTimeJumped,
MediaPlayerNotificationPlayPauseButtonPressed,
MediaPlayerNotificationRateDidChange,
MediaPlayerNotificationGainFocus,
MediaPlayerNotificationLoseFocus,
MediaPlayerRequestBeginPlayback,
MediaPlayerRequestPausePlayback,
#if ENABLE(IOS_AIRPLAY)
MediaPlayerNotificationCurrentPlaybackTargetIsWirelessChanged,
MediaPlayerNotificationPlaybackTargetAvailabilityChanged,
#endif
};
#ifdef __OBJC__
@interface NSObject (WebMediaPlayerProxy)
- (int)_interfaceVersion;
- (void)_disconnect;
- (void)_load:(NSURL *)url;
- (void)_cancelLoad;
- (void)_setPoster:(NSURL *)url;
- (void)_setControls:(BOOL)controls;
- (void)_setAutobuffer:(BOOL)autobuffer;
- (void)_enterFullScreen;
- (void)_exitFullScreen;
#if ENABLE(IOS_AIRPLAY)
- (BOOL)_isCurrentPlaybackTargetWireless;
- (void)_showPlaybackTargetPicker;
- (BOOL)_hasWirelessPlaybackTargets;
- (BOOL)_wirelessVideoPlaybackDisabled;
- (void)_setWirelessVideoPlaybackDisabled:(BOOL)disabled;
- (void)_setHasPlaybackTargetAvailabilityListeners:(BOOL)hasListeners;
#endif
- (void)_prepareForPlayback;
- (void)_play;
- (void)_pause;
- (NSSize)_naturalSize;
- (BOOL)_hasVideo;
- (BOOL)_hasAudio;
- (BOOL)_hasClosedCaptions;
- (void)_setClosedCaptionsVisible:(BOOL)visible;
- (NSTimeInterval)_duration;
- (double)_currentTime;
- (void)_setCurrentTime:(double)time;
- (BOOL)_seeking;
- (void)_setEndTime:(double)time;
- (float)_rate;
- (void)_setRate:(float)rate;
- (float)_volume;
- (void)_setVolume:(float)newVolume;
- (BOOL)_muted;
- (void)_setMuted:(BOOL)muted;
- (float)_maxTimeBuffered;
- (float)_maxTimeSeekable;
- (NSArray *)_bufferedTimeRanges;
- (int)_dataRate;
- (BOOL)_totalBytesKnown;
- (unsigned)_totalBytes;
- (unsigned)_bytesLoaded;
- (NSArray *)_mimeTypes;
- (void)_setTextTrackRepresentation:(CALayer*)representation;
- (void)_setDelegate:(id)delegate;
- (void)_setOutOfBandTextTracks:(NSArray *)textTracks;
- (void)_setSelectedTextTrack:(NSNumber *)textTrack;
@end
#endif
#endif