|
@@ 327-330 (lines=4) @@
|
| 324 |
|
wp_enqueue_script( 'videopress' ); |
| 325 |
|
$thumbnail = esc_url( $this->video->poster_frame_uri ); |
| 326 |
|
$html = "<video id=\"{$this->video_id}\" width=\"{$this->video->calculated_width}\" height=\"{$this->video->calculated_height}\" poster=\"$thumbnail\" controls=\"true\""; |
| 327 |
|
if ( isset( $this->options['autoplay'] ) && $this->options['autoplay'] === true ) { |
| 328 |
|
$html .= ' autoplay="true"'; |
| 329 |
|
} else { |
| 330 |
|
$html .= ' preload="metadata"'; |
| 331 |
|
} |
| 332 |
|
if ( isset( $this->video->text_direction ) ) { |
| 333 |
|
$html .= ' dir="' . esc_attr( $this->video->text_direction ) . '"'; |
|
@@ 764-765 (lines=2) @@
|
| 761 |
|
} |
| 762 |
|
|
| 763 |
|
$flashvars = (array) $this->video->players->swf->vars; |
| 764 |
|
if ( isset( $this->options['autoplay'] ) && $this->options['autoplay'] === true ) { |
| 765 |
|
$flashvars['autoPlay'] = 'true'; |
| 766 |
|
} |
| 767 |
|
return $flashvars; |
| 768 |
|
} |