Commit b940994f by 李伟康

提交代码

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