Commit b940994f by 李伟康

提交代码

1 parent a482527a
...@@ -55,26 +55,26 @@ export default { ...@@ -55,26 +55,26 @@ export default {
wx.getNetworkType({ wx.getNetworkType({
success: (result) => { success: (result) => {
_this.player = TCPlayer("player-container-id", { _this.player = TCPlayer("player-container-id", {
fileID: "387702305029179223", fileID: "387702305029179223", //点播ID
appID: "1311227058", appID: "1311227058", //点播APPID
autoplay: true, autoplay: true, //自动播放
loop: true, loop: true, // 循环播放
// muted: true, // muted: true, //是否静音
controlBar: { controlBar: { //控制条配置
fullscreenToggle: false fullscreenToggle: false //隐藏全屏按钮
}, },
webrtcConfig: { webrtcConfig: { //webrtcConfig 参数列表
showLog: true showLog: true //打印webrtc日志
} }
}) })
// _this.player.src('http://play.glsx.com.cn/live/live.m3u8') // _this.player.src('http://play.glsx.com.cn/live/live.m3u8') //直播地址
_this.player.volume(0) _this.player.volume(0) //设置音量 0 - 1
_this.player.ready(function () { _this.player.ready(function () { //设置播放器初始化完成后的回调
_this.player.play() _this.player.play() //播放视频
}) })
_this.player.on('webrtcevent', function (event) { _this.player.on('webrtcevent', function (event) { //监听webrtc
console.log(event) console.log(event)
}) })
} }
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ 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) // video.setAttribute('muted', false)
console.log(video) console.log(video)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!