Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 941025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:03:06+00:00 2026-05-15T22:03:06+00:00

HI, i´ve created a new MPMoviePlayerController instance and init that with a contentURL like

  • 0

HI,
i´ve created a new MPMoviePlayerController instance and init that with a contentURL like this:

    player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:url]];
    player.view.frame = rect;
    [myView addSubview:player.view];
    [player play];

Although “play” is a instance variable of the “MPMediaplayback”, i can´t get the “isPreparedToPlay” property.

EDIT:
I´ve read that if i want to use the “MPMediaPlayback”-protocol, i have to add it in my @interface like this:

@interface MyViewController : UIViewController <MPMediaPlayback> 

But how can i use these properties correctly?

Why? Using SDK4.0. Thanks for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T22:03:06+00:00Added an answer on May 15, 2026 at 10:03 pm

    You do not need to add any protocols, the documentation was indicating that the method is part of the MPMediaPlayback protocol (which the MPMoviePlayer object implements).

    You should be able to write the following:

    BOOL ready = [player isPreparedToPlay];
    

    You may need need a header file.

    #import <MediaPlayer/MediaPlayer.h>
    

    Good luck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have created a new List View Style that shows thumbnails from a picture
I have created a new solution with a minimal amount of code that represents
This is happening on Vista. I created a new dialog based MFC project to
I am new to Windows Mobile and created an app that needs to do
I created new cPanel account, using this account created new database, new database user
I had stored procedure MySPOld in Sybase db. I created new sp MySP. This
I created a global variable: MPMoviePlayerController *player; I play the video with the following
I created a new SharePoint portal for testing purposes using a manually added HOSTS
I created a new email box for general support questions. When I try to
I've just created a new Windows XP VM on my Mac using VMware Fusion.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.