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 Link to comment https://forums.phpfreaks.com/topic/283869-creating-html5-video-player-loading-in-code-snippets/ 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.... Link to comment https://forums.phpfreaks.com/topic/283869-creating-html5-video-player-loading-in-code-snippets/#findComment-1458138 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.