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

  • SEARCH
  • Home
  • 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 1078207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:41:19+00:00 2026-05-16T21:41:19+00:00

iam using mediaplayercontroller in iphone and in this i am able to run video

  • 0

iam using mediaplayercontroller in iphone and in this i am able to run video from my app resorce folder but when i want to play youtube video on it then i Found Server is not Configured Error i am able to run it through two method 1)by openurl 2)mapview but when i passes url to it then it not play video i have download the sample code from apple site and i found same error for that server is not configured.. nad after seraching in thenet that this is erroo of bad url which i got from the url is it correct or not i am not sure..i am writing my code here

// has the user entered a movie URL?
 if (self.movieURLTextField.text.length > 0)
 {
  NSURL *movieURL = [NSURL URLWithString:self.movieURLTextField.text];
  if (movieURL)
  {
   if ([movieURL scheme]) // sanity check on the URL
   {
    MoviePlayerAppDelegate *appDelegate = (MoviePlayerAppDelegate *)[[UIApplication sharedApplication] delegate];

    // initialize a new MPMoviePlayerController object with the specified URL, and
    // play the movie
    [appDelegate initAndPlayMovie:movieURL];
   }
  }
 }

waiting for the fruitful result….thanks

  • 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-16T21:41:19+00:00Added an answer on May 16, 2026 at 9:41 pm

    You can’t directly link to the YouTube video from the MPMoviePlayerController. You need to open up a UIWebView and link to the resource from there. UIWebView detects that it is a YouTube video and handles it appropriately with the YouTube mobile app, which will subsequently return to your app. See http://iphoneincubator.com/blog/audio-video/how-to-play-youtube-videos-within-an-application

    Edit: To autoplay, you’ll need to find the play button in the UIWebView and send it a press event(UIControlEventTouchUpInside). The following link has an excellent example. http://boydlee.com/2010/05/auto-playing-a-youtube-video-inside-uiwebview/

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

Sidebar

Related Questions

iam using jquery and want to do below written //this is a template <div
iam using rails with formtastic for my admin backend. i want to be able
iam using AVFoundation Framework to play mp3 file ,everything works great ، i have
iam using c#,asp.net and iis, i want to simulate slow internet connection on my
HI all, Iam using VS2008 and SQL2008 i want to access my stored procedures
i want to make a tri-state checkbox inside listview control, iam using image list
Iam using the following code in my file for overlay image.This works fine in
iam using Asp.Net 2010 and MVC3 framework..I am new to this. When user registers
I have a select menu that iam using to change the laguage to this
Iam using Drupal 6. I want to implement Captcha in static pages. I have

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.