Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax error, unexpected 'public' (T_PUBLIC), expecting ',' or ';' in .../wowza/wse-rest-library-php/src/StreamTarget.php on line 24 #68

Open
znoooo opened this issue Oct 14, 2020 · 1 comment

Comments

@znoooo
Copy link

znoooo commented Oct 14, 2020

Hello everyone, I'm trying setup this library to manage Wowza engine from my application.
I've installed library with composer.

If I run

$server = new Com\Wowza\Server($setup);

$sf = new Com\Wowza\Statistics($setup);
$response = $sf->getServerStatistics($server);

Everyting works fine.

If I run function like StreamTarget in this way:

$sf = new Com\Wowza\StreamTarget($setup, 'live');
$response = $sf->remove('ppsource');

Or like this

$sf = new Com\Wowza\StreamTarget("live");
$response = $sf->getAll();

Or like this

$sf = new Com\Wowza\StreamTarget("live");
$response = $sf->create("myStream","ppsource","rtmp","locahost",null, null,"myStream");

I got this error:
syntax error, unexpected 'public' (T_PUBLIC), expecting ',' or ';' in .../wowza/wse-rest-library-php/src/StreamTarget.php on line 24

To be clear, this is my $setup:

$setup = new Com\Wowza\Entities\Application\Helpers\Settings();
$setup->setHost(WOWZA_HOST);
$setup->setUsername(WOWZA_USERNAME);
$setup->setPassword(WOWZA_PASSWORD);

This is my $server (if needed)
$server = new Com\Wowza\Server($setup);

I'm using PHP5.5.

P.s There is a differenze from using "com\wowza..." or "Com\Wowza..."? On tests inside library, I'm finding always lowercase, but for my configuration works only with 1st character capitalized.

Thank you

@znoooo
Copy link
Author

znoooo commented Oct 16, 2020

Seems line 50 and 77 got some error
$this->port = (!is_null($port)) ? ($int)$port : $this->port;

Converted in
$this->port = (!is_null($port)) ? (int)$port : $this->port;

Lib to create a Stream Target get inside function 9 arguments.
In my case, if I need to configure an advanced stream target, I have to update that with cURL? Or have to extend lib?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant