Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to play a video file ios

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 92
    Comment on it

    Hello Friends,

    Create an object of MPMoviePlayerController:

    MPMoviePlayerViewController *moviePlayerController;
            NSURL *videoUrl=[NSURL URLWithString:@"String value of your url"];
    Initialize the instance of MPmoviePlayerViewController with the url:
            moviePlayerController = [[MPMoviePlayerViewController alloc] initWithContentURL:videoUrl];
    
    **Present the controller as follows:**
            [self presentMoviePlayerViewControllerAnimated:moviePlayerController];
            [moviePlayerController.moviePlayer prepareToPlay];
            moviePlayerController.moviePlayer.shouldAutoplay=YES;
            [moviePlayerController.moviePlayer play];
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
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: