ebencollins / SinusBot-Stream

A web-based player to stream audio from SinusBot music bots.
GNU General Public License v3.0
3 stars 4 forks source link

Any Help please ? #3

Closed Zalatis closed 7 years ago

Zalatis commented 7 years ago

When I put all of your folder and when it's configure I got this : http://sinusbot.zalati.fr/

ebencollins commented 7 years ago

@Zalatis Your PHP appears to be configured incorrectly. Make sure to install PHP and the PHP mod for apache. After doing that, make sure to restart apache.

Zalatis commented 7 years ago

Ok, now I just have a problem with the player and the song name Did I need to put the ID of bots anywhere ?

ebencollins commented 7 years ago

@Zalatis Double check your config.php file. It appears that the UUID of the bot isn't set. Obtain the UUID from your instance settings. alt text If this doesn't work, please paste your config.php. Make sure to remove any personal information/passwords.

Zalatis commented 7 years ago

Done, got sound now but no image & also a problem under the player Really thanks for your support ! :D

ebencollins commented 7 years ago

@Zalatis No problem ;) I see an image on the "Michel" instance, but not on the "Jacquie" one. Some songs won't have an image if there isn't a youtube link or thumbnail in their metadata. I think I see what you mean under the player. I cleared my cache/cookies and it went away.

Zalatis commented 7 years ago

Can we also put an other default image for the player when it's not a youtube link ?

ebencollins commented 7 years ago

@Zalatis The default file is located at resources/unknownimg.png in your SinusBot directory. You should be able to upload your own file there if you want.

I might add a config option in the future.

Zalatis commented 7 years ago

It's ok it works, I go found an other image and that's all :) Thanks for your support once again and have a good day/night :)

ebencollins commented 7 years ago

No problem.

Zalatis commented 7 years ago

Can we also use the link look like : http://sinusbot.zalati.fr:8101/api/v1/bot/i/xxxxx Because sometimes it says "Forbidden"

ebencollins commented 7 years ago

@Zalatis That's the source of the stream that this player uses from SinusBot's API (/api/v1/bot/i/:instanceId/stream/:token). Unfortunately, the token expires after it's used/after some time has passed. If you reload the player it will get a new token and stream url. Currently, you'll have to do this whenever the player freezes. I plan to improve this in the future.

ebencollins commented 7 years ago

@Zalatis This problem should be resolved in v1.1 as of commit 6dab664. There's also a reload button if it doesn't trigger automatically. It's currently on the dev branch.

Also, related to this issue, v1.1 has a config option to change the default image.