百度智能云

All Product Document

          Multimedia Cloud Processing

          Interface Description

          The core interface class CyberPlayerController of the player SDK is similar to the IOS system video player MPMoviePlayerController, and the similarities and differences are as follows.

          Figure 2 Attribute Comparison

          MPMoviePlayerController CyberPlayerController
          contentURL contentURL
          N/A contentString
          movieSourceType N/A
          movieMediaTypes N/A
          allowsAirPlay N/A
          airPlayVideoActive N/A
          naturalSize naturalSize
          N/A videoWidth
          N/A videoHeight
          fullscreen N/A
          scalingMode scalingMode
          controlStyle N/A
          duration duration
          playableDuration playableDuration
          view view
          backgroundView N/A
          loadState N/A
          playbackState playbackState
          initialPlaybackTime initialPlaybackTime
          endPlaybackTime N/A
          shouldAutoplay shouldAutoplay
          N/A shouldAutoClearRender
          readyForDisplay N/A
          repeatMode N/A
          isPreparedToPlay isPreparedToPlay
          accessLog N/A
          errorLog N/A
          currentPlaybackRate N/A
          currentPlaybackTime currentPlaybackTime
          N/A cachePauseTimeInSeconds
          N/A setFirstBufferingTime

          Figure 3 Method Comparison

          MPMoviePlayerController CyberPlayerController
          – initWithContentURL: – initWithContentURL:
          N/A – initWithContentString:
          - setFullscreen:animated: N/A
          - timedMetadata: N/A
          - beginSeekingBackward: N/A
          - beginSeekingForward: N/A
          - endSeeking: N/A
          N/A - seekto:
          - thumbnailImageAtTime:timeOption: N/A
          - requestThumbnailImagesAtTimes:timeOption: N/A
          - cancelAllThumbnailImageRequests: N/A
          - play: – play:
          N/A – start:
          - pause: – pause:
          - stop: – stop:
          -prepareToPlay: – prepareToPlay:
          N/A – getSDKVersion:
          N/A + setBAEAPIKey:SecretKey:

          Figure 4 Constant Comparison

          MPMoviePlayerController CyberPlayerController
          MPMovieLoadState N/A
          MPMovieControlStyle N/A
          MPMovieFinishReason N/A
          MPMoviePlaybackState CBPMoviePlaybackState
          MPMovieRepeatMode N/A
          MPMovieScalingMode CBPMovieScalingMode
          MPMovieTimeOption N/A
          MPMovieMediaTypeMask N/A
          MPMovieSourceType N/A
          Thumbnail Notification User Info Keys N/A
          Fullscreen Notification Keys N/A
          Playback Finished Notification Key N/A
          MPMovieControlMode N/A

          Figure 5 Notification Comparison

          MPMoviePlayerController CyberPlayerController
          MPMovieDurationAvailableNotification CyberPlayerLoadDidPreparedNotification
          MPMovieMediaTypesAvailableNotification N/A
          MPMovieNaturalSizeAvailableNotification CyberPlayerLoadDidPreparedNotification
          MPMoviePlayerContentPreloadDidFinishNotification N/A
          MPMoviePlayerDidEnterFullscreenNotification CyberPlayerLoadDidPreparedNotification
          MPMoviePlayerDidExitFullscreenNotification N/A
          MPMoviePlayerIsAirPlayVideoActiveDidChangeNotification N/A
          MPMoviePlayerLoadStateDidChangeNotification N/A
          MPMoviePlayerNowPlayingMovieDidChangeNotification N/A
          MPMoviePlayerPlaybackDidFinishNotification CyberPlayerPlaybackDidFinishNotification
          MPMoviePlayerPlaybackStateDidChangeNotification CyberPlayerPlaybackStateDidChangeNotification
          MPMoviePlayerScalingModeDidChangeNotification N/A
          MPMoviePlayerThumbnailImageRequestDidFinishNotification N/A
          MPMoviePlayerWillEnterFullscreenNotification N/A
          MPMoviePlayerWillExitFullscreenNotification N/A
          MPMovieSourceTypeAvailableNotification N/A
          MPMoviePlayerReadyForDisplayDidChangeNotification N/A
          N/A CyberPlayerStartCachingNotification
          N/A CyberPlayerGotCachePercentNotification
          N/A CyberPlayerPlaybackErrorNotification
          N/A CyberPlayerSeekingDidFinishNotification
          N/A CyberPlayerCurrentPositionNotification
          Previous
          Quick Start
          Next
          Introduction