iphone.im에서 iphone.im의 json 피드를 파싱하고 있습니다. webview.since에서 동영상을 재생하고 있습니다. 동영상을 재생하는 데 WebView를 사용하지만 특정 동영상 만 문제가됩니다. 점점 더 특정되지 않습니다. 코드는특정 Youtube URL이 iOS에서 재생되고 있습니다.
- (void)embedYouTube:(NSString*)url frame:(CGRect)frame {
NSString* embedHTML = @"\
<html><head>\
<style type=\"text/css\">\
body {\
background-color: transparent;\
color: white;\
}\
</style>\
</head><body style=\"margin:0\">\
<embed id=\"yt\"src=\"%@\" type=\"application/x-shockwave-flash\"\
width=\"%0.0f\" height=\"%0.0f\"></embed>\
</body></html>";
NSString* html = [NSString stringWithFormat:embedHTML, url, frame.size.width, frame.size.height];
[youTubeWebView loadHTMLString:html baseURL:nil];
}
이 비디오를 사용할 수 없다는 오류 메시지가 표시됩니까? –
오류가 발생하지 않았습니다. 취소 된 재생 버튼을 얻는 중 – user578386
나에게 하나만 표시되고 작동하지 않는 것은 하나만 표시합니다. – Jessedc