阿里云视频

This commit is contained in:
2024-08-09 16:38:57 +08:00
parent 75412f2954
commit 9d87cc70a9
3 changed files with 97 additions and 118 deletions

View File

@@ -29,7 +29,6 @@
此设备暂不支持观看当前视频<br />请移步到安卓手机进行学习
</view>
<view v-else>
<!-- <view style="color: #fff">组件index页面{{ showAliYunPlayer }}</view> -->
<common-list-aliyun
id="AliPlayer"
:showAliYunPlayer="showAliYunPlayer"
@@ -114,9 +113,6 @@ export default {
// if (!this.isfresh) {
this.videoData = {};
this.showAliYunPlayer = false;
// this.destory();
// } else {
this.platform = this.$platform;
this.show = false;
this.isOnLoad = false;
@@ -128,11 +124,6 @@ export default {
this.$nextTick(() => {
this.checkVideo();
});
// }
// if (this.showAliYunPlayer) {
// this.$refs.commonVideoAliyun.destory();
// }
}
},
},
@@ -141,8 +132,6 @@ export default {
mounted() {},
//子组件销毁前
beforeDestroy() {
// this.$refs.commonVideoAliyun.$destroy();
console.log("index页面触发销毁");
plus.screen.lockOrientation("portrait-primary");
},
beforeUpdate() {},
@@ -262,9 +251,7 @@ export default {
created() {
if (typeof window.Aliplayer === 'function') {
// this.initEcharts()
} else {
// 动态引入较大类库避免影响页面展示
this.loadWebPlayerSDK(); //引入播放器sdk、css
@@ -274,15 +261,11 @@ export default {
mounted() {
if (typeof window.Aliplayer === 'function') {
// this.initEcharts()
this.initAliPlayer();
}
},
destroyed(){
$("#Aliyun").empty();
console.log('index页面触发onUnload:', 2222)
},
methods: {
@@ -292,11 +275,7 @@ export default {
initAliPlayer() {
this.$refs.AliyunFresh.click()
},
receiveMsg(newValue, oldValue, ownerVm, vm) {
}, //是否刚开始设置播放时间
receiveMsg(newValue, oldValue, ownerVm, vm) {}, //是否刚开始设置播放时间
//引入播放器sdk、css
loadWebPlayerSDK() {
return new Promise((resolve, reject) => {