MPMoviePlayerController and ASPX

Discussion in 'iOS Programming' started by Jyhnc, Feb 10, 2009.

  1. Jyhnc macrumors newbie

    Joined:
    Feb 10, 2009
    #1
    Hi,

    I had a question about using aspx link with the MPMoviePlayerController. Currently the MPMoviePlayerController is getting the movie from a URL to the actual mp4 file. I like to move it behind an aspx so different file is served based on the condition.

    When I ask the MPMoviePlayerController to use the aspx link, it complains "This movie could not be played". But its the same file, and checking the actual data stream shows no difference.

    Could someone please tell me how to get MPMoviePlayerController to work with aspx link?

    Thanks!
     
  2. macbuddy45 macrumors newbie

    Joined:
    Mar 25, 2009
    #2
    I am trying to do exactly the same thing - haven't gotten anything to work yet though. the only difference between the download from a straight MP4 file URL and download through the ASPX are the HTTP headers. Mime type ir correct, but Cache-Control is private and it doesn't have an etag. I'm currently trying to see if changing those makes a difference.
     
  3. jnic macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #3
    It may also be looking at the file extension as an indicator to the content. Maybe try a little mod_rewrite?
     

Share This Page