Skip to content

获取当前播放位置 ​

方法名 ​

getCurrentPosition

用法 ​

用法示例 ​

js
module.getCurrentPosition(res => {
  console.log(res)
});

参数说明 ​

无

回调 ​

回调示例 ​

json
{
    "data": {
        "position": 5905
    },
    "message": "",
    "code": 0
}

回调说明 ​

参数名参数类型参数描述
messageString消息提示
dataObject数据对象
data.positionInteger当前播放位置,单位:毫秒
codeInteger返回类型,0.成功,其他:失败