mirror of
https://github.com/bytedance/xgplayer.git
synced 2025-04-05 11:18:46 +08:00
fix: assign hasVideo based on video track
This commit is contained in:
parent
c945b03dae
commit
0ebb47956e
@ -146,7 +146,7 @@ class HlsJsPlugin extends BasePlugin {
|
||||
|
||||
hls.on(Hls.Events.FRAG_PARSING_INIT_SEGMENT, (flag, payload) => {
|
||||
mediainfo.hasAudio = !!((payload.tracks && payload.tracks.audio))
|
||||
mediainfo.hasVideo = !!((payload.tracks && payload.tracks.audio))
|
||||
mediainfo.hasVideo = !!((payload.tracks && payload.tracks.video))
|
||||
|
||||
if (mediainfo.hasAudio) {
|
||||
const track = payload.tracks.audio
|
||||
|
Loading…
x
Reference in New Issue
Block a user