Created
January 21, 2016 09:49
-
-
Save irfanfadilah/cda0dbc1728e34def256 to your computer and use it in GitHub Desktop.
Wowza API Snipped for Stream Target
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
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