00001
00002
00003
00004
00005
00006
00007 #import "UIView.h"
00008
00009 @class InactivityMonitor, MovieBackgroundView, MovieControlsOverlay, MovieTVHUDView, MusicNowPlayingArtLayer, NSTimer, UIMovieAlternateTrackListController, UIMovieChapterListController, UIMovieView, UIWindow;
00010
00011 @interface MoviePlayerView : UIView
00012 {
00013 UIWindow *_tvOutWindow;
00014 MovieTVHUDView *_tvOutHudView;
00015 MusicNowPlayingArtLayer *_nowPlayingArt;
00016 MovieBackgroundView *_moviePlayerBackgroundView;
00017 UIMovieView *_movieView;
00018 InactivityMonitor *_inactivityMonitor;
00019 NSTimer *_uiUpdateTimer;
00020 MovieControlsOverlay *_movieControlsOverlay;
00021 id _delegate;
00022 double _nextValidUpdateDate;
00023 UIView *_flipperView;
00024 UIMovieChapterListController *_chapterListController;
00025 UIView *_movieSnapshotView;
00026 UIMovieAlternateTrackListController *_alternateTracksController;
00027 int _orientation;
00028 int _pendingOrientation;
00029 unsigned int _displayableParts;
00030 unsigned int _validationDisabledParts;
00031 unsigned int _currentMarker;
00032 unsigned int _fakeMarker;
00033 struct {
00034 unsigned int playDisabled:1;
00035 unsigned int wasPlayingBeforeScrub:1;
00036 unsigned int canShowControlsOverlay:1;
00037 unsigned int showingOrHidingControlsOverlay:1;
00038 unsigned int layoutOrientationAfterInitialHidePhaseCompletes;
00039 unsigned int animationsToFinishBeforeExit:2;
00040 unsigned int exiting:1;
00041 unsigned int timeHUDShowing:1;
00042 unsigned int timeHUDInTransition:1;
00043 unsigned int movieAttributesAvailable:1;
00044 unsigned int isFullScreen:1;
00045 unsigned int suspendOverlayAnimation:1;
00046 unsigned int disableUnforcedOrientationChanges:1;
00047 unsigned int readyToBeginPlayback:1;
00048 unsigned int enableAutoHideAfterOverlayAnimation:1;
00049 unsigned int orientationChangeInProgress:1;
00050 unsigned int hasPendingOrientation:1;
00051 unsigned int showControlsAfterOrientationChangeAnimation:1;
00052 unsigned int allowQTBackgroundWhenNoVideo:1;
00053 unsigned int autoplayWhenLikelyToKeepUp:1;
00054 unsigned int externalSourceManagesStatusBar:1;
00055 unsigned int videoOutOn:1;
00056 unsigned int needToReenableSystemMediaHUD:1;
00057 unsigned int needToPostPlaybackEndedSystemNotification:1;
00058 unsigned int showingChapterGuide:1;
00059 unsigned int shouldPlayAfterChapterGuideHidden:1;
00060 unsigned int shouldHideChapterGuideAfterTimeJump:1;
00061 unsigned int timeJumpedWhileShowingChapterGuide:1;
00062 unsigned int shouldPlayAfterLanguageGuideHidden:1;
00063 unsigned int unused:1;
00064 } _mpvFlags;
00065 }
00066
00067 - (id)initWithFrame:(struct CGRect)fp8 isFullScreen:(BOOL)fp24;
00068 - (id)initWithSize:(struct CGSize)fp8;
00069 - (void)_disableSystemMediaHUD;
00070 - (void)_reenableSystemMediaHUD;
00071 - (void)_postPlaybackEndedSystemNotification;
00072 - (void)dealloc;
00073 - (void)setDelegate:(id)fp8;
00074 - (BOOL)setUIOrientation:(int)fp8 animated:(BOOL)fp12 forced:(BOOL)fp16;
00075 - (void)_toggleDisplayOrientation;
00076 - (int)orientation;
00077 - (struct CGRect)_movieViewFrameForBounds:(struct CGRect)fp8;
00078 - (void)_layoutUIInRect:(struct CGRect)fp8 fullScreen:(BOOL)fp24 createViews:(BOOL)fp28;
00079 - (void)statusBarHeightChangedNotification:(id)fp8;
00080 - (void)applicationDidResumeNotification:(id)fp8;
00081 - (void)layoutUIInRect:(struct CGRect)fp8 fullScreen:(BOOL)fp24;
00082 - (void)orientationChangeAnimationDidStop:(id)fp8 finished:(id)fp12;
00083 - (void)_layoutOrientationAfterInitialHidePhase:(BOOL)fp8;
00084 - (void)orientationChangeInitialPhaseDidStop:(id)fp8 finished:(id)fp12;
00085 - (void)_layoutForUIOrientationChange:(BOOL)fp8;
00086 - (void)buildUI;
00087 - (void)movieImageChanged;
00088 - (void)_updateChapterTitle;
00089 - (void)_updateUIForDisplayableParts:(BOOL)fp8;
00090 - (void)setDisplayableMovieParts:(unsigned int)fp8 animated:(BOOL)fp12;
00091 - (void)setDisplayable:(BOOL)fp8 movieParts:(unsigned int)fp12 animated:(BOOL)fp16;
00092 - (void)setManagesStatusBar:(BOOL)fp8;
00093 - (void)setAutoPlayWhenLikelyToKeepUp:(BOOL)fp8;
00094 - (void)setCanShowControlsOverlay:(BOOL)fp8;
00095 - (void)setCanAnimateControlsOverlay:(BOOL)fp8;
00096 - (void)exitPlayer;
00097 - (void)setVideoOut:(BOOL)fp8;
00098 - (BOOL)videoOutActive;
00099 - (BOOL)showingChapterGuide;
00100 - (void)setShowingChapterGuide:(BOOL)fp8;
00101 - (void)_playerPlay;
00102 - (void)_playerPause;
00103 - (void)_autoplayForLikelyToKeepUpIfPossibleAndRequested;
00104 - (void)play;
00105 - (void)prepareUI;
00106 - (void)tearDownUI;
00107 - (void)_setPreferenceForMovieScaleMode:(int)fp8;
00108 - (void)_ignoreElapsedTimeUpdatesForALittleBit;
00109 - (double)requiredAutoUpdateDurationForUpdateTimer;
00110 - (void)startUpdateTimer:(BOOL)fp8 inactivityMonitor:(BOOL)fp12;
00111 - (void)stopUpdateTimer:(BOOL)fp8 inactivityMonitor:(BOOL)fp12;
00112 - (BOOL)_needsUpdateTimerWhenPaused;
00113 - (BOOL)_needsUpdateTimerNow;
00114 - (void)_updateTimerFired:(id)fp8;
00115 - (void)movieControlsOverlayAnimationDidStop:(id)fp8 finished:(id)fp12;
00116 - (void)movieControlsOverlayAnimationDidStop:(id)fp8;
00117 - (void)_setOverlaysVisible:(BOOL)fp8 duration:(float)fp12 animateStatusBar:(BOOL)fp16;
00118 - (void)preheatUI;
00119 - (void)setControlsOverlayVisible:(BOOL)fp8 disableAutohide:(BOOL)fp12 animate:(BOOL)fp16 animateStatusBar:(BOOL)fp20;
00120 - (void)setControlsOverlayVisible:(BOOL)fp8 disableAutohide:(BOOL)fp12 animate:(BOOL)fp16;
00121 - (BOOL)_movieControlsOverlayIsShowing;
00122 - (BOOL)_movieControlsOverlayInTransition;
00123 - (BOOL)_canAutohideControlsOverlay;
00124 - (void)_autohideControlsOverlay;
00125 - (void)_createMovieControlsOverlayIfNecesssary;
00126 - (BOOL)_canDoOrientationChangeNow;
00127 - (void)_applyAnyPendingOrientationChanges;
00128 - (void)_updatePlayableContentRelatedUI;
00129 - (void)_updateStateOfMovieControlItem:(unsigned int)fp8;
00130 - (void)_updateStateOfAllMovieControlItems;
00131 - (void)_exitPlayer:(BOOL)fp8 userExited:(BOOL)fp12;
00132 - (BOOL)isScaleModeButtonNecessary;
00133 - (BOOL)isMovieScaleModeButtonNecessaryForMovieControlsOverlay:(id)fp8;
00134 - (BOOL)hideScanningControls:(id)fp8;
00135 - (void)movieControlItemPlayPauseButtonPressed;
00136 - (BOOL)_validateMovieUIPart:(unsigned int)fp8;
00137 - (void)_validateMovieUIButtons;
00138 - (BOOL)_handleForwardButtonPressedForChapters;
00139 - (BOOL)_handleBackwardButtonPressedForChapters;
00140 - (BOOL)_handleForwardButtonPressed;
00141 - (BOOL)_handleBackwardButtonPressed;
00142 - (BOOL)_handleChaptersButtonPressed;
00143 - (BOOL)_handleAlternateTracksButtonPressed;
00144 - (BOOL)_handleButtonPressedForMovieUIPart:(unsigned int)fp8 beforeDelegate:(BOOL)fp12;
00145 - (void)_sendButtonPressedForMovieUIPart:(unsigned int)fp8;
00146 - (void)movieControlItemAddBookmarkButtonPressed;
00147 - (void)movieControlItemEmailButtonPressed;
00148 - (BOOL)overlayShouldAllowNextPreviousPresses:(id)fp8;
00149 - (void)movieControlItemNextButtonPressed;
00150 - (void)movieControlItemPreviousButtonPressed;
00151 - (void)movieControlItemChaptersButtonPressed;
00152 - (void)movieControlItemAlternateTracksButtonPressed;
00153 - (void)movieControlItemTimeScrubberMovedToScrubValue:(float)fp8 forEventKind:(unsigned int)fp12;
00154 - (void)movieControlItemDidEnterScanningActiveState:(BOOL)fp8 direction:(int)fp12;
00155 - (void)movieControlItemExitButtonPressed;
00156 - (void)toggleMovieScaleMode;
00157 - (void)movieControlItemZoomButtonPressed;
00158 - (void)delayedExitAfterHideControlsOverlayCompletes;
00159 - (void)hideControlsOverlayForExiting;
00160 - (id)movieView;
00161 - (void)movieViewMovieAttributesChanged;
00162 - (void)movieViewServerDied:(id)fp8;
00163 - (void)movieViewPlaybackStateDidChange:(id)fp8;
00164 - (void)movieViewCurrentTimeDidChange:(id)fp8;
00165 - (void)movieViewRateChanged:(id)fp8;
00166 - (void)movieViewAttributesDidBecomeAvailable:(id)fp8;
00167 - (void)view:(id)fp8 handleTapWithCount:(int)fp12 event:(struct __GSEvent *)fp16;
00168 - (double)viewDoubleTapDelay:(id)fp8;
00169 - (void)movieViewSourcePathDidChange:(id)fp8;
00170 - (void)movieViewBufferingStatusDidChange:(id)fp8 fromStatus:(int)fp12 toStatus:(int)fp16;
00171 - (void)movieViewPlaybackRequestFailed:(id)fp8;
00172 - (struct CGSize)fillSizeForMovieView:(id)fp8 movieNaturalSize:(struct CGSize)fp12;
00173 - (void)movieView:(id)fp8 crossedTimeMarker:(unsigned int)fp12;
00174 - (void)movieView:(id)fp8 timeDidJump:(double)fp12;
00175 - (void)inactivityMonitorDetectedInactivity:(id)fp8;
00176 - (void)willStartGesture:(int)fp8 inView:(id)fp12 forEvent:(struct __GSEvent *)fp16;
00177 - (void)gestureDidChange:(int)fp8 inView:(id)fp12 forEvent:(struct __GSEvent *)fp16;
00178 - (void)didFinishGesture:(int)fp8 inView:(id)fp12 forEvent:(struct __GSEvent *)fp16;
00179 - (void)didFinishGesturesInView:(id)fp8 forEvent:(struct __GSEvent *)fp12;
00180 - (id)_createWindowForOverlayControlsWithFrame:(struct CGRect)fp8;
00181 - (void)_flipFromView:(id)fp8 toView:(id)fp12 withType:(id)fp16 duration:(float)fp20;
00182 - (void)_fixupAfterGuideHide;
00183 - (void)_hideChapterGuide;
00184 - (id)_swapInSnapshotForMovieInWindow:(id)fp8;
00185 - (void)animationDidStop:(id)fp8 finished:(BOOL)fp12;
00186 - (void)_chapterTimeChangeTimeout;
00187 - (void)chapterList:(id)fp8 selectedChapter:(unsigned int)fp12;
00188 - (void)_dismissTemporaryWindow:(id)fp8;
00189 - (id)navigationBarForOverlayTransition:(id)fp8;
00190 - (BOOL)restoreNavigationBarButtons:(id)fp8 forOverlayTransition:(id)fp12;
00191 - (void)overlay:(id)fp8 willShowChapterGuide:(BOOL)fp12 animating:(BOOL)fp16;
00192 - (void)overlayFinishedChapterGuideAnimation:(id)fp8 context:(id)fp12;
00193 - (void)dismissAlternateTrackList:(id)fp8;
00194 - (void)_alternateTrackAnimationDidStop:(id)fp8 finished:(BOOL)fp12 context:(id)fp16;
00195 - (void)_setLanguageGuideVisible:(BOOL)fp8;
00196
00197 @end
00198