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

flv.js配置https后播放实时码流,打开需要一分钟 #802

Open
geminit2011 opened this issue Oct 12, 2023 · 1 comment
Open

flv.js配置https后播放实时码流,打开需要一分钟 #802

geminit2011 opened this issue Oct 12, 2023 · 1 comment

Comments

@geminit2011
Copy link

flv.js配置https后播放实时码流,打开需要一分钟;不配置https是正常的,基本秒开。
配置也是按照网上的策略配置的,有没有哪位大神遇到过,求指导!!!谢谢,配置类似如下,
server {
listen 443 ssl; # 1.1版本后这样写
server_name www.xxx.cn; #填写绑定证书的域名
ssl_certificate ..//ssl//cuijiecheng.crt; # 指定证书的位置,绝对路径
ssl_certificate_key ..//ssl//cuijiecheng.key; # 绝对路径,同上
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #按照这个协议配置
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;#按照这个套件配置
ssl_prefer_server_ciphers on;
location / {
root www; #站点目录,绝对路径
index index.html index.htm;
}
location /stat {
#推流播放和录制统计数据的配置

        rtmp_stat all;
        rtmp_stat_stylesheet stat.xsl;
    }
    location /stat.xsl {
        root www; #指定stat.xsl的位置
    }
	location /flv_live {
        flv_live on; #打开HTTP播放FLV直播流功能
        chunked_transfer_encoding on; #支持'Transfer-Encoding: chunked'方式回复

        add_header 'Access-Control-Allow-Origin' '*'; #添加额外的HTTP头
        add_header 'Access-Control-Allow-Credentials' 'true'; #添加额外的HTTP头
    }
}
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

1 participant