diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 6aa095d..61571fc 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -488,7 +488,7 @@ const loadTplayer = () => { videoEl.setAttribute("preload", "auto"); videoEl.setAttribute("style", "object-fit: cover;"); - videoEl.setAttribute("muted", ""); + // videoEl.setAttribute("muted", ""); videoEl.setAttribute("autoplay", ""); videoEl.setAttribute("id", "player-container-id"); videoEl.setAttribute("class", "w-full h-full"); @@ -499,12 +499,12 @@ const loadTplayer = () => { player.value = TCPlayer("player-container-id", { autoplay: true, - muted: true, + muted: false, preload: "auto", controlBar: { playToggle: true, progressControl: false, - volumePanel: false, + volumePanel: true, currentTimeDisplay: false, durationDisplay: false, timeDivider: false, @@ -530,7 +530,7 @@ const loadTplayer = () => { "https://license.vod2.myqcloud.com/license/v2/1327927250_1/v_cube.license", // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl }); - player.value.muted(true); + // player.value.muted(true); }; const initPlayer = () => {