• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

WebStream, ERR_CONNECTION_REFUSED (Solution: check url)

Status
Not open for further replies.

arlextra

Member
Thank, it was wrong in the url.. --

But "Online Webstream" is just a joke (The code was never tested...)
GvQ6BQY.png
 

Dooley_labs

Donor
is awesome!
Insider
I tested and modified the code of Online Webstream. I have a live instance running at this url.

EDIT: If you try it, be sure to properly configure config.ini and to tweak the index.php file a bit if you assigned a subdomain name to the bot's port and cannot normally reach port 8087 because of a firewall issue in some locations (in my case, schools generally block all ports that aren't for general http / https traffic.
 
Last edited:

Dooley_labs

Donor
is awesome!
Insider
Once you add your ip address that links to your sinusbot instance in the config.php file, the bot should stream what your ts bot is streaming. I had an issue similar to this, but found that it was strictly user error. The websteam tool itself works wonderfully.
 

Xuxe

Containerholic
Staff member
is awesome!
V.I.P.
Contributor
Insider
How does this solve link problem ?

https://github.com/crank015/SinusBot-Stream/blob/master/index.php#L72
- I think your path is the Problem... @the index.php there is no http or https:// for the URL, so the browser uses the / this is in your case /test/SinusBot-Stream-master.

Note to the Dev's: It's also something bad Code style. The complete Image / get Song and Search part could be Served by one php File with GET Params.
You creating for each file a Instance of the PHP-Class, this could all be handled by one Instance, (https://secure.php.net/manual/de/language.oop5.php)
Also the: error_reporting('E_ERROR'); is crap? Configure your test Servers for Development (Debugging output) and not add this to your live Code bad configured User Servers can so Report critical Data.
 

Dooley_labs

Donor
is awesome!
Insider
In my instance, I removed all but the required audio tag, to which I added a // to replace http or https. The only things that run in mine are the audio tag and the getSong call. I think I linked my bot for reference in an above post. I made a mistake earlier today (I ran rm -rf on /opt instead of df to get the disk usage, but it's recovering), but it still plays music.
 
Status
Not open for further replies.
Top