1. ホーム
  2. 人工知能

ワークブックを開かずにデータを抽出するいくつかの方法

2022-03-15 18:17:31
//
// MPMoviePlayerController.h
// MediaPlayer
//
// Copyright 2008-2015 Apple, Inc.
//

#import <Foundation/Foundation.h>
#import <MediaPlayer/MediaPlayerDefines.h>
#import <MediaPlayer/MPMediaPlayback.h>
#import <UIKit/UIKit.h>

@class MPMovieAccessLog, MPMovieErrorLog;
// See MPMediaPlayback.h for the playback methods.

MP_API_IOS_DEPRECATED_WITH_REPLACEMENT_MACOS_TVOS_PROHIBITED("Use AVPlayerViewController in AVKit.", 2.0, 9.0, 10.12.2, 10.12.2 , 2.0, 9.0)
@interface MPMoviePlayerController : NSObject <MPMediaPlayback>

// Initialize
- (instancetype)initWithContentURL:(NSURL *)url NS_DESIGNATED_INITIALIZER;

// Play the media URL, which can be either a local path or a network path
@property (nonatomic, copy) NSURL *contentURL;

// player view (read-only), if you want to display the video you must add this view to the controller
@property (nonatomic, readonly) UIView *view;

// Player background view (readonly)
@property (nonatomic, readonly) UIView *backgroundView;

// Media playback state (read-only), enum type:
// MPMoviePlaybackStateStopped:Stopped playing
// MPMoviePlaybackStatePlaying: playing
// MPMoviePlaybackStatePaused:paused
// MPMoviePlaybackStateInterrupted:Interrupted
// MPMoviePlaybackStateSeekingForward:Positioning forward
// MPMoviePlaybackStateSeekingBackward:Seeking backward
@property (nonatomic, readonly) MPMoviePlaybackState playbackState;

// Network media load state (read-only), enum type:
// MPMovieLoadStateUnknown: location type
// MPMovieLoadStatePlayable:
// MPMovieLoadStatePlaythroughOK: this state will be played automatically if shouldAutoPlay is YES
// MPMovieLoadStateStalled: stalled state
@property (nonatomic, readonly) MPMovieLoadState loadState;

// Control panel style (default is MPMovieControlStyleDefault), enum type:
// MPMovieControlStyleNone: no control panel
// MPMovieControlStyleEmbedded:Embedded video style
// MPMovieControlStyleFullscreen:Full screen
// MPMovieControlStyleDefault:Default:Default style
@property (nonatomic) MPMovieControlStyle controlStyle;

// Repeat mode, enum type:
// MPMovieRepeatModeNone: no repeat (default)
// MPMovieRepeatModeOne:Repeat
@property (nonatomic) MPMovieRepeatMode repeatMode;

// Whether or not to play automatically when the network media is cached to certain data, default is YES
@property (nonatomic) BOOL shouldAutoplay;

// if or not full screen display, default is NO, note that if you want to set full screen by this property, you must set it after the view is finished, otherwise it is invalid
@property (nonatomic, getter=isFullscreen) BOOL fullscreen;
- (void)setFullscreen:(BOOL)fullscreen animated:(BOOL)animated;

// Video scaling fill mode (default is MPMovieScalingModeAspectFit), enum type:
// MPMovieScalingModeNone: without any scaling
// MPMovieScalingModeAspectFit: fix the scaling and show the video as much as possible without cropping the video
// MPMovieScalingModeAspectFill: fix the scaling and fill the whole view, may crop the video
// MPMovieScalingModeFill: no fixed scaling and compress to fill the whole view, video will not be cropped but out of scale
@property (nonatomic) MPMovieScalingMode scalingMode;

// whether or not the relevant media is being played
@property (nonatomic, readonly) BOOL readyForDisplay NS_AVAILABLE_IOS(6_0);

@end

// -----------------------------------------------------------------------------
// Movie properties of the current movie prepared for playback.

@interface MPMoviePlayerController (MPMovieProperties)

