Commit 40637079 by 李伟康

提交代码

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