Open mrchristian opened 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
player = new YT.Player('player', { height: '390', width: '640', videoId: 'ySI1OMBhPgQ', events: { 'onReady': onPlayerReady, 'onStateChange': onPlayerStateChange }, playerVars: { 'showinfo' : 0, 'autohide': 1 } }); }
LINE 509 we call the function ‘getCurrentTime()’ to make the citation url.
Hope this helps, the youtube iframe API is all nicely documented here: https://developers.google.com/youtube/iframe_api_reference https://developers.google.com/youtube/iframe_api_reference
atb
Daniel Jackson
Avco Productions Ltd 13 Gibraltar Walk, London E2 7LH http://www.avco.com http://www.avco.com/
Studio: +44 (0)20 7613 0089 Mobile: +44 (0) 7958 353 421 daniel@avco.com mailto:tina@avco.com
Avco Productions Limited is Registered in England No. 3401782
On 10 May 2015, at 14:57, Simon Worthington notifications@github.com wrote:
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 https://github.com/consortium/hybrid-lecture-player/blob/master/hybridvideo/js/HybridVideo.js#L392 Thanks
S
— Reply to this email directly or view it on GitHub https://github.com/consortium/hybrid-lecture-player/issues/12.
Hi D,
Good one, thanks.
S
On 11/05/2015 10:15, Daniel Jackson wrote:
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
player = new YT.Player('player', { height: '390', width: '640', videoId: 'ySI1OMBhPgQ', events: { 'onReady': onPlayerReady, 'onStateChange': onPlayerStateChange }, playerVars: { 'showinfo' : 0, 'autohide': 1 } }); }
LINE 509 we call the function ‘getCurrentTime()’ to make the citation url.
Hope this helps, the youtube iframe API is all nicely documented here: https://developers.google.com/youtube/iframe_api_reference https://developers.google.com/youtube/iframe_api_reference
atb
Daniel
Daniel Jackson
Avco Productions Ltd 13 Gibraltar Walk, London E2 7LH http://www.avco.com http://www.avco.com/
Studio: +44 (0)20 7613 0089 Mobile: +44 (0) 7958 353 421 daniel@avco.com mailto:tina@avco.com
Avco Productions Limited is Registered in England No. 3401782
All Information contained within this email and attached document(s) is for the attention of the addressee(s) only, is strictly confidential and is covered by the relevant copyright and moral rights protections.
On 10 May 2015, at 14:57, Simon Worthington notifications@github.com wrote:
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 https://github.com/consortium/hybrid-lecture-player/blob/master/hybridvideo/js/HybridVideo.js#L392 Thanks
S
— Reply to this email directly or view it on GitHub https://github.com/consortium/hybrid-lecture-player/issues/12.
Reply to this email directly or view it on GitHub: https://github.com/consortium/hybrid-lecture-player/issues/12#issuecomment-100811376
we gladly feast on those who would subdue us - http://metamute.org
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