Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b940994f
authored
Aug 25, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
a482527a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
src/views/crowdfunding/components/LiveBox.vue
src/views/crowdfunding/components/LiveBox.vue
View file @
b940994
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment