Skip to content

Instantly share code, notes, and snippets.

@Aebian
Last active March 29, 2020 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aebian/5a19368e977dfdd19f00d3888437bc7b to your computer and use it in GitHub Desktop.
Save Aebian/5a19368e977dfdd19f00d3888437bc7b to your computer and use it in GitHub Desktop.
./configure --with-compat --add-dynamic-module=../nginx-rtmp-module --with-http_ssl_module --with-cc-opt="-Wimplicit-fallthrough=0"
make modules
load_module modules/ngx_rtmp_module.so;
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