UIWebView에서 비디오를 재생하고 싶습니다. 이 비디오는 내 앱에 저장되어 있습니다 (서버에서 제공되지 않는 로컬 비디오입니다).iPhone : WebView에서 로컬 비디오를 재생하는 방법?
MPMoviePlayerController
을 사용하고 싶지 않습니다.
NSString *url = @"http://my_url.com/my_movie_path/";
UIWebView* tempAudioPlayer = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
[tempAudioPlayer loadHTMLString:[NSString stringWithFormat:@"<iframe frameborder=\"0\" width=\"0\" height=\"0\" src=\"%@\"></iframe>", url] baseURL:nil];
[self addSubview:tempAudioPlayer];
하지만 나를 위해이 작동하지 않습니다.
MPMoviePlayerController
없이 동영상을 재생할 수있는 다른 방법이 있습니까?
어떻게해야합니까?
DUPE http://stackoverflow.com/questions/4836595/playing-a-local-video-in-a-uiwebview – box86rowh
여기에 현지 비디오가 있습니다. – Devang
다른 하나는 uiwebview에 대한 기본 경로를 설정해보십시오. – box86rowh