Hi,
I am trying to use the Wowza Api for Wowza streaming engine.
I installed this library https://github.com/WowzaMediaSystems/wse-rest-library-php with composer.
I set up the constants for the config and created the setup programming but somehow it returns me null.
These are currently my constants:
'WOWZA_HOST', 'http://35.158.34.28:8088',
'WOWZA_URL' => '35.158.34.28','WOWZA_PORT' => '8088','WOWZA_SERVER_INSTANCE' => '_defaultServer_','WOWZA_VHOST_INSTANCE' => '_defaultVHost_','WOWZA_USERNAME' => 'wowza','WOWZA_PASSWORD' => 'mypassword'The config should be ok, but I am not sure what to insert to WOWZA_SERVER_INSTANCE AND WOWZA_VHOST_INSTANCE
The config should be ok, but I am not sure what to insert to WOWZA_SERVER_INSTANCE AND WOWZA_VHOST_INSTANCE
The php setup looks like this:
$setup = new \Com\Wowza\Entities\Application\Helpers\Settings();
$setup->setHost($host);
$setup->setUsername($username);
$setup->setPassword($password);// Connect to the server or deal with statistics NOTICE THE CAPS IN COM AND WOWZA
$server = new \Com\Wowza\Server($setup);
$sf = new \Com\Wowza\Statistics($setup);
$response = $sf->getServerStatistics($server);
$setup->setPassword($password);
// Connect to the server or deal with statistics NOTICE THE CAPS IN COM AND WOWZA
$server = new \Com\Wowza\Server($setup);
$sf = new \Com\Wowza\Statistics($setup);
$response = $sf->getServerStatistics($server);
var_dump($response); // this returns NULL
I am not sure what I am missing, the namespaces should be correct, I get no error with them.
Furthermore we are using AWS to run the streaming engine thus I use the php framework laravel if that makes a difference.