开发者

playing stream video using UIWebView issue

I'm currently developing an ipad application that will play video from wowza streamiong server.

Plainly saying, I load video into UIWebView as follows:

NSURL *videoURL = [NSURL URLWithString:@"http://fishki.tv:1935/vod/mp4:20100731194117.mp4/playlist.m3u8"];

NSURLRequest *requestObj = [NSURLRequest requestWithURL:videoURL];
UIWebView * WView = [[UIWebView alloc] init];

WView.frame = CGRectMake(0,0,300,200);
[self.view addSubview:WView];

[WView loadRequest:requestObj];

It plays video ok (you can try yourself), BUT when i try to load another video (or even the same one) by changing videoURL and calling loadRequest method again, it plays only sound without video. I'm starting to think that it is a bug in ipad simulator because I was unable to fix it anyhow.

I would be glad to hear any suggestions because I also was unable 开发者_运维技巧to find similar problem on the web. Thanks in advance.


The web view behaves erratically on Simulator. Can you try the same on a regular device? I believe it might actually be working.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