Wowza Community

How to know the server status ?

Hi,

I want to know the status of the server ( Wowza server on Amazon EC2 ) when flow is sent from the encoder to be relayed.

I use Adobe Flash Media Encoder, and I want to get the server status in a variable that I can read with php.

For example, a variable set to “false” when no flow, and set to “true” when I push the “send” button on Flash Media Encoder.

Could someone inform me on what to do?

Thank you

Best regards,

Gerard

You can use a HTTProvider.

http://www.wowza.com/community/t/-/245

You will send querystring with stream name and application name, then you will have to write some code to test the stream, then you can respond with your result.

Richard

[PHP]<?php

//wowza status

$url =http://domain.com:8086/’;

$curl =curl_init();

curl_setopt($curl,CURLOPT_HEADER,0);

curl_setopt($curl,CURLOPT_URL,$url);

curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);

$content =curl_exec($curl);

curl_close($curl);

if($content==‘Wowza Media Server 2 Perpetual 2.1.0 build24349Wowza Media Server 2 Perpetual 2.1.0 build24349’){

echo “start”

}else{

echo “stop”;

}

?>[/PHP]

Thank you Richard for your response. But … I am unable to implement your recommendations …

A volunteer to help me ?

This volunteer must be patient and educator :slight_smile: