Permalink
Browse files

scale video

  • Loading branch information...
1 parent b27ef7f commit fef2eeb307ed8a9e7e96595ee815990b427f9795 @matzko committed May 8, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 video-access.php
View
2 video-access.php
@@ -187,6 +187,7 @@ public function event_video_access_markup( $args = array() )
$video_url = $this->model->get_video_url( $blog_id, $attach_id );
+ $local_video_player->add_clip_value( 'scaling', 'fit' );
echo $local_video_player->print_video_player( $video_url, 'single-video-object-' . $attach_id, $height, $width );
if ( current_user_can( Video_Access_Model::UPLOAD_CAP, $video_id ) ) {
@@ -218,6 +219,7 @@ public function event_video_access_player( $attach_id = 0, $width = 0, $height =
$width = (int) $width;
$video_url = wp_get_attachment_url( $attach_id );
+ $local_video_player->add_clip_value( 'scaling', 'fit' );
echo $local_video_player->print_video_player( $video_url, 'single-video-object-' . $attach_id, $height, $width );
}

0 comments on commit fef2eeb

Please sign in to comment.