Commit 40637079 by 李伟康

提交代码

1 parent b940994f
......@@ -57,9 +57,9 @@ export default {
_this.player = TCPlayer("player-container-id", {
fileID: "387702305029179223", //点播ID
appID: "1311227058", //点播APPID
autoplay: true, //自动播放
// autoplay: true, //自动播放
loop: true, // 循环播放
// muted: true, //是否静音
muted: true, //是否静音
controlBar: { //控制条配置
fullscreenToggle: false //隐藏全屏按钮
},
......@@ -86,9 +86,10 @@ export default {
},
methods: {
openFullscreen (status = true) { //打开关闭全屏
let video = document.getElementById('player-container-id_html5_api')
// video.setAttribute('muted', false)
console.log(video)
// let video = document.getElementById('player-container-id_html5_api')
let volume = document.getElementsByClassName('enable-volume-control')[1]
volume.click()
console.log(test)
this.player.volume(status ? 1 : 0)
this.player.play()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!