|
@@ 314-317 (lines=4) @@
|
| 311 |
|
wp_enqueue_script( 'videopress' ); |
| 312 |
|
$thumbnail = esc_url( $this->video->poster_frame_uri ); |
| 313 |
|
$html = "<video id=\"{$this->video_id}\" width=\"{$this->video->calculated_width}\" height=\"{$this->video->calculated_height}\" poster=\"$thumbnail\" controls=\"true\""; |
| 314 |
|
if ( isset( $this->options['autoplay'] ) && $this->options['autoplay'] === true ) |
| 315 |
|
$html .= ' autoplay="true"'; |
| 316 |
|
else |
| 317 |
|
$html .= ' preload="metadata"'; |
| 318 |
|
if ( isset( $this->video->text_direction ) ) |
| 319 |
|
$html .= ' dir="' . esc_attr( $this->video->text_direction ) . '"'; |
| 320 |
|
if ( isset( $this->video->language ) ) |
|
@@ 713-714 (lines=2) @@
|
| 710 |
|
return array(); |
| 711 |
|
|
| 712 |
|
$flashvars = (array) $this->video->players->swf->vars; |
| 713 |
|
if ( isset( $this->options['autoplay'] ) && $this->options['autoplay'] === true ) |
| 714 |
|
$flashvars['autoPlay'] = 'true'; |
| 715 |
|
return $flashvars; |
| 716 |
|
} |
| 717 |
|
|