// Media category (read-only), enumerated type:
// MPMovieMediaTypeMaskNone:unknown type
// MPMovieMediaTypeMaskVideo:Video
// MPMovieMediaTypeMaskAudio:Audio
@property (nonatomic, readonly) MPMovieMediaTypeMask movieMediaTypes MP_API_IOS_DEPRECATED_WITH_REPLACEMENT_MACOS_TVOS_PROHIBITED(" ;Use AVPlayerViewController in AVKit.", 2.0, 9.0, 10.1

// Media duration (read-only), return 0 if unknown
@property (nonatomic, readonly) NSTimeInterval duration MP_API_IOS_DEPRECATED_WITH_REPLACEMENT_MACOS_TVOS_PROHIBITED("Use AVPlayerViewController in AVKit.", 2.0, 9.0, 10.12.2, 10.12.2, 2.0, 9.0)
;

// Media playable duration (read-only), mainly used to indicate the length of downloaded videos on network media
@property (nonatomic, readonly) NSTimeInterval playableDuration MP_API_IOS_DEPRECATED_WITH_REPLACEMENT_MACOS_TVOS_PROHIBITED("Use AVPlayerViewController in AVKit.", 2.0, 9.0, 10.12.2, 10.12.2, 2.0, 9.0)
;

// actual video size (read-only), return CGSizeZero if unknown
@property (nonatomic, readonly) CGSize naturalSize MP_API_IOS_DEPRECATED_WITH_REPLACEMENT_MACOS_TVOS_PROHIBITED("Use AVPlayerViewController in AVKit.", 2.0, 9.0, 10.12.2, 10.12.2, 2.0, 9.0)
;

// Start playback time (default is NaN)
@property (nonatomic) NSTimeInterval initialPlaybackTime MP_API_IOS_DEPRECATED_WITH_REPLACEMENT_MACOS_TVOS_PROHIBITED("Use AVPlayerViewController in AVKit.", 2.0, 9.0, 10.12.2, 10.12.2, 2.0, 9.0)
;

// End playback time (default is NaN)
@property (nonatomic) NSTimeInterval endPlaybackTime MP_API_IOS_DEPRECATED_WITH_REPLACEMENT_MACOS_TVOS_PROHIBITED("Use AVPlayerViewController in AVKit.", 2.0, 9.0, 10.12.2, 10.12.2, 2.0, 9.0)
;

// Whether to allow wireless playback, default is YES after iOS5
@property (nonatomic) BOOL allowsAirPlay MP_API_IOS_DEPRECATED_WITH_REPLACEMENT_MACOS_TVOS_PROHIBITED("Use AVPlayerViewController in AVKit.", 4.3, 9.0, 10.12.2, 10.12.2, 4.3, 9.0)
;

// Indicates whether the movie player is currently playing video via AirPlay.
@property (nonatomic, readonly, getter=isAirPlayVideoActive) BOOL airPlayVideoActive MP_API_IOS_DEPRECATED_WITH_REPLACEMENT_MACOS_TVOS_ PROHIBITED("Use AVPlayerViewController in AVKit.", 5.0, 9.0, 10.12.2, 10.12.2, 5.0, 9.0)
;

@end

// -----------------------------------------------------------------------------
// Video playback notification

// Video scaling change
MP_EXTERN NSString * const MPMoviePlayerScalingModeDidChangeNotification MP_API_IOS_DEPRECATED_MACOS_TVOS_PROHIBITED(2.0, 9.0, 10.12.2, 10.12.2, 2.0, 9.0);

// Media playback is completed or the user exits manually, the specific reason for completion can be obtained by notifying the userInfo object with the key MPMoviePlayerPlaybackDidFinishReasonUserInfoKey
MP_EXTERN NSString * const MPMoviePlayerPlaybackDidFinishNotification MP_API_IOS_DEPRECATED_MACOS_TVOS_PROHIBITED(2.0, 9.0, 10.12.2, 10.12 .2, 2.0, 9.0);

MP_EXTERN NSString * const MPMoviePlayerPlaybackDidFinishReasonUserInfoKey MP_API_IOS_DEPRECATED_MACOS_TVOS_PROHIBITED(3.2, 9.0, 10.12.2, 10.12.2, 3.2, 9.0); // NSNumber (MPMovieFinishReason)

// Playback state change, can be used with playbackState property to get specific state
MP_EXTERN NSString * const MPMoviePlayerPlaybackStateDidChangeNotification MP_API_IOS_DEPRECATED_MACOS_TVOS_PROHIBITED(3.2, 9.0, 10.12.2, 10.12.2, 3.2, 9.0);

// Media network loading status change
MP_EXTERN NSString * const MPMoviePlayerLoadStateDidChangeNotification MP_API_IOS_DEPRECATED_MACOS_TVOS_PROHIBITED(3.2, 9.0, 10.12.2, 10.12.2, 3.2, 9.0);

// The content of the currently playing media has changed
MP_EXTERN NSString * const MPMoviePlayerNowPlayingMovieDidChangeNotification MP_API_IOS_DEPRECATED_MACOS_TVOS_PROHIBITED(3.2, 9.0, 10.12. 2, 10.12.2, 3.2, 9.0);

// will go to full screen
MP_EXTERN NSString * const MPMoviePlayerWillEnterFullscreenNotification MP_API_IOS_DEPRECATED_MACOS_TVOS_PROHIBITED(3.2, 9.0, 10.12.2, 10.12.2, 3.2, 9.0);

// After entering full screen
MP_EXTERN NSString * const MPMoviePlayerDidEnterFullscreenNotification MP_API_IOS_DEPRECATED_MACOS_TVOS_PROHIBITED(3.2, 9.0, 10.12.2, 10.12.2, 3.2, 9.0);

// will exit fullscreen
MP_EXTERN NSString * const MPMoviePlayerWillExitFullscreenNotification MP_API_IOS_DEPRECATED_MACOS_TVOS_PROHIBITED(3.2, 9.0, 10.12.2, 10.12.2, 3.2, 9.0);

// After exiting fullscreen
MP_EXTERN NSString * const MPMoviePlayerDidExitFullscreenNotification MP_API_IOS_DEPRECATED_MACOS_TVOS_PROHIBITED(3.2, 9.0, 10.12.2,