Skip to content

Commit

Permalink
Merge pull request #1915 from rtCamp/fix/activity-video-thumbnail
Browse files Browse the repository at this point in the history
GH : #1912 Video thumbnail not visible on Activity page
  • Loading branch information
Mukulsingh27 authored May 19, 2022
2 parents 5658a98 + 1eb5f88 commit c62a258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main/controllers/activity/RTMediaActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function media( $media, $type = 'activity' ) {
$poster = '';
}
if ( empty( $youtube_url ) ) {
$html = '<video %s src="%s" width="%d" height="%d" type="video/mp4" class="%s" id="rt_media_video_%s" controls="controls" preload="none"></video>';
$html = '<video %s src="%s" width="%d" height="%d" type="video/mp4" class="%s" id="rt_media_video_%s" controls="controls" preload="metadata"></video>';
$html = sprintf( $html, $poster, esc_url( wp_get_attachment_url( $media->media_id ) ), esc_attr( $rtmedia->options['defaultSizes_video_activityPlayer_width'] ), esc_attr( $rtmedia->options['defaultSizes_video_activityPlayer_height'] ), $video_class, esc_attr( $media->id ) );
}
} elseif ( 'music' === $media->media_type ) {
Expand Down

0 comments on commit c62a258

Please sign in to comment.