im jumping through different chapters of a movie by setting "currentTime" to xxx seconds. Therefore i have a screen where you can click on so-called "pads" - one per chapter.
If you click on the pad the pad-screen fades out, the movie fades in and start right where it should (see code below). This is perfectly working on any browser. But its NOT working on mobile devices like iPad/iPod/iPhone. I found out that the problem is this
$('video').get(0).currentTime =
And here is the code:
$('.chapter_pad a').each( function(index) {
$(this).click( function() {
currentVid = index;
endTime = videos[index]["end"];
$("#startscreen").fadeOut(0, function() {
$("#vids").fadeIn(0, function() {
$('#video').get(0).currentTime = videos[index]["start"];
$('#video').get(0).play();
});
});
});
});
Explanation: ["start"] and ["end"] are elements from an assoziative array that i created before. This assoziative array holds the chapternames, start- and end-times etc.
Any ideas to solve this are appreciated!
Thanks in advance! Fab