Ejemplo n.º 1
0
 public function testCreateEncodingWithProfileName()
 {
     $videoId = md5(uniqid());
     $video = new Video();
     $video->setId($videoId);
     $profileName = 'h264';
     $this->validateRequest('post', '/encodings.json', array('video_id' => $videoId, 'profile_name' => $profileName));
     $this->validateTransformer('Encoding', 'stringToEncoding');
     $this->cloud->createEncodingWithProfileName($video, $profileName);
 }
Ejemplo n.º 2
0
 /**
  * {@inheritDoc}
  */
 public function createEncodingWithProfileName(Video $video, $profileName)
 {
     return $this->doCreateEncoding(array('video_id' => $video->getId(), 'profile_name' => $profileName));
 }