Hi there,
How can I check and uncheck all and each one options in Playback types?
I mean, using Rest API I want to check/uncheck playback with HLS or RTMP or Smooth Streaming, the one on the main properties on each Application.
I already read the Rest API documentation and I didn’t find out.
Thank you.
Let me see if I can find some help for you on this…
liveStreamPacketizer array will have these values. Minus the ones you would not want.
curl -X PUT \
-H 'Accept:application/json; charset=utf-8' \
-H 'Content-Type:application/json; charset=utf-8' \
http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive \
-d'
{
"restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive",
"name":" testlive",
"appType": "Live",
"streamConfig": {
"restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamconfiguration",
"streamType": "live",
"liveStreamPacketizer": [
"cupertinostreamingpacketizer",
"smoothstreamingpacketizer",
"sanjosestreamingpacketizer",
"mpegdashstreamingpacketizer"
]
}
}
For example, If you only want HLS playback, you would make this call:
curl -X PUT \
-H 'Accept:application/json; charset=utf-8' \
-H 'Content-Type:application/json; charset=utf-8' \
http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive \
-d'
{
"restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive",
"name":" testlive",
"appType": "Live",
"streamConfig": {
"restURI": "http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamconfiguration",
"streamType": "live",
"liveStreamPacketizer": [
"cupertinostreamingpacketizer",
]
}
}
Thank you Rose,
I already did that (and restart app included)… and nothing happend, in wowza panel still say Apple HLS On (like in the image above), and HLS stream still go on when I remove cupertinostreamingpacketizer
Ok… that’s odd. So, I guess we need you to submit a support ticket so we can run tests on all your logs and files. It’s the only way to find out what the issue is. Sorry I couldn’t help you solve it.
https://www.wowza.com/support/open-ticket
It looks like the above call is missing the httpStreams array. This one should work if you only want MPEG-DASH http playback type:
curl -X PUT \
-H ‘Accept:application/json; charset=utf-8’ \
-H ‘Content-Type:application/json; charset=utf-8’ \
http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live \
-d’
{
“restURI”: “http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live”,
“name”:" live",
“appType”: “Live”,
“httpStreamers”:[
“mpegdashstreaming”
],
“streamConfig”: {
“restURI”: “http://localhost:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/testlive/streamconfiguration”,
“streamType”: “live”,
“liveStreamPacketizer”: [
“mpegdashstreamingpacketizer”
]
}
}’
-JasonT