播放器不响应或展示iOS应用程序
iOS应用调用URL视频文件,但没有播放器可以观看视频。 debug屏幕在这里
if([_mServiceID isEqualToString:@"movFilePlay"] == YES)
{
NSString* path = [StandardPlugin.FCM_URL stringByAppendingString:[dic strValueForKey:@"filePath"]];
//NSString *path = [[NSBundle mainBundle]bundlePath];
NSURL *filePath = [NSURL fileURLWithPath:path];
AVPlayer *player =[AVPlayer playerWithURL:filePath];
UIPageViewController *controller= [[UIPageViewController alloc]init];
//controller.player = player;
[self.playerViewController addChildViewController:controller];
// controller.player = player;
[player play];
当我按下文件以打开视频加载以进行第二秒,并且播放器将消失。请帮我谢谢! iPhone creen有一个微小的视频图片
IOS app calling url video file but no player to see the video.
debug screen is here
if([_mServiceID isEqualToString:@"movFilePlay"] == YES)
{
NSString* path = [StandardPlugin.FCM_URL stringByAppendingString:[dic strValueForKey:@"filePath"]];
//NSString *path = [[NSBundle mainBundle]bundlePath];
NSURL *filePath = [NSURL fileURLWithPath:path];
AVPlayer *player =[AVPlayer playerWithURL:filePath];
UIPageViewController *controller= [[UIPageViewController alloc]init];
//controller.player = player;
[self.playerViewController addChildViewController:controller];
// controller.player = player;
[player play];
when I press the file to open video loads for a second and player will disappear. Please help me thanks!
Iphone creen there is tiny picture of video
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
解决方案
html5视频标签 - > Loop Muted Autoplay PlaySinline
刚刚在视频标签中的网页中添加了这些代码。
Solution
HTML5 video tag -> loop muted autoplay playsinline
Just added these codes in web page in video tag.