@@ 1439-1448 (lines=10) @@ | ||
1436 | } |
|
1437 | ||
1438 | // Thumbnails |
|
1439 | if ( function_exists( 'video_format_done' ) && function_exists( 'video_image_url_by_guid' ) ) { |
|
1440 | $response['thumbnails'] = array( |
|
1441 | 'fmt_hd' => '', |
|
1442 | 'fmt_dvd' => '', |
|
1443 | 'fmt_std' => '', |
|
1444 | ); |
|
1445 | foreach ( $response['thumbnails'] as $size => $thumbnail_url ) { |
|
1446 | if ( video_format_done( $info, $size ) ) { |
|
1447 | $response['thumbnails'][ $size ] = video_image_url_by_guid( $info->guid, $size ); |
|
1448 | } else { |
|
1449 | unset( $response['thumbnails'][ $size ] ); |
|
1450 | } |
|
1451 | } |
@@ 644-653 (lines=10) @@ | ||
641 | $info = video_get_info_by_blogpostid( $this->site->get_id(), $media_id ); |
|
642 | ||
643 | // Thumbnails |
|
644 | if ( function_exists( 'video_format_done' ) && function_exists( 'video_image_url_by_guid' ) ) { |
|
645 | $response['thumbnails'] = array( 'fmt_hd' => '', 'fmt_dvd' => '', 'fmt_std' => '' ); |
|
646 | foreach ( $response['thumbnails'] as $size => $thumbnail_url ) { |
|
647 | if ( video_format_done( $info, $size ) ) { |
|
648 | $response['thumbnails'][ $size ] = video_image_url_by_guid( $info->guid, $size ); |
|
649 | } else { |
|
650 | unset( $response['thumbnails'][ $size ] ); |
|
651 | } |
|
652 | } |
|
653 | } |
|
654 | ||
655 | $response['videopress_guid'] = $info->guid; |
|
656 | $response['videopress_processing_done'] = true; |