/**
  * Get the output parameters for streaming.
  *
  * @return string
  * @throws LiveBroadcastOutputException
  */
 public function generateOutputCmd()
 {
     if (!$this->channel instanceof ChannelUstream || empty($this->channel->getStreamKey()) || empty($this->channel->getStreamServer())) {
         throw new LiveBroadcastOutputException(__FUNCTION__ . ' Ustream channel not configured');
     }
     return sprintf('-vcodec copy -acodec copy -f flv "rtmp://%s/%s"', $this->channel->getStreamServer(), $this->channel->getStreamKey());
 }
 public function testGetMethods()
 {
     $channel = new ChannelUstream();
     $channel->setChannelName('UStream')->setStreamKey('key')->setStreamServer('server');
     self::assertEquals('UStream', $channel->getChannelName());
     self::assertEquals('key', $channel->getStreamKey());
     self::assertEquals('server', $channel->getStreamServer());
 }