|
@@ -295,15 +295,21 @@ export default {
|
|
|
},
|
|
|
// 获取视频地址
|
|
|
getStoreVideoUrl(item) {
|
|
|
+ let _this = this
|
|
|
getVideoUrl({ streamId: item.streamId, outProtocol: 'hls' }).then(res => {
|
|
|
console.log(res);
|
|
|
if (res.status == 200 && res.data) {
|
|
|
this.wv.evalJS("vm.getVideoUrlSuccess('" + res.data.url + "')");
|
|
|
} else {
|
|
|
- uni.showToast({
|
|
|
- icon: 'none',
|
|
|
- title: '获取视频地址失败,请返回重试'
|
|
|
- });
|
|
|
+ clzConfirm({
|
|
|
+ title: '提示',
|
|
|
+ content: '获取视频地址失败,点击确定重试?',
|
|
|
+ showCancel: false,
|
|
|
+ buttons:['确定'],
|
|
|
+ success: function(res){
|
|
|
+ _this.getStoreVideoUrl(item)
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
});
|
|
|
},
|