como o iOS reproduz o vídeo por URL
Eu quero reproduzir um vídeo pelo URL. Eu vejo alguns exemplos, os códigos como abaixo:
NSString *movieFile= [[NSBundle mainBundle] pathForResource:@"android" ofType:@"mp4"];
videoURL=[[NSURL alloc] initFileURLWithPath:movieFile];
moviePlayer=[[MPMoviePlayerController alloc] initWithContentURL:videoURL];
Execute apenas o recurso local. Escreva um código como:
NSString* strurl =@"https://s3.amazonaws.com/adplayer/colgate.mp4";
videoURL=[NSURL fileURLWithPath:strurl];
moviePlayer=[[MPMoviePlayerController alloc] initWithContentURL:videoURL];
mas não há nada ... por que ... e como reproduzir vídeo pelo UR