Results 1 to 5 of 5

Thread: Wowza REST API

  1. #1

    Default Wowza REST API

    Hi,

    Im currently using the Wowza REST API. When creating a new application with PHP CURL

    The application is created but the response is false

    <?xml version="1.0" encoding="UTF-8" ?>\n
    <wmsResponse>\n
    <success>false</success>\n
    <message>C:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.2.0\conf\testlive\Application.xml (The system cannot find the path specified)</message>\n
    </wmsResponse>

    Any ideas

    Im sending in:

    $json->restURI = env('WOWZA_HOST') . 'applications/' . $name;
    $json->name = $name;
    $json->appType = 'Live';
    $json->clientStreamReadAccess = "*";
    $json->clientStreamWriteAccess = "*";
    $json->description = 'DESC';
    $json->streamConfig = new stdClass();
    $json->streamConfig->restURI = 'http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamconfiguration';
    $json->streamConfig->streamType = 'live';

  2. #2

    Default

    Quote Originally Posted by aap411vm View Post
    Hi,

    Im currently using the Wowza REST API. When creating a new application with PHP CURL

    The application is created but the response is false

    <?xml version="1.0" encoding="UTF-8" ?>\n
    <wmsResponse>\n
    <success>false</success>\n
    <message>C:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.2.0\conf\testlive\Application.xml (The system cannot find the path specified)</message>\n
    </wmsResponse>

    Any ideas

    Im sending in:

    $json->restURI = env('WOWZA_HOST') . 'applications/' . $name;
    $json->name = $name;
    $json->appType = 'Live';
    $json->clientStreamReadAccess = "*";
    $json->clientStreamWriteAccess = "*";
    $json->description = 'DESC';
    $json->streamConfig = new stdClass();
    $json->streamConfig->restURI = 'http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/testlive/streamconfiguration';
    $json->streamConfig->streamType = 'live';

    Nevermind. Found the issue streamconfig restURI was fault..

  3. #3

    Default

    I do have another question. When setting the application everything goes fine. But the application is already created with that name. I don't get a JSON back. But instead I get an XML back with the error code. Is this normal behavior or is it me doing something

    <?xml version="1.0" encoding="UTF-8" standalone="no"?><error><wowzaServer>4.2.0</wowzaServer><code>409</code><message>The request could not be completed due to a conflict with the current state of the resource</message></error>"

  4. #4
    Join Date
    May 2013
    Posts
    680

    Default

    Hello

    We are aware of the issue that results in an XML error response upon requesting a json content type. Please look out for our next release as it should contain the update that will honor the requested return type (in this case json) for these errors.

    Thanks,
    Matt

  5. #5

    Default

    Thanks Matt,

    Is it already in the 4.2.0.01 build? or coming up in a future release?

Similar Threads

  1. Rest API available?
    By simone.andrioletti in forum Wowza Streaming Engine REST API
    Replies: 1
    Last Post: 09-24-2014, 03:07 PM
  2. Rest api >> wowza 4
    By angelfilm in forum Wowza Streaming Server Java API
    Replies: 4
    Last Post: 07-24-2014, 11:26 AM
  3. Wowza Streaming Engine Manager & REst API
    By gary4gar in forum Wowza Streaming Engine REST API
    Replies: 3
    Last Post: 03-05-2014, 02:52 PM
  4. REST API for interrogating settings like transcoder formats/endpoints
    By piers7 in forum Server Administration Discussion
    Replies: 2
    Last Post: 08-16-2012, 06:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •