(is_ssl() ? 'https://' : 'http://s.' ) . 'wordpress.org/images/core/3.6/sample-video.mp4',
- 'ogv' => (is_ssl() ? 'https://' : 'http://s.' ) . 'wordpress.org/images/core/3.6/sample-video.ogv',
+
"$sample_video.mp4",
+ 'ogv' => "$sample_video.ogv",
'width' => 625,
'height' => 360,
- )
- ); ?>
+ );
+ // Opera 12 (Presto, pre-Chromium) fails to load ogv properly
+ // when combined with ME.js. Works fine in Opera 15.
+ // Don't serve ogv to Opera 12 to avoid complete brokeness.
+ if ( $GLOBALS['is_opera'] )
+ unset( $args['ogv'] );
+ // Our current ME.js API is limited to shortcodes in posts.
+ echo wp_video_shortcode( $args );
+ ?>