Skip to content

Instantly share code, notes, and snippets.

@irfanfadilah
Created January 21, 2016 09:49
Show Gist options
  • Save irfanfadilah/cda0dbc1728e34def256 to your computer and use it in GitHub Desktop.
Save irfanfadilah/cda0dbc1728e34def256 to your computer and use it in GitHub Desktop.
Wowza API Snipped for Stream Target
wowza_stream_name = "wowza-stream-name"
youtube_host = "x.rtmp.youtube.com"
youtube_application = "livex"
youtube_stream_name = "xxxxx.xxxx-xxxx-xxxx-xxxx"
stream_target = "curl --digest -u \"wowza:#{stream_server.instance_id}\" -X POST --header \"Accept:application/json; charset=utf-8\" --header \"Content-type:application/json; charset=utf-8\" \"#{wowza_host}/pushpublish/mapentries/youtube\" -d '{
\"restURI\": \"#{wowza_host}/pushpublish/mapentries/youtube\",
\"serverName\":\"_defaultServer_\",
\"sourceStreamName\": \"#{wowza_stream_name}\",
\"entryName\": \"youtube\",
\"profile\": \"rtmp\",
\"host\": \"#{youtube_host}\",
\"application\":\"#{youtube_application}\",
\"streamName\":\"#{youtube_stream_name}\"
}'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment