1. Create a new rtmp directory in the nginx source directory and enter git clone https://github.com/arut/nginx-rtmp-module.git 2. Recompile nginx code as follows
3. After completing the installation. Open nginx.conf and add the following code after http{server...} rtmp{ server{ listen 1935; chunk_size 4000; application hls live on; hls on; hls_path /your server path is used to store cache files. Must be writable; hls_fragment 5s; } } } Then create a new host configuration server { listen 8851; location /index.html { root /website storage directory; } location / {# return 403; # Serve HLS fragments types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; } root /same as above, for caching; expires -1; } } After completing the above configuration. Just download a software called open broadcaster software and use it to push the stream (note that you can also use ffmpeg to push the stream). Software usage as shown in screenshots Then click Start Streaming. Download and open VLC player (streaming). Enter rtmp://your website:1935/hls/the password in the picture above and it will be ok. Successful online live broadcast The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Solution to the problem of Failed when configuring IDEA to connect to MYSQL database
>>: Vue implements a simple shopping cart example
We may have a question: After we install MySQL lo...
Table of contents 1. js statement Second, js arra...
Table of contents 1. Introduction 2. Understand t...
I don't know if you have ever encountered suc...
When it comes to bionic design, many people will t...
Under Linux, if you download and install an appli...
Adding necessary comments is a good habit that a ...
In the previous article, after configuring the we...
When using MySQL, many developers often perform f...
Get the current time: select current_timestamp; O...
Many people have encountered this error when star...
Problem: When using JDBC to connect to the MySQL ...
How to configure custom path aliases in Vue In ou...
Simple XHTML web form in web design 5. Technique ...
In MySQL, create a view on two or more base table...