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

直播流一直显示加载中,不显示画面 #27

Closed
gitxiaogui opened this issue Apr 24, 2020 · 15 comments
Closed

直播流一直显示加载中,不显示画面 #27

gitxiaogui opened this issue Apr 24, 2020 · 15 comments

Comments

@gitxiaogui
Copy link

自己写的demo也是一直在加载中,不报错,就是不显示视频画面,用你的线上演示版直接替换我的直播流地址,也是播放不了的,流的地址是有效的,两个解析方式都试了,都是一直在加载中,显示不出来画面

@zhw2590582
Copy link
Owner

可以打开debug选项看看日志先

@gitxiaogui
Copy link
Author

FlvPlayer: [play-retry]
decoding: {video: true, audio: true}
playing: {video: false, audio: false}
streaming: true
日志一直是打印这个

@zhw2590582
Copy link
Owner

这么少的日志!应该很多信息才对的

@gitxiaogui
Copy link
Author

没有啊,现在我边打印的都是这个日志信息

  • [ ]
    image

@zhw2590582
Copy link
Owner

有外网可以访问的flv地址吗?我看看

@gitxiaogui
Copy link
Author

@gitxiaogui
Copy link
Author

@zhw2590582
Copy link
Owner

我试了,看到了画面了啊

var flv = new FlvPlayer({
    container: '.flvplayer-app',
    url: 'http://newlive.17kuxiu.com/live/30310_77777000194.flv',
    decoder: './uncompiled/flvplayer-decoder-multiple.js',
    debug: true,
    live: true,
    autoPlay: true,
    hasAudio: false,
    width: 960,
    height: 540,
});

@zhw2590582
Copy link
Owner

两个地址都是可以的

var flv = new FlvPlayer({
    container: '.flvplayer-app',
    url: 'https://flv.6721.liveplay.now.qq.com/live/6721_49484dbf5537f37a0249980649dda08a.flv?txSecret=22d3539da8b577606a8cd50e14612831&txTime=5EA26E11',
    decoder: './uncompiled/flvplayer-decoder-multiple.js',
    debug: true,
    live: true,
    autoPlay: true,
    hasAudio: true,
    width: 960,
    height: 540,
});

@gitxiaogui
Copy link
Author

你代码能发我下不,我这边还是不行

@gitxiaogui
Copy link
Author

你在你的线上演示地址里边能播放吗?

@gitxiaogui
Copy link
Author

我们的uncompiled/flvplayer-decoder-multiple.js这个文件是放到了服务器上边,在本地引入的,跟这个有关系吗

@zhw2590582
Copy link
Owner

zhw2590582 commented Apr 24, 2020

decoder放哪里都没关系的,只要不跨域

demo

@gitxiaogui
Copy link
Author

我再研究下吧,好奇怪0.0

@ztz070306011
Copy link

我这边也不行,用demo的流是可以的,可能是什么原因呢

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