Skip to content

xgpalyer-hls plugins 事件无法回调 #1862

@JusticHentai

Description

@JusticHentai

您使用的西瓜播放器版本是多少? What version of xgplayer are you using?
3.0.23

您使用的操作系统和浏览器分别是? What OS and browser are you using?
ios safari

如何复现问题? How to reproduce the problem?

const player = new Player({
      el,
      url,
      plugins: [HlsPlugin],
      isLive: true,
    })

player.getPlugin('Hls').on(HlsEvent.HLS_MANIFEST_LOADED, () => {
      console.log('=== hls ===')
 })

player.on('core_event', () => {
      console.log('=== core event ===')
})

player.on(HlsEvent.HLS_MANIFEST_LOADED, () => {
      console.log('=== event ===')
})

您期望的播放器正常行为是? What did you expect to happen?

hls 能够正常回调事件

实际播放器的表现是? What actually happened?

没有任何事件回调

可填写您所在的公司和相关产品业务,方便我们提供更好的技术支持 You can write your company and product which uses xgplayer, for helping us provide better technical support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions