|
downloadManager.query({
ids: [],
status:""
}, function(ret, err) {
console.log(ret);
var checkInfo =fnCheckViewUrlIsExistDownFileList(viewUrl,ret.data);
// alert(JSON.stringify(checkInfo))
// 注意下面的判断,因为这里不做缓存 所以只判断 下载状态、文件是否存在即可,其他状态视同为缓存播放
if(ret&&checkInfo.status=='3'&&checkInfo.isExist=='1')
{
api.setScreenOrientation({
orientation: 'landscape_right',
});
// 跳播放页面
api.openWin({
name: 'viewUrl',
url: './viewUrl.html',
pageParam:{'viewUrl':viewUrl}
});
}
else {
fnGoClassPlaying(allParam);
}
})
|
|