Hi I am currently trying to create a JavaScript based class program which embeds a playlist of videos and then uses popcorn.js to have Google maps alongside the playlist and get each video to have a corresponding map position.
This jsfiddle shows the basic form of the type of playlists I'd be using. http://jsfiddle.net/Barzi/Jzs6B/9/
$(function() {
$("#playlist li").on("click", function() {
$("#videoarea").attr({
"src": $(this).attr("movieurl"),
"poster": "",
"autoplay": "autoplay"
})
})
$("#videoarea").attr({
"src": $("#playlist li").eq(0).attr("movieurl"),
"poster": $("#playlist li").eq(0).attr("moviesposter")
})
})
I am trying to work out how to utilize popcorn.js to get a Google maps feature alongside this playlist however this is proving more difficult than I originally thought because the I intend to use JavaScript classes for the structure rather then just the one JavaScript file.
Any help would be truly appreciated!