Skip to content

Commit

Permalink
reduce size of diff
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcaruso committed May 1, 2024
1 parent 8999696 commit 96191d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,13 @@ private function html_age_gate() {
private function html5_static() {
wp_enqueue_script( 'videopress' );
$thumbnail = esc_url( $this->video->poster_frame_uri );
$html = "<video id=\"{$this->video_id}\" width=\"{$this->video->calculated_width}\" height=\"{$this->video->calculated_height}\" poster=\"$thumbnail\" controls=\"true\"";

$preload = 'metadata';
if ( isset( $this->options['preloadContent'] ) && videopress_is_valid_preload( $this->options['preloadContent'] ) ) {
$preload = $this->options['preloadContent'];
}

$html = "<video id=\"{$this->video_id}\" width=\"{$this->video->calculated_width}\" height=\"{$this->video->calculated_height}\" poster=\"$thumbnail\" controls=\"true\"";
if ( isset( $this->options['autoplay'] ) && $this->options['autoplay'] === true ) {
$html .= ' autoplay="true"';
} else {
Expand Down

0 comments on commit 96191d2

Please sign in to comment.