|
<img src="" id="img1" alt="">
在页面上添加一个img标签。
使播放器播放。
调用这个接口,看能把截图显示出来不能?
function fnsnapShot() {
var alivcLivePlayer = api.require('alivcLivePlayer');
alivcLivePlayer.snapShot({
path: 'fs://testdhgj/ttt0453647.jpg'
}, function (ret) {
api.alert({
msg: JSON.stringify(ret)
})
document.getElementById('img1').src = api.fsDir + '/testdhgj/ttt0453647.jpg'
})
} |
|