This commit is contained in:
@@ -488,7 +488,7 @@ const loadTplayer = () => {
|
|||||||
|
|
||||||
videoEl.setAttribute("preload", "auto");
|
videoEl.setAttribute("preload", "auto");
|
||||||
videoEl.setAttribute("style", "object-fit: cover;");
|
videoEl.setAttribute("style", "object-fit: cover;");
|
||||||
videoEl.setAttribute("muted", "");
|
// videoEl.setAttribute("muted", "");
|
||||||
videoEl.setAttribute("autoplay", "");
|
videoEl.setAttribute("autoplay", "");
|
||||||
videoEl.setAttribute("id", "player-container-id");
|
videoEl.setAttribute("id", "player-container-id");
|
||||||
videoEl.setAttribute("class", "w-full h-full");
|
videoEl.setAttribute("class", "w-full h-full");
|
||||||
@@ -499,12 +499,12 @@ const loadTplayer = () => {
|
|||||||
|
|
||||||
player.value = TCPlayer("player-container-id", {
|
player.value = TCPlayer("player-container-id", {
|
||||||
autoplay: true,
|
autoplay: true,
|
||||||
muted: true,
|
muted: false,
|
||||||
preload: "auto",
|
preload: "auto",
|
||||||
controlBar: {
|
controlBar: {
|
||||||
playToggle: true,
|
playToggle: true,
|
||||||
progressControl: false,
|
progressControl: false,
|
||||||
volumePanel: false,
|
volumePanel: true,
|
||||||
currentTimeDisplay: false,
|
currentTimeDisplay: false,
|
||||||
durationDisplay: false,
|
durationDisplay: false,
|
||||||
timeDivider: false,
|
timeDivider: false,
|
||||||
@@ -530,7 +530,7 @@ const loadTplayer = () => {
|
|||||||
"https://license.vod2.myqcloud.com/license/v2/1327927250_1/v_cube.license", // license 地址,参考准备工作部分,在视立方控制台申请 license 后可获得 licenseUrl
|
"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 = () => {
|
const initPlayer = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user