0
Ola would like to know how I can change the code below that shows the position of time in which the video is in real time. I would like this position to be stored in a cookie, valid, so that if the page is updated, the cookie is triggered, placing the video in the position where the video stopped.
Code
<!DOCTYPE HTML>
<html>
<head>
<style type="text/css">
body {
font-size:1em;
line-height:1.8em;
}
h2,#timer {
background-color:#000;
color:#0f0;
font-size:2em;
margin:0em;
width:200px;
height:1.2em;
}
</style>
<script type="text/javascript" src="https://osric.com/chris/javascript/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="https://osric.com/chris/jwplayer/jwplayer5.4/jwplayer.min.js"></script>
<script type="text/javascript">
$(document).ready( function() {
jwplayer("container").setup({
file:"url do vídeo aqui",
height: 300,
width: 400,
events: {
onTime: function(event) {
$('#timer').html(Math.floor(event.position));
}
}
});
});
</script>
</head>
<body>
<div id="container"></div>
<h2>Timer:</h2>
<div id="timer"></div>
</body>
</html>
What would be the expiration date? In hours, days, minutes?
– Sam