相关疑难解决方法(0)

如何播放本地视频文件?

我用我的屏幕(桌面)捕获软件创建了.mov视频文件,我想在UIWebview中的应用程序中播放该视频.有没有办法播放该视频或任何其他方式,以便我可以为我的本地视频创建一个URL ???

现在我使用默认视频链接在UIWebview中播放视频.

这是代码:

- (void)applicationDidBecomeActive:(UIApplication *)application 
{

    self.viewVideoDisplay.frame = CGRectMake(0, 0, 1024, 1024);
    [self.window addSubview:self.viewVideoDisplay];
    [self.window bringSubviewToFront:self.viewVideoDisplay];
    NSString *urlAddress = @"https://response.questback.com/pricewaterhousecoopersas/zit1rutygm/";
    //Create a URL object.
    NSURL *url = [NSURL URLWithString:urlAddress];            
    //URL Requst Object
    NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];            
    //Load the request in the UIWebView.
    [self.webViewVideo loadRequest:requestObj];

    IsLoadingSelf = YES;
}
Run Code Online (Sandbox Code Playgroud)

但是我没有想要播放的视频网址..

请帮助!!

iphone video objective-c uiwebview ios

14
推荐指数
2
解决办法
4万
查看次数

标签 统计

ios ×1

iphone ×1

objective-c ×1

uiwebview ×1

video ×1