File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,11 @@ Photos.framework
91911 . 根据需要接入的` SDK ` 创建` VPInterfaceControllerConfig ` ,将` SDK ` 需要的信息配置在` config ` 中。
9292
9393 * identifier 为点播视频url或直播房间号
94+ * episode 为剧集名称,例如 陈情令
95+ * title 为视频标题,例如 陈情令 第02集
9496 * types 为视频类型(点播or直播),默认为点播(注:`VPInterfaceControllerTypeVideoOS` 表示点播,`VPInterfaceControllerTypeLiveOS` 表示直播)
97+
98+ 注:identifier,episode,title为必填字段
9599
961002 . 利用生成的` config ` 初始化` InterfaceController ` , ` interfaceController.view ` 就是生成的互动层,将这个` view ` 添加到播放器层之上就可以了。根据接入的` SDK ` 的需求可能有一些特殊的接口,放在相应的文件中,如需要调用,将对应文件` import ` 就可以调用了,详细作用请看注释。
97101
@@ -139,7 +143,6 @@ Photos.framework
1391431 . VPIUserLoginInterface 和 VPIUserInfo, VPIUserInfo用来组装用户实例, VPIUserLoginInterface 用来获取关于用户数据的回调;
140144 * ```- (VPIUserInfo *)vp_getUserInfo``` 通过平台方得到你们的userInfo
141145 * ``` - (void)vp_userLogined:(VPIUserInfo *) userInfo ``` 通过sdk的webView登陆后会给你们对应的用户信息
142- * ``` - (void)vp_notifyScreenChange:(NSString *)url ``` 当需要切成竖屏时会发出这个通知,传入的url需要打开 ``` VPIPubWebView ``` 并调用` loadUrl `
143146
144147#### 获取互动层状态信息
145148VPInterfaceStatusNotifyDelegate ``` - (void)vp_interfaceActionNotify ``` , 会回传互动层状态和需要的操作
@@ -150,6 +153,15 @@ VPInterfaceStatusNotifyDelegate ```- (void)vp_interfaceActionNotify```, 会回
150153* actionType 为对接方需要做的操作,包括打开外链,暂停视频,播放视频
151154* url 为外链地址
152155
156+ 注:该接口必须实现
157+
158+ #### 切换屏幕方向
159+ VPInterfaceStatusNotifyDelegate ``` - (void)vp_interfaceScreenChangedNotify ``` , 通知平台切换设备方向
160+
161+ * orientation 1为竖屏,2为横屏
162+
163+ 注:该接口必须实现
164+
153165#### 前后帖、暂停广告
154166创建一个` VPIServiceConfig ` ,设置前后帖、暂停广告的相关参数,通过` - (void)startService:(VPIServiceType )type config:(VPIServiceConfig *)config ` 方法启动相关服务,在serviceDelegate中可以收到执行结果的回调
155167
You can’t perform that action at this time.
0 commit comments