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

不支持直播吗? #19

Closed
ccallcn opened this issue Nov 1, 2016 · 1 comment
Closed

不支持直播吗? #19

ccallcn opened this issue Nov 1, 2016 · 1 comment

Comments

@ccallcn
Copy link

ccallcn commented Nov 1, 2016

测试了一下,点播flv一切正常,直播时用srs做服务器,obs推流一直没有成功,原因不详;
代码如下:
if (flvjs.isSupported()) {
var videoElement = document.getElementById('my-video');
var flvPlayer = flvjs.createPlayer({
type: 'flv',
isLive: true,
url: 'http://127.0.0.1:8088/hls/111111.flv'
});
flvPlayer.attachMediaElement(videoElement);
flvPlayer.load();
flvPlayer.play();
}

@ccallcn ccallcn closed this as completed Nov 1, 2016
@xqq
Copy link
Contributor

xqq commented Nov 1, 2016

检查F12 Console输出是否有错误信息

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

3 participants
@xqq @ccallcn and others