2023年6月28日 修复问题
This commit is contained in:
parent
ca421aae3d
commit
65b5b9b28c
|
@ -202,10 +202,17 @@ function bVideoClick(e:any){
|
|||
//不存在??
|
||||
console.log('重新初始化');
|
||||
mainVideo.value.init();
|
||||
mainVideo?.player?.src([{type:'application/x-mpegURL',src }])
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
mainVideo?.player?.muted(false);
|
||||
},50);
|
||||
let buttonEl = mainVideo?.player.el().querySelector('.changeDefinitionBtn');
|
||||
//赋值原URL
|
||||
if(buttonEl){
|
||||
buttonEl.dataset.url = src;
|
||||
}
|
||||
}
|
||||
|
||||
//窗口关闭时停止播放
|
||||
|
|
|
@ -46,7 +46,8 @@
|
|||
</a-col>
|
||||
<a-col :lg="8">
|
||||
<a-form-item label="评课身份">
|
||||
<a-input placeholder="请输入评课身份" v-model:value="queryParam.tksfLike"/>
|
||||
<!-- <a-input placeholder="请输入评课身份" v-model:value="queryParam.tksfLike"/> -->
|
||||
<j-dict-select-tag placeholder="请选择评课身份" v-model:value="queryParam.tksfLike" style="width: 100%;" dictCode="pjlbtjsf" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="8">
|
||||
|
|
|
@ -44,6 +44,7 @@ function init(){
|
|||
let option = {};
|
||||
if(props.src){
|
||||
option = {
|
||||
muted: true,
|
||||
sources: [ { type: props.type, src: props.src, } ]
|
||||
};
|
||||
}
|
||||
|
@ -94,6 +95,7 @@ function init(){
|
|||
let _videojs: any = videojs;
|
||||
|
||||
|
||||
return;
|
||||
_playerMain.controlBar.addChild('Button', {
|
||||
text: '选择清晰度',
|
||||
el: _videojs.createEl('button', {
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
</template>
|
||||
<div style="padding: 1rem;">
|
||||
<div >{{ mainVideoCardBoxTitle || '' }}</div>
|
||||
<bVideo ref="mainVideo" videoId="mainVideo" :videoOption="{ autoplay: true }"/>
|
||||
<bVideo ref="mainVideo" videoId="mainVideo" :videoOption="{ autoplay: true }" @load-end="mainVideoLoadEnd"/>
|
||||
<div style="width: 100%;margin-top:10px;">
|
||||
<a-textarea style="width: calc(100% - 7rem);height:120px;float: left;" v-model:value="model.notes" placeholder="您可以填写听课笔记"></a-textarea>
|
||||
<div style="width: 7rem;height: 100%;float: right;">
|
||||
|
@ -175,15 +175,27 @@ function changeLive(item:any){
|
|||
let mainVideo = document.querySelector<any>('#mainVideo');
|
||||
// mainVideo?.player?.src([{ type:'application/x-mpegURL',src: 'http://127.0.0.1/live_hls/a.m3u8' }])
|
||||
mainVideo?.player?.src([{ type:'application/x-mpegURL',src: url }])
|
||||
|
||||
mainVideoCardBoxTitle.value = item.jsmc+item.xm;
|
||||
console.log(`🚀 --------------------------------------------------------------------------------🚀`);
|
||||
console.log(`🚀 ~ file: viewPage.vue:164 ~ changeLive ~ mainVideo?.player:`, mainVideo?.player);
|
||||
console.log(`🚀 --------------------------------------------------------------------------------🚀`);
|
||||
let buttonEl = mainVideo?.player.el().querySelector('.changeDefinitionBtn');
|
||||
//赋值原URL
|
||||
buttonEl.dataset.url = url;
|
||||
if(buttonEl){
|
||||
buttonEl.dataset.url = url;
|
||||
}
|
||||
|
||||
curentPlayerVideo.value = item;
|
||||
}
|
||||
|
||||
function mainVideoLoadEnd(player){
|
||||
setTimeout(() => {
|
||||
setTimeout(() => {
|
||||
player.muted(false);
|
||||
//player.play();
|
||||
},50);
|
||||
},50);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue