Ricky55 Posted November 13, 2013 Share Posted November 13, 2013 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 Quote Link to comment Share on other sites More sharing options...
dalecosp Posted November 13, 2013 Share Posted November 13, 2013 But if you don't use JS, you're requiring a page reload for each video.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.