web/niv1_videoplayer.html
author Edwin Razafimahatratra <edwin@robotalismsoft.com>
Mon, 10 Dec 2012 20:55:18 +0100
changeset 38 cdbb56b876c9
parent 36 6cd5bc3dc7a2
child 41 f2123b4487e9
permissions -rw-r--r--
mosaic effect loops

<!DOCTYPE html>
<html lang="fr">
	<head>
		<meta charset="utf-8">
		<title>The End niv1- @todo</title>
		
		<meta name="description" content="@todo">
		
		<!-- Mobile Specific Metas -->
		<meta name="viewport" content="initial-scale=1.0, width=device-width" />
		
		<link rel="stylesheet" href="static/res/css/style_1024.css" /> 
		
	</head>
	<body>
		<!-- div content - site takes the full height of browser -->	
		<div id="content">
			
			<!-- div content_top - the elements takes the full height of "content_top" -->				
			<div id="content_top">	
				
				<section>	
		            <!-- Video -->
	            	<div id="video_sequence">
	            		<!-- 
	            		controls attribute - you're going to turn the default controls off via JavaScript 
	            		poster - sets a default image to display instead of the video's first frame.
	            		-->
			            <div id="video">
			            </div> 
	            	</div> 
	            	<!-- /Video -->	
				</section>
			
			</div>
			
			<!-- Controls container -->
			<footer id="controlContainer">
				<!-- @todo JS the player disappears down the screen after 5 sec -->
                <section id="controlbar">
       				<div class="container_hcentering">
       					<button id="btnInfo" class="btn">INFO</button>

	       				<button id="btnSDHD" class="btn" onClick="/">SD/HD</button>
	                    
	                    <button id="btnBck" class="btn txt_hidden" onClick="incPlayer.ctrlPrev();">Back</button>  

	                    <div id="progressContainer">
		                    
		                    <div id="progressBar" class="progress_bar">
		                    	<span id="progress" class="progress_bar"></span>
		                    	<!--I use a single button, which will serve as a play button when the video is paused (or stopped) and a pause button when it's playing.
		                    	-->
		                    	<button id="btnPlayPause" class="btn txt_hidden" title="play" onClick="incPlayer.ctrlPlay(this);">Play/Pause</button>
		                	</div>
		                    
		                   	<ul id="progressTime">
		                   		<!-- class="txt_white" can be used to color current time in white -->
		                   		<li id="current" class="floatL"></li>
		   						<li id="duration" class="floatR"></li>
		   					</ul>
						
						</div>
	                    
	                    <button id="btnFwd" class="btn txt_hidden" onClick="incPlayer.ctrlNext();">Forward</button> 

	                    <button id="btnChoice" class="btn">Choice</button>             
                    </div>
                </section>              
            <!-- /Controlbar container -->
			</footer>	
		</div>	
		<!-- Metanav FranceTV 	-->
		<script src="http://static.francetv.fr/js/jquery.metanav-min.js" charset="utf-8"></script>
		<!-- JavaScript -->
        <script src="static/res/js/jquery-1.8.2.min.js"></script>
        <script src="static/res/js/popcorn-complete.js"></script>
        <script src="static/res/js/popcorn.sequence.js"></script>
        <script src="static/res/js/incresize.js"></script>
        <script src="static/res/js/incplayer.js"></script>        
        <script>        
            $(function() {
            	// Init the resize object
            	incResize.init("content", null, "video", null, "footer", 0, 1920/1080);

            	// Init the video player
                if (incPlayer.init("video", "btnPlayPause", "current", "duration", "static/res/json/sequences2.json", true)) {
                    incPlayer.createPopSequence();
                }                    	
            });
        </script>        			
	</body>	
</html>