Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react/ts中使用,构造器中初始化写死m3u8地址可以使用,动态切换播放地址无效 #108

Closed
haoyinag opened this issue Sep 5, 2019 · 0 comments

Comments

@haoyinag
Copy link

haoyinag commented Sep 5, 2019

💬 Questions and Help

  • Read carefully the README of the project
  • Search if your answer has already been answered in old issues

After you can submit your question and we will be happy to help you!
playerProps: {
duration: 0,
cover: bigVideo,
sources: {
hd: {
play_url: 'm3u8地址',
},
},
},

<Player id={styles['player']} {...playerProps} />

1、初始化的时候写死了play_url: 'm3u8地址'能够播放,如果不写死,播放器无效;
2、动态点击某个按钮获取新的直播地址,输入地址正常,当时播放器播放无效;

请问是跟初始化有关吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants