/**
  * 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());
 }
 /**
  * Setup a testable Ustream channel.
  */
 public function setUp()
 {
     $this->channelUstream = new ChannelUstream();
     $this->channelUstream->setStreamServer('server');
     $this->channelUstream->setStreamKey('key');
 }
 /**
  * Test the isEntityConfigured method
  */
 public function testIsEntityConfigured()
 {
     $channel = new ChannelUstream();
     $configuration = array();
     self::assertTrue($channel->isEntityConfigured($configuration));
 }