}\r
}\r
\r
+function seek_video(time) {\r
+ var videoElement = $("video#vid").get(0);\r
+ videoElement.currentTime = time;\r
+}\r
+\r
+\r
function myCarousel_addClickHandler(id, time) {\r
$("#" + id).click(function() {\r
- var videoElement = $("video#vid").get(0);\r
- videoElement.currentTime = time;\r
+ seek_video( time );\r
});\r
}\r
\r
function chapterChange(isActive, args) {\r
\r
-console.debug( isActive, args );\r
+//console.debug( isActive, args );\r
\r
if (isActive) {\r
$("#carousel img").css("border-color", "#272928");\r
\r
function additional_video(isActive, args) {\r
var video = $('video#' + args.id);\r
- console.debug( isActive, args, video );\r
+//console.debug( isActive, args, video );\r
if (isActive) {\r
$('div#slide').hide();\r
video.show();\r
\r
\r
$().ready(function() {\r
- //console.debug( video_sync );\r
+//console.debug( video_sync );\r
$("#vid").sync( html5tv.sync );\r
\r
$(".toggleContentPanel").click(function() {\r
initCallback: myCarousel_initCallback,\r
customEventManager: customEventManager\r
});\r
+\r
+ $('td.seek_video').click( function() {\r
+//console.debug( 'click', this );\r
+ var to = this.textContent;\r
+//console.debug( 'seek', to );\r
+ seek_video( to );\r
+ } );\r
});\r