Wowza Community

get wowza live streaming statistics from server and displayed on my webpage

Hi, all, I have wowza media server engine hosted on aws, and I have a separate aws server hosting wordpress webserver as a frontend facing my client. two separate servers.

Now, I want my client able to view their live streaming or VOD statistics from their individual page on the wordpress webpage. I followed the instruction from this URL (copied index.php and config.php)

https://github.com/WowzaMediaSystems/wse-rest-library-php

and changed the HOST IP, USERNAME and PASSWORD, it did not work.
Did I miss something or there is another file of steps I did not follow?

where is /vendor/autoload.php?

I am not familiar with API call, if you have full example for this, much appreciated.

after enable the PHP debug mode, i got this error from web

i cannot find folder which indicated below error message -> /usr.share/pear

Warning: require_once(/home/wowza-account/vendor/autoload.php): failed to open stream: Permission denied in /web-root-dir/wowza/index.php on line 4 Fatal error: require_once():

Failed opening required ‘/home/wowza-account/vendor/autoload.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /web-root-dir/wowza/index.php on line 4

Hi @Sam Qiu, thanks for reaching out, let me see what help I can find for you.

thank you Rose for your reply, now I got an error from my webpage.

object(stdClass)#6 (4) { [“wowzaServer”]=> string(5) “4.7.6” [“code”]=> string(3) “401” [“success”]=> bool(false) [“message”]=> string(40) “The request requires user authentication” }

seems the user name and password is wrong, May i know which username/password I should use for the define part, I tried the wowza login username password, create new username/password, tried using the individual userID/password for live streaming when create their live-streaming account on the wowza medai engine admin-page. all got error. did I miss something or file? I only copied these two file, (index.php and config.php)

define("WOWZA_USERNAME", "my_secret_username");
define("WOWZA_PASSWORD", "my_super_cool_password");

i got this error

object(stdClass)#6 (4) { [“wowzaServer”]=> string(5) “4.7.6” [“success”]=> bool(false) [“code”]=> string(3) “401” [“message”]=> string(40) “The request requires user authentication” }

the HOST IP changed to my-awsEC2ip, USERNAME and PASSWORD is same as admin.password in the /wowzamediaengine/conf folder. digest

is ok, include my webserver IP

define("WOWZA_HOST","http://111.111.123.123:8087/v2");
define("WOWZA_SERVER_INSTANCE", "_defaultServer_");
define("WOWZA_VHOST_INSTANCE", "_defaultVHost_");
define("WOWZA_USERNAME", "my_secret_username");
define("WOWZA_PASSWORD", "my_super_cool_password");

Hi @Sam Qiu, thanks again for using Wowza Forums.

In order to further assist you with this issue, we would need to review your configuration in more detail so that a php expert could assist.

I would suggest that you submit a support ticket here:

https://www.wowza.com/support/open-ticket

Please let me know the update when it’s resolved. Thanks!