Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
  • Property List of MPMoviePlayerController for iOS

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 678
    Comment on it

    There are several properties available for MPMoviePlayerController in iOS. We just need to use them to play the movie according to our need.

    You can access these properties like this:-

    Create property in .h file

        @property (strong, nonatomic) MPMoviePlayerController *player;

    in .m file

        _player = [[MPMoviePlayerController alloc] initWithContentURL:_movieUrl];
    _player.controlStyle = MPMovieControlStyleEmbedded;

    Here are those:-

    Property Types for ScalingMode are -

    MPMovieScalingModeNone,       // No scaling
    MPMovieScalingModeAspectFit,  // Uniform scale until one dimension fits
    MPMovieScalingModeAspectFill, // Uniform scale until the movie fills the visible bounds. One dimension may have clipped contents
    MPMovieScalingModeFill        // Non-uniform scale. Both render dimensions will exactly match the visible bounds

    Movie playback properties are-


    Movie load state properties are-

    MPMovieLoadStateUnknown        = 0,
    MPMovieLoadStatePlayable       = 1 << 0,
    MPMovieLoadStatePlaythroughOK  = 1 << 1, // Playback will be automatically started in this state when shouldAutoplay is YES
    MPMovieLoadStateStalled        = 1 << 2, // Playback will be automatically paused in this state, if started

    Movie repeat mode property-


    Movie controls properties are-

    MPMovieControlStyleNone,       // No controls
    MPMovieControlStyleEmbedded,   // Controls for an embedded view
    MPMovieControlStyleFullscreen, // Controls for fullscreen playback
    MPMovieControlStyleDefault = MPMovieControlStyleEmbedded

    Movie Finish or Stop reason properties are-


    Movie media property types-

    MPMovieMediaTypeMaskNone  = 0,
    MPMovieMediaTypeMaskVideo = 1 << 0,
    MPMovieMediaTypeMaskAudio = 1 << 1

    Movie or media source type property-

    MPMovieSourceTypeFile,     // Local or progressively downloaded network content
    MPMovieSourceTypeStreaming // Live or on-demand streaming content

    Happy Coding!!!

 0 Comment(s)

Sign In

Sign up using

Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: