web/niv1_videoplayer.html
author veltr
Fri, 04 Jan 2013 18:13:55 +0100
changeset 66 331e70527d74
parent 46 542252e0c615
child 78 8c3f0b94d056
permissions -rw-r--r--
Set version to 1.13

<!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" class="full_screen">
			
			<!-- div content_top - the elements takes the full height of "content_top" -->				
			<div id="content_top">	
				<div class="strut"></div><!--
			this comment corrects the white-space (display: inline);
			--><section class="fullScreen_vcentering">	
		            <!-- Video -->
	           		<!-- 
	           		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.
	            		
	           		<video controls poster="/">
	  					<p>Votre navigateur ne gère pas l'élément video @todo</p>
					</video>
					-->
			        <div id="video">
			        </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>
	                    

	                    <div id="progressContainer">
		                    
		                    <div id="progressBar" class="progress_bar">
		                    	<span id="progress" class="progress_bar"></span>
		                    	<button id="stateBar" class="txt_hidden" onClick="/"></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">0'00''</li>
		   					</ul>
						
						</div>
	                    <button id="btnBck" class="btn txt_hidden" onClick="incPlayer.ctrlPrev();">Back</button>  
		                <!--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> 

	                    <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/jquery.cookie.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/incplayer.js"></script>        
        <script src="static/res/js/incchoice.js"></script>        
        <script>        
            $(function() {
            	// Init the video player
                if (incPlayer.init("video", "btnPlayPause", "current", "duration", "static/res/json/sequences.json", true)) {
                    incPlayer.createPopSequence(incChoice.getChoosenWords());             

					// Add class on all videos
           			$("#video").children().addClass("small_video");			
                }                    	
            });
        </script>        			
	</body>	
</html>