New Topic

Reply To: Video Instead of Slider?

Home › Forum › Customization › Video Instead of Slider? › Reply To: Video Instead of Slider?

#682

razcal
Member

o.k.  I did exactly as you said and nothing shows up.  I thought html5 can play native video?  Code below.  Please advise.

<?php if ( is_home() ) {echo ‘<video poster=”/wp-content/uploads/2013/video/brian-battaglia_home-poster.jpg” width=”1000″ height=”480″ autoplay loop>

<source src=”/wp-content/uploads/2013/video/brian-battaglia_home-MP4.mp4″ type=”video/mp4″>

<source src=”/wp-content/uploads/2013/video/brian-battaglia_home-OGV.ogv” type=”video/ogg”>

<object type=”application/x-shockwave-flash” data=”/wp-content/uploads/2013/video/brian-battaglia_home-player.swf” width=”1000″ height=”480″>

<param name=”autoplay” value=”true”>

<param name=”allowfullscreen” value=”false”>

<param name=”allowscriptaccess” value=”always”>

<param name=”flashvars” value=”/wp-content/uploads/2013/video/brian-battaglia_home-FLV.flv”>

<!–[if IE]><!–><param name=”movie” value=”m/player.swf”><!–<![endif]–>

<img src=”/wp-content/uploads/2013/video/brian-battaglia_home-poster.jpg” width=”1000″ height=”480″ alt=”Video”>

</object>

</video>’;} ?>

Am I missing something?  Is this completely wrong?  Do I need a player?  Can you recommend one?  Huge thanks!