Model/StreamService.php
public function addPublishToAdress($stream, $rtmp_adress, $clientid, $new_name, $type = 'publisher', $srv = null)
    {
        return $this->redirect(
            $stream->getRtmpApp(),
            $stream->getUniqID(),
            $rtmp_adress,
            $clientid,
            $new_name,
            $type,
            $srv
        );
    }
public function addPublishToAdress($stream, $rtmp_adress, $clientid, $new_name, $type = 'publisher', $srv = null)
    {
        return $this->redirect(
            $stream->getRtmpApp(),
            $stream->getUniqID(),
            $rtmp_adress,
            $clientid,
            $new_name,
            $type,
            $srv
        );
    }
public function addPublishToAdress ( $ stream , $ rtmp_adress , $ clientid , $ new_name , $ type = 'publisher' , $ srv = null ) { return $ this -> redirect ( $ stream -> getRtmpApp ( ) , $ stream -> getUniqID ( ) , $ rtmp_adress , $ clientid , $ new_name , $ type , $ srv ) ; }
adds a push to another rtmp server. can be used to send a stream to facebook, youtube, etc.
@var stream the stream you want to push
@var rtmp_adress the adress you want to push to
@var cientid the streamkey of the destination
@var new_name the app of the rtmp server you want to push to
@var srv optional nginx server to use
adds a push to another rtmp server . can be used to send a stream to facebook youtube etc .