LoginSignup
1
3

More than 5 years have passed since last update.

WowzaStreamingEngineでAPIを叩いてアプリケーションを作る方法

Last updated at Posted at 2017-07-26

はじめに

動画ライブ配信アプリを開発したいと思いWowzaStreamingEngineを利用した際に、WowzaStreamingEngineのアプリケーション(動画配信のルームみたいなやつ)をapiを叩いて作る方法を調べたのでメモ。

cURLコマンド

下記のようにapiを叩けばtestliveという名前のライブ配信用のアプリケーション(ルームみたいなもの)ができます。

curl -X POST -H "Accept:application/json; charset=utf-8" -H "Content-type:application/json; charset=utf-8" http://[ドメイン・IPアドレス]:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive -d'
{
  "restURI":"http://[ドメイン・IPアドレス]:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive",
  "name":"testlive",
  "appType":"Live",
  "clientStreamReadAccess":"*",
  "clientStreamWriteAccess":"*",
  "description":"Testing our Rest Service",
  "streamConfig":{
    "restURI":"http://[ドメイン・IPアドレス]:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamconfiguration",
    "streamType":"live",
    "liveStreamPacketizer":["cupertinostreamingpacketizer","smoothstreamingpacketizer","sanjosestreamingpacketizer"]
  }
}
'

返り値

{
   "success": true,
   "message": "Application (testlive) created successfully."
}
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3