Last active
March 29, 2020 23:26
-
-
Save aebian/5a19368e977dfdd19f00d3888437bc7b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure --with-compat --add-dynamic-module=../nginx-rtmp-module --with-http_ssl_module --with-cc-opt="-Wimplicit-fallthrough=0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load_module modules/ngx_rtmp_module.so; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rtmp { | |
server { | |
listen 2002; | |
ping 30s; | |
notify_method get; | |
application myapp { | |
live on; | |
# sample play/publish handlers | |
#on_play http://localhost:8080/on_play; | |
#on_publish http://localhost:8080/on_publish; | |
# sample recorder | |
#recorder rec1 { | |
# record all; | |
# record_interval 30s; | |
# record_path /tmp; | |
# record_unique on; | |
#} | |
# sample HLS | |
#hls on; | |
#hls_path /tmp/hls; | |
#hls_sync 100ms; | |
} | |
# Video on demand | |
#application vod { | |
# play /var/Videos; | |
#} | |
# Video on demand over HTTP | |
#application vod_http { | |
# play http://localhost:8080/vod/; | |
#} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment