• 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.

EnableWebStream

Status
Not open for further replies.
You should then be able to listen to it.
Generating the link requires some more actions and that has not yet been documented.
 
@flyth
Oh ok, I want set that stream in a html5 player in my site. On the api can't get the token, always get False.

Code:
<?php

class sinusbot_stream {

public function token($instanceUuid){
        if(!sinusbot::checkLogin()){
            return false;
        }
        $result = sinusbot::sendRequest('bot/i/'.$instanceUuid.'/streamToken');
        if(sinusbot::checkResult($result, ':(!')){
            return true;
        }
        return false;
}       
}
 
Status
Not open for further replies.
Back
Top Bottom