1.getVideoPath

功能

从手机中选取视频文件,获取视频路径。

参数

参数名 参数类型 参数描述 参数备注
callback function 选取视频完后的回调,参数videoPath表示选取的视频地址 获取视频地址

范例

IpuMobile.getVideoPath(function(videoPath) {  
    $("#videoPath").html(videoPath); 
});

备注

2.videoCompressor

功能

将地址中的视频,通过参数:比特率,视频宽、高,进行视频压缩。

参数

参数名 参数类型 参数描述 参数备注
videoPath string 需要压缩的视频地址
bitrate int 比特率 视频质量参数,越大文件越大
width int 视频宽度 压缩后的宽度
height int 视频高度 压缩后的高度

范例

IpuMobile.videoCompressor(videoPath,300000,640,360);

备注

Copyright © aiipu.com 2017 all right reserved,powered by Gitbook该文件修订时间: 2020-09-01 15:11:34

results matching ""

    No results matching ""