ios - MPMoviePlayerController stream -


i have video "movie.mov". when try read xcode project mpmovieplayercontroller, works perfectly. when try read url "http://www.ebookfrenzy.com/ios_book/movie/movie.mov", works well. but! when put video on nas server, link in form: "http://myserver.com/file.php?id=3261c359e84a235d0761b182e445c28c6" , video not read.

however, when paste link vlc, chrome or safari, works. it's link..

so what's problem?

//work! nsstring* path=[[nsbundle mainbundle] pathforresource:@"movie" oftype:@"mov"]; nsurl* url = [nsurl fileurlwithpath:thepath];  //work! nsurl* url = [nsurl urlwithstring:@"http://www.ebookfrenzy.com/ios_book/movie/movie.mov"];  //not work! nsurl* url = [nsurl urlwithstring:@"[http://myserver.com/file.php?id=3261c359e84a235d0761b182e445c28c6][1]"];  mpmovieplayercontroller mmovieplayer =  [[mpmovieplayercontroller alloc]                      initwithcontenturl:url];     [[nsnotificationcenter defaultcenter] addobserver:self                                              selector:@selector(donebuttonclick:)                                                  name:mpmovieplayerwillexitfullscreennotification                                                object:nil];     [mmovieplayer setshouldautoplay:yes];     [self.view addsubview:mmovieplayer.view];     [mmovieplayer setfullscreen:yes]; 

(of course, used url 1 after other)

when did not work, player starts nothing happens.

if there has solution, me!

edit :

i sent .m3u8 file on nas server. , can read it. .mp4 .mov can not read?


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -