@@ 302-305 (lines=4) @@ | ||
299 | wp_enqueue_script( 'videopress' ); |
|
300 | $thumbnail = esc_url( $this->video->poster_frame_uri ); |
|
301 | $html = "<video id=\"{$this->video_id}\" width=\"{$this->video->calculated_width}\" height=\"{$this->video->calculated_height}\" poster=\"$thumbnail\" controls=\"true\""; |
|
302 | if ( isset( $this->options['autoplay'] ) && $this->options['autoplay'] === true ) |
|
303 | $html .= ' autoplay="true"'; |
|
304 | else |
|
305 | $html .= ' preload="metadata"'; |
|
306 | if ( isset( $this->video->text_direction ) ) |
|
307 | $html .= ' dir="' . esc_attr( $this->video->text_direction ) . '"'; |
|
308 | if ( isset( $this->video->language ) ) |
|
@@ 701-702 (lines=2) @@ | ||
698 | return array(); |
|
699 | ||
700 | $flashvars = (array) $this->video->players->swf->vars; |
|
701 | if ( isset( $this->options['autoplay'] ) && $this->options['autoplay'] === true ) |
|
702 | $flashvars['autoPlay'] = 'true'; |
|
703 | return $flashvars; |
|
704 | } |
|
705 |