Jump to content

Creating HTML5 Video Player - Loading in code snippets


Ricky55

Recommended Posts

Hi

 

I am wanting to create this basic HTML5 video player as detailed in this wireframe

 

https://dl.dropboxusercontent.com/u/508261/screen.png

 

One of my colleagues has given me some basic code that seems like it will work, I was just wondering if this is the best way of achieving this?

 

I don't really want to use a javascript solution as these video tags will contain multiple source files.

 

The code:

<?php $div_contents = array("<video>I am video one</video>", "<video>I am video two</video>", "<video>I am video three</video>"); ?>
 
<div id="video-container">
<?php echo  $div_contents[$_GET['div_id']]; ?>
</div>
 
<a href='index.php?div_id=1'>Next Video</a>
Thanks
 
Richard

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.