Skip to content
Browse files

Get YouTube video_id directly (getVideoData no longer works)

  • Loading branch information...
1 parent b36b622 commit 3b671c782d4fd6ad7a7ce5b85af43977b0172b54 @dbarlett dbarlett committed Aug 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/plugins/youtube.js
View
4 src/plugins/youtube.js
@@ -24,7 +24,7 @@ var _ytPoolMaps = {};
function _ytStartPool(target) {
if (_ytTimeTriggers && _ytTimeTriggers.length) {
- var h = target['getVideoData']()['video_id'];
+ var h = target['d']['videoData']['video_id'];
if (_ytPoolMaps[h]) {
_ytStopPool(target);
}else {
@@ -54,7 +54,7 @@ function _ytPool(target, hash) {
}
function _ytStopPool(target) {
- var h = target['getVideoData']()['video_id'];
+ var h = target['d']['videoData']['video_id'];
if (_ytPoolMaps[h] && _ytPoolMaps[h].timer) {
_ytPool(target, h); // Pool one last time before clearing it.
clearTimeout(_ytPoolMaps[h].timer);

0 comments on commit 3b671c7

Please sign in to comment.
Something went wrong with that request. Please try again.