sasasndf1
sasasndf1
  • 发布:2018-05-30 08:36
  • 更新:2021-08-30 15:48
  • 阅读:1079

第三方插件是个viewcontroller,你们谁能机智取出?

分类:5+ SDK

需求

在html5里面要配置一个第三方的播放器,播放器为一个viewcontroller.

具体实现

现在利用pgplugin已经能够用ios的原生sdk播放视频了,具体思想是在自己的插件类pgplugintest.m里面跳转进入该播放器viewcontroller,code为:

    PlayerViewController* playerViewController = [[PlayerViewController alloc] init];  
    [self presentViewController:playerViewController animated:YES completion:nil];

问题

现在用Html中的js调用感觉是打开了新的一个原生viewcontroller,该vc在播放视频,而且是一个全屏效果,但是在html页面中其实播放器应该占据该html页面的1/3就可以了,其他还要用html来写,有人有思路么?

2018-05-30 08:36 负责人:无 分享
已邀请:
sasasndf1

sasasndf1 (作者)

一个星期的oc菜鸟跪求大神指点

牯牛

牯牛

老哥解决了么

该问题目前已经被锁定, 无法添加新回复