Skip to content

Instantly share code, notes, and snippets.

@darimpulso
Created December 19, 2013 12:24
Show Gist options
  • Save darimpulso/8038372 to your computer and use it in GitHub Desktop.
Save darimpulso/8038372 to your computer and use it in GitHub Desktop.
rtmp nginx
rtmp {
server {
listen 1935;
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