playing a local video in a uiwebview

后端 未结 4 1892
感情败类
感情败类 2021-01-01 02:35

i load a local html file into an ipad application:

NSURL *baseURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]];
NSString *path = [[NSBundle m         


        
4条回答
  •  渐次进展
    2021-01-01 03:08

    You need to set the allowsInlineMediaPlayback property on the UIWebView:

    [webView setAllowsInlineMediaPlayback:YES];
    

提交回复
热议问题