1.1.1. 获得视频地址

客

方法名称: getVideo

方法说明: 得到视频客户端地址

参数说明:(“-”为子级标识)

参数位序号 参数名称 参数类型 参数说明 参数是否必须 如果是回调其回传参数
1 配置参数项 object 配置参数对象
- -completed function 获取信息的回调
id 标示 随机生成或者input 的id
address 视频本地地址
type 视频类型
size 视频限制大小(单位k)
duration 时长限制(单位秒)
js object
{id: '', address: [], type: [], size: '', duration: ''}
- -cpIncompatible function 环境没有实现此方法的回调
- -id string 标示 随机生成或者input 的id
- -type array 视频类型 ['avi', 'mpg']
- -count array 可选视频数
- -size int 视频大小限制(单位k)
- -duration int 视频时长(单位秒)

调用样例:

CP.getVideo({
    completed: function(data){
        // data > {id: '', address: [], type: [], size: '', duration: ''}
        CP.tools.writelog('get_video', data);
    },
    cpIncompatible: function () {
         CP.tools.writelog('', '此环境不支持此方法');
    },
    id:  'v_123',
    type: ['avi', 'mpg'],
    count: 1,
    size: 2048,
    duration: 60,
});
Copyright © 新媒体云服务平台 2019 all right reserved,powered by Gitbook该文件修订时间: 2022-08-12 17:13:14

results matching ""

    No results matching ""