我有一个YouTube 视频链接……时长 4:04
我只想播放 2:05 到 2:35 的 YouTube 视频。
我用谷歌搜索,发现播放某个时间的视频。
来源是:http ://answers.oreilly.com/topic/1206-how-to-link-to-a-specific-point-in-a-youtube-video/
但我的要求是在两个时间间隔之间播放..
我正在使用 webview 播放 YouTube 视频。这是我的代码。
NSString *youTubeVideoPlayWebUrl1=@"http://www.youtube.com/watch?v=6zv-Uvo_Kq8";
NSString *embedHTML=[NSString stringWithFormat:@"<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=320.0 height=200.0></embed></body></html>",youTubeVideoPlayWebUrl1];
NSLog(@"my embedhtml string is %@",embedHTML);
[WebView loadHTMLString:embedHTML baseURL:nil];