hybrid-publishing-lab / hybrid-lecture-player-mcluhan

Release v1.0 from the Hybrid Publishing Lab, Leuphana University of Lüneburg Innovation Incubator, financed by the European Regional Development Fund and co-funded by the German federal state of Lower Saxony. The Hybrid Lecture Player is a new open source platform release that allows you to turn lecture documentation into a multi-format publication. The case study focuses on the long-running video documentation of an insightful lecture by the historian and curator Graham Larkin on Marshall McLuhan’s own experimental publishing and media practice.
https://mcluhan.consortium.io/
Other
0 stars 1 forks source link

Part that gets video time code from Youtube #12

Open mrchristian opened 9 years ago

mrchristian commented 9 years ago

Hi D,

I'm doing a demo of the HLP on Tuesday and I want to point to the part that gets the youtube timecode.

Is this the right place.

Maybe we can get a brief Skype tomorrow to go over its workings.

https://github.com/consortium/hybrid-lecture-player/blob/master/hybridvideo/js/HybridVideo.js#L392

Thanks

S

djavco commented 9 years ago

Hi Simon

I’m around all day today.

This is the bit that get’s the youtube position:

LINE 166 var timeNow = player.getCurrentTime();

This gets called in quite a few places.

This bit sets up the YouTube player object, once this is done you can called the object functions like ‘getCurrentTime()’: LINE 392

// 2. This code loads the IFrame Player API code asynchronously. var tag = document.createElement('script');

tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

// 3. This function creates an