Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the nginx-http-flv-module flv pull errors?

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "what are nginx-http-flv-module flv pull errors". In daily operation, I believe many people have doubts about nginx-http-flv-module flv pull errors. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the questions of "what are nginx-http-flv-module flv pull errors?" Next, please follow the editor to study!

1.flv pull error

Uncaught (in promise) DOMException: play () failed because the user didn't interact with the document first. Https://goo.gl/xX8pDD can Your browser is too old which doesn't support HTML5 video by adding muted to the video tag.

When 2.HTML uses flv.js and dplayer player to play http-flv format video, the request nignx server encounters the problem of chrom cross-domain.

Access to fetch at 'http://192.168.31.66:9999/zzh-1586620072-2020-04-11-23_47_52.flv' from origin' http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.http {server {listen 8000; server_name localhost; add_header' Access-Control-Allow-Origin''*'; # allow all sources to access add_header 'Access-Control-Allow-Methods'' GET, POST, OPTIONS, PUT, DELETE'; # ways to allow access

3. Push permission control

Rtmp {server {listen 1935; # listening port chunk_size 4000; application myapp {live on; notify_method get; publish_notify on; on_publish http://192.168.0.103:8087/autho/rtmp; # permission control on_publish_done http://127.0.0.1:8087/autho/rtmpOver;# LVB end callback} application hls {live on; hls on; hls_path / home/soap/rtmp/hls;# video stream storage address hls_fragment 5s Hls_playlist_length 15s; hls_continuous on; # continuous mode. Hls_cleanup on; # deletes excess slices. Hls_nested on; # nested mode. }}}

The path of the 4.flv pull stream

Http://example.com[:port]/dir?[port=xxx&]app=appname&stream=streamnamehttp://127.0.0.1:8000/live?app=myapp&stream=fhxport defaults to 1935myapp as the configuration path and fhx to the stream path

5.obs Settin

6. Effect picture

At this point, the study of "what are the nginx-http-flv-module flv pull errors" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report