{"action":"created","comment":{"url":"https://api.github.com/repos/brightcove/videojs-playlist/pulls/comments/26609235","id":26609235,"diff_hunk":"@@ -3,6 +3,16 @@ var setupAutoadvance = require('./autoadvance.js');\n var isArray = Array.isArray || function(array) {\n   return Object.prototype.toString.call(array) === '[object Array]';\n };\n+var isInSources = function(arr, src) {\n+  var i = 0;\n+  for (; i < arr.length; i++) {\n+    if (arr[i] === src || arr.src === src) {","path":"src/playlist-maker.js","position":7,"original_position":7,"commit_id":"3567bdbd964b639d71f41810b2a3e49bbaa8ddb0","original_commit_id":"3567bdbd964b639d71f41810b2a3e49bbaa8ddb0","user":{"login":"gkatsev","id":535884,"avatar_url":"https://avatars.githubusercontent.com/u/535884?v=3","gravatar_id":"","url":"https://api.github.com/users/gkatsev","html_url":"https://github.com/gkatsev","followers_url":"https://api.github.com/users/gkatsev/followers","following_url":"https://api.github.com/users/gkatsev/following{/other_user}","gists_url":"https://api.github.com/users/gkatsev/gists{/gist_id}","starred_url":"https://api.github.com/users/gkatsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkatsev/subscriptions","organizations_url":"https://api.github.com/users/gkatsev/orgs","repos_url":"https://api.github.com/users/gkatsev/repos","events_url":"https://api.github.com/users/gkatsev/events{/privacy}","received_events_url":"https://api.github.com/users/gkatsev/received_events","type":"User","site_admin":false},"body":"Looks like my test was only working incidentally.","created_at":"2015-03-17T19:51:25Z","updated_at":"2015-03-17T19:51:25Z","html_url":"https://github.com/brightcove/videojs-playlist/pull/3#discussion_r26609235","pull_request_url":"https://api.github.com/repos/brightcove/videojs-playlist/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/brightcove/videojs-playlist/pulls/comments/26609235"},"html":{"href":"https://github.com/brightcove/videojs-playlist/pull/3#discussion_r26609235"},"pull_request":{"href":"https://api.github.com/repos/brightcove/videojs-playlist/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/brightcove/videojs-playlist/pulls/3","id":31369664,"html_url":"https://github.com/brightcove/videojs-playlist/pull/3","diff_url":"https://github.com/brightcove/videojs-playlist/pull/3.diff","patch_url":"https://github.com/brightcove/videojs-playlist/pull/3.patch","issue_url":"https://api.github.com/repos/brightcove/videojs-playlist/issues/3","number":3,"state":"open","locked":false,"title":"timeout, currentIndex -1, playlistchange","user":{"login":"gkatsev","id":535884,"avatar_url":"https://avatars.githubusercontent.com/u/535884?v=3","gravatar_id":"","url":"https://api.github.com/users/gkatsev","html_url":"https://github.com/gkatsev","followers_url":"https://api.github.com/users/gkatsev/followers","following_url":"https://api.github.com/users/gkatsev/following{/other_user}","gists_url":"https://api.github.com/users/gkatsev/gists{/gist_id}","starred_url":"https://api.github.com/users/gkatsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkatsev/subscriptions","organizations_url":"https://api.github.com/users/gkatsev/orgs","repos_url":"https://api.github.com/users/gkatsev/repos","events_url":"https://api.github.com/users/gkatsev/events{/privacy}","received_events_url":"https://api.github.com/users/gkatsev/received_events","type":"User","site_admin":false},"body":"This PR does several things:\r\n* autoadvance timeout is now in seconds and not milliseconds\r\n* `autoadvance` is reset whenever a non-playlist item is loaded\r\n* `currentIndex` is set to -1 when a non-playlist item is loaded\r\n* trigger `playlistchange` when the playlist is changed","created_at":"2015-03-17T19:32:28Z","updated_at":"2015-03-17T19:51:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d23e41635dd83ce045bf39c5709d6e997a5a999","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brightcove/videojs-playlist/pulls/3/commits","review_comments_url":"https://api.github.com/repos/brightcove/videojs-playlist/pulls/3/comments","review_comment_url":"https://api.github.com/repos/brightcove/videojs-playlist/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brightcove/videojs-playlist/issues/3/comments","statuses_url":"https://api.github.com/repos/brightcove/videojs-playlist/statuses/3567bdbd964b639d71f41810b2a3e49bbaa8ddb0","head":{"label":"brightcove:non-playlist-items","ref":"non-playlist-items","sha":"3567bdbd964b639d71f41810b2a3e49bbaa8ddb0","user":{"login":"brightcove","id":277032,"avatar_url":"https://avatars.githubusercontent.com/u/277032?v=3","gravatar_id":"","url":"https://api.github.com/users/brightcove","html_url":"https://github.com/brightcove","followers_url":"https://api.github.com/users/brightcove/followers","following_url":"https://api.github.com/users/brightcove/following{/other_user}","gists_url":"https://api.github.com/users/brightcove/gists{/gist_id}","starred_url":"https://api.github.com/users/brightcove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brightcove/subscriptions","organizations_url":"https://api.github.com/users/brightcove/orgs","repos_url":"https://api.github.com/users/brightcove/repos","events_url":"https://api.github.com/users/brightcove/events{/privacy}","received_events_url":"https://api.github.com/users/brightcove/received_events","type":"Organization","site_admin":false},"repo":{"id":31225356,"name":"videojs-playlist","full_name":"brightcove/videojs-playlist","owner":{"login":"brightcove","id":277032,"avatar_url":"https://avatars.githubusercontent.com/u/277032?v=3","gravatar_id":"","url":"https://api.github.com/users/brightcove","html_url":"https://github.com/brightcove","followers_url":"https://api.github.com/users/brightcove/followers","following_url":"https://api.github.com/users/brightcove/following{/other_user}","gists_url":"https://api.github.com/users/brightcove/gists{/gist_id}","starred_url":"https://api.github.com/users/brightcove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brightcove/subscriptions","organizations_url":"https://api.github.com/users/brightcove/orgs","repos_url":"https://api.github.com/users/brightcove/repos","events_url":"https://api.github.com/users/brightcove/events{/privacy}","received_events_url":"https://api.github.com/users/brightcove/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brightcove/videojs-playlist","description":"Playlist plugin for videojs","fork":false,"url":"https://api.github.com/repos/brightcove/videojs-playlist","forks_url":"https://api.github.com/repos/brightcove/videojs-playlist/forks","keys_url":"https://api.github.com/repos/brightcove/videojs-playlist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brightcove/videojs-playlist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brightcove/videojs-playlist/teams","hooks_url":"https://api.github.com/repos/brightcove/videojs-playlist/hooks","issue_events_url":"https://api.github.com/repos/brightcove/videojs-playlist/issues/events{/number}","events_url":"https://api.github.com/repos/brightcove/videojs-playlist/events","assignees_url":"https://api.github.com/repos/brightcove/videojs-playlist/assignees{/user}","branches_url":"https://api.github.com/repos/brightcove/videojs-playlist/branches{/branch}","tags_url":"https://api.github.com/repos/brightcove/videojs-playlist/tags","blobs_url":"https://api.github.com/repos/brightcove/videojs-playlist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brightcove/videojs-playlist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brightcove/videojs-playlist/git/refs{/sha}","trees_url":"https://api.github.com/repos/brightcove/videojs-playlist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brightcove/videojs-playlist/statuses/{sha}","languages_url":"https://api.github.com/repos/brightcove/videojs-playlist/languages","stargazers_url":"https://api.github.com/repos/brightcove/videojs-playlist/stargazers","contributors_url":"https://api.github.com/repos/brightcove/videojs-playlist/contributors","subscribers_url":"https://api.github.com/repos/brightcove/videojs-playlist/subscribers","subscription_url":"https://api.github.com/repos/brightcove/videojs-playlist/subscription","commits_url":"https://api.github.com/repos/brightcove/videojs-playlist/commits{/sha}","git_commits_url":"https://api.github.com/repos/brightcove/videojs-playlist/git/commits{/sha}","comments_url":"https://api.github.com/repos/brightcove/videojs-playlist/comments{/number}","issue_comment_url":"https://api.github.com/repos/brightcove/videojs-playlist/issues/comments{/number}","contents_url":"https://api.github.com/repos/brightcove/videojs-playlist/contents/{+path}","compare_url":"https://api.github.com/repos/brightcove/videojs-playlist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brightcove/videojs-playlist/merges","archive_url":"https://api.github.com/repos/brightcove/videojs-playlist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brightcove/videojs-playlist/downloads","issues_url":"https://api.github.com/repos/brightcove/videojs-playlist/issues{/number}","pulls_url":"https://api.github.com/repos/brightcove/videojs-playlist/pulls{/number}","milestones_url":"https://api.github.com/repos/brightcove/videojs-playlist/milestones{/number}","notifications_url":"https://api.github.com/repos/brightcove/videojs-playlist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brightcove/videojs-playlist/labels{/name}","releases_url":"https://api.github.com/repos/brightcove/videojs-playlist/releases{/id}","created_at":"2015-02-23T19:30:43Z","updated_at":"2015-03-09T21:04:09Z","pushed_at":"2015-03-17T19:30:33Z","git_url":"git://github.com/brightcove/videojs-playlist.git","ssh_url":"git@github.com:brightcove/videojs-playlist.git","clone_url":"https://github.com/brightcove/videojs-playlist.git","svn_url":"https://github.com/brightcove/videojs-playlist","homepage":null,"size":268,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"brightcove:master","ref":"master","sha":"8aa36ce5f1b4faa3c8ae59faf0964142cec45bdf","user":{"login":"brightcove","id":277032,"avatar_url":"https://avatars.githubusercontent.com/u/277032?v=3","gravatar_id":"","url":"https://api.github.com/users/brightcove","html_url":"https://github.com/brightcove","followers_url":"https://api.github.com/users/brightcove/followers","following_url":"https://api.github.com/users/brightcove/following{/other_user}","gists_url":"https://api.github.com/users/brightcove/gists{/gist_id}","starred_url":"https://api.github.com/users/brightcove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brightcove/subscriptions","organizations_url":"https://api.github.com/users/brightcove/orgs","repos_url":"https://api.github.com/users/brightcove/repos","events_url":"https://api.github.com/users/brightcove/events{/privacy}","received_events_url":"https://api.github.com/users/brightcove/received_events","type":"Organization","site_admin":false},"repo":{"id":31225356,"name":"videojs-playlist","full_name":"brightcove/videojs-playlist","owner":{"login":"brightcove","id":277032,"avatar_url":"https://avatars.githubusercontent.com/u/277032?v=3","gravatar_id":"","url":"https://api.github.com/users/brightcove","html_url":"https://github.com/brightcove","followers_url":"https://api.github.com/users/brightcove/followers","following_url":"https://api.github.com/users/brightcove/following{/other_user}","gists_url":"https://api.github.com/users/brightcove/gists{/gist_id}","starred_url":"https://api.github.com/users/brightcove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brightcove/subscriptions","organizations_url":"https://api.github.com/users/brightcove/orgs","repos_url":"https://api.github.com/users/brightcove/repos","events_url":"https://api.github.com/users/brightcove/events{/privacy}","received_events_url":"https://api.github.com/users/brightcove/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brightcove/videojs-playlist","description":"Playlist plugin for videojs","fork":false,"url":"https://api.github.com/repos/brightcove/videojs-playlist","forks_url":"https://api.github.com/repos/brightcove/videojs-playlist/forks","keys_url":"https://api.github.com/repos/brightcove/videojs-playlist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brightcove/videojs-playlist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brightcove/videojs-playlist/teams","hooks_url":"https://api.github.com/repos/brightcove/videojs-playlist/hooks","issue_events_url":"https://api.github.com/repos/brightcove/videojs-playlist/issues/events{/number}","events_url":"https://api.github.com/repos/brightcove/videojs-playlist/events","assignees_url":"https://api.github.com/repos/brightcove/videojs-playlist/assignees{/user}","branches_url":"https://api.github.com/repos/brightcove/videojs-playlist/branches{/branch}","tags_url":"https://api.github.com/repos/brightcove/videojs-playlist/tags","blobs_url":"https://api.github.com/repos/brightcove/videojs-playlist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brightcove/videojs-playlist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brightcove/videojs-playlist/git/refs{/sha}","trees_url":"https://api.github.com/repos/brightcove/videojs-playlist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brightcove/videojs-playlist/statuses/{sha}","languages_url":"https://api.github.com/repos/brightcove/videojs-playlist/languages","stargazers_url":"https://api.github.com/repos/brightcove/videojs-playlist/stargazers","contributors_url":"https://api.github.com/repos/brightcove/videojs-playlist/contributors","subscribers_url":"https://api.github.com/repos/brightcove/videojs-playlist/subscribers","subscription_url":"https://api.github.com/repos/brightcove/videojs-playlist/subscription","commits_url":"https://api.github.com/repos/brightcove/videojs-playlist/commits{/sha}","git_commits_url":"https://api.github.com/repos/brightcove/videojs-playlist/git/commits{/sha}","comments_url":"https://api.github.com/repos/brightcove/videojs-playlist/comments{/number}","issue_comment_url":"https://api.github.com/repos/brightcove/videojs-playlist/issues/comments{/number}","contents_url":"https://api.github.com/repos/brightcove/videojs-playlist/contents/{+path}","compare_url":"https://api.github.com/repos/brightcove/videojs-playlist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brightcove/videojs-playlist/merges","archive_url":"https://api.github.com/repos/brightcove/videojs-playlist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brightcove/videojs-playlist/downloads","issues_url":"https://api.github.com/repos/brightcove/videojs-playlist/issues{/number}","pulls_url":"https://api.github.com/repos/brightcove/videojs-playlist/pulls{/number}","milestones_url":"https://api.github.com/repos/brightcove/videojs-playlist/milestones{/number}","notifications_url":"https://api.github.com/repos/brightcove/videojs-playlist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brightcove/videojs-playlist/labels{/name}","releases_url":"https://api.github.com/repos/brightcove/videojs-playlist/releases{/id}","created_at":"2015-02-23T19:30:43Z","updated_at":"2015-03-09T21:04:09Z","pushed_at":"2015-03-17T19:30:33Z","git_url":"git://github.com/brightcove/videojs-playlist.git","ssh_url":"git@github.com:brightcove/videojs-playlist.git","clone_url":"https://github.com/brightcove/videojs-playlist.git","svn_url":"https://github.com/brightcove/videojs-playlist","homepage":null,"size":268,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brightcove/videojs-playlist/pulls/3"},"html":{"href":"https://github.com/brightcove/videojs-playlist/pull/3"},"issue":{"href":"https://api.github.com/repos/brightcove/videojs-playlist/issues/3"},"comments":{"href":"https://api.github.com/repos/brightcove/videojs-playlist/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/brightcove/videojs-playlist/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/brightcove/videojs-playlist/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brightcove/videojs-playlist/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/brightcove/videojs-playlist/statuses/3567bdbd964b639d71f41810b2a3e49bbaa8ddb0"}}}}