{"action":"created","comment":{"url":"https://api.github.com/repos/videojs/video.js/pulls/comments/36438847","id":36438847,"diff_hunk":"@@ -312,18 +312,18 @@ class Tech extends Component {\n    * @method emulateTextTracks\n    */\n   emulateTextTracks() {\n+    let tracks = this.textTracks();\n+    if (!tracks) {\n+      return;\n+    }\n+\n     if (!window['WebVTT'] && this.el().parentNode != null) {\n       let script = document.createElement('script');\n-      script.src = this.options_['vtt.js'] || '../node_modules/vtt.js/dist/vtt.js';\n+      script.src = this.options_['vtt.js'] || 'https://raw.githubusercontent.com/mozilla/vtt.js/v0.12.1/dist/vtt.js';","path":"src/js/tech/tech.js","position":12,"original_position":12,"commit_id":"54cda845a8e9918e176301b68c566b37eaef58a6","original_commit_id":"54cda845a8e9918e176301b68c566b37eaef58a6","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":"We're not using the official mozilla version right now.\r\nAlso, making this change means that developing locally could be a pain. Not sure exactly what we would want to do here instead. Maybe replace it with the rawgit url on built?","created_at":"2015-08-06T17:03:18Z","updated_at":"2015-08-06T17:03:18Z","html_url":"https://github.com/videojs/video.js/pull/2426#discussion_r36438847","pull_request_url":"https://api.github.com/repos/videojs/video.js/pulls/2426","_links":{"self":{"href":"https://api.github.com/repos/videojs/video.js/pulls/comments/36438847"},"html":{"href":"https://github.com/videojs/video.js/pull/2426#discussion_r36438847"},"pull_request":{"href":"https://api.github.com/repos/videojs/video.js/pulls/2426"}}},"pull_request":{"url":"https://api.github.com/repos/videojs/video.js/pulls/2426","id":41493861,"html_url":"https://github.com/videojs/video.js/pull/2426","diff_url":"https://github.com/videojs/video.js/pull/2426.diff","patch_url":"https://github.com/videojs/video.js/pull/2426.patch","issue_url":"https://api.github.com/repos/videojs/video.js/issues/2426","number":2426,"state":"open","locked":false,"title":"Refactors defaults for vtt.js","user":{"login":"brkattk","id":324258,"avatar_url":"https://avatars.githubusercontent.com/u/324258?v=3","gravatar_id":"","url":"https://api.github.com/users/brkattk","html_url":"https://github.com/brkattk","followers_url":"https://api.github.com/users/brkattk/followers","following_url":"https://api.github.com/users/brkattk/following{/other_user}","gists_url":"https://api.github.com/users/brkattk/gists{/gist_id}","starred_url":"https://api.github.com/users/brkattk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brkattk/subscriptions","organizations_url":"https://api.github.com/users/brkattk/orgs","repos_url":"https://api.github.com/users/brkattk/repos","events_url":"https://api.github.com/users/brkattk/events{/privacy}","received_events_url":"https://api.github.com/users/brkattk/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-03T18:11:39Z","updated_at":"2015-08-06T17:03:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"706eb0ae9a3eb046d418e50009014a4e41ddfbe0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/videojs/video.js/pulls/2426/commits","review_comments_url":"https://api.github.com/repos/videojs/video.js/pulls/2426/comments","review_comment_url":"https://api.github.com/repos/videojs/video.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/videojs/video.js/issues/2426/comments","statuses_url":"https://api.github.com/repos/videojs/video.js/statuses/54cda845a8e9918e176301b68c566b37eaef58a6","head":{"label":"oddnetworks:master","ref":"master","sha":"54cda845a8e9918e176301b68c566b37eaef58a6","user":{"login":"oddnetworks","id":7726625,"avatar_url":"https://avatars.githubusercontent.com/u/7726625?v=3","gravatar_id":"","url":"https://api.github.com/users/oddnetworks","html_url":"https://github.com/oddnetworks","followers_url":"https://api.github.com/users/oddnetworks/followers","following_url":"https://api.github.com/users/oddnetworks/following{/other_user}","gists_url":"https://api.github.com/users/oddnetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/oddnetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oddnetworks/subscriptions","organizations_url":"https://api.github.com/users/oddnetworks/orgs","repos_url":"https://api.github.com/users/oddnetworks/repos","events_url":"https://api.github.com/users/oddnetworks/events{/privacy}","received_events_url":"https://api.github.com/users/oddnetworks/received_events","type":"Organization","site_admin":false},"repo":{"id":40139696,"name":"video.js","full_name":"oddnetworks/video.js","owner":{"login":"oddnetworks","id":7726625,"avatar_url":"https://avatars.githubusercontent.com/u/7726625?v=3","gravatar_id":"","url":"https://api.github.com/users/oddnetworks","html_url":"https://github.com/oddnetworks","followers_url":"https://api.github.com/users/oddnetworks/followers","following_url":"https://api.github.com/users/oddnetworks/following{/other_user}","gists_url":"https://api.github.com/users/oddnetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/oddnetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oddnetworks/subscriptions","organizations_url":"https://api.github.com/users/oddnetworks/orgs","repos_url":"https://api.github.com/users/oddnetworks/repos","events_url":"https://api.github.com/users/oddnetworks/events{/privacy}","received_events_url":"https://api.github.com/users/oddnetworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oddnetworks/video.js","description":"Video.js - open source HTML5 & Flash video player","fork":true,"url":"https://api.github.com/repos/oddnetworks/video.js","forks_url":"https://api.github.com/repos/oddnetworks/video.js/forks","keys_url":"https://api.github.com/repos/oddnetworks/video.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oddnetworks/video.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oddnetworks/video.js/teams","hooks_url":"https://api.github.com/repos/oddnetworks/video.js/hooks","issue_events_url":"https://api.github.com/repos/oddnetworks/video.js/issues/events{/number}","events_url":"https://api.github.com/repos/oddnetworks/video.js/events","assignees_url":"https://api.github.com/repos/oddnetworks/video.js/assignees{/user}","branches_url":"https://api.github.com/repos/oddnetworks/video.js/branches{/branch}","tags_url":"https://api.github.com/repos/oddnetworks/video.js/tags","blobs_url":"https://api.github.com/repos/oddnetworks/video.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oddnetworks/video.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oddnetworks/video.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/oddnetworks/video.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oddnetworks/video.js/statuses/{sha}","languages_url":"https://api.github.com/repos/oddnetworks/video.js/languages","stargazers_url":"https://api.github.com/repos/oddnetworks/video.js/stargazers","contributors_url":"https://api.github.com/repos/oddnetworks/video.js/contributors","subscribers_url":"https://api.github.com/repos/oddnetworks/video.js/subscribers","subscription_url":"https://api.github.com/repos/oddnetworks/video.js/subscription","commits_url":"https://api.github.com/repos/oddnetworks/video.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/oddnetworks/video.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/oddnetworks/video.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/oddnetworks/video.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/oddnetworks/video.js/contents/{+path}","compare_url":"https://api.github.com/repos/oddnetworks/video.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oddnetworks/video.js/merges","archive_url":"https://api.github.com/repos/oddnetworks/video.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oddnetworks/video.js/downloads","issues_url":"https://api.github.com/repos/oddnetworks/video.js/issues{/number}","pulls_url":"https://api.github.com/repos/oddnetworks/video.js/pulls{/number}","milestones_url":"https://api.github.com/repos/oddnetworks/video.js/milestones{/number}","notifications_url":"https://api.github.com/repos/oddnetworks/video.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oddnetworks/video.js/labels{/name}","releases_url":"https://api.github.com/repos/oddnetworks/video.js/releases{/id}","created_at":"2015-08-03T17:55:32Z","updated_at":"2015-08-03T17:55:34Z","pushed_at":"2015-08-03T18:10:48Z","git_url":"git://github.com/oddnetworks/video.js.git","ssh_url":"git@github.com:oddnetworks/video.js.git","clone_url":"https://github.com/oddnetworks/video.js.git","svn_url":"https://github.com/oddnetworks/video.js","homepage":"www.videojs.com","size":55371,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"videojs:master","ref":"master","sha":"7d335e09895ffa2a4a52b276ac220c1770c92d94","user":{"login":"videojs","id":3287189,"avatar_url":"https://avatars.githubusercontent.com/u/3287189?v=3","gravatar_id":"","url":"https://api.github.com/users/videojs","html_url":"https://github.com/videojs","followers_url":"https://api.github.com/users/videojs/followers","following_url":"https://api.github.com/users/videojs/following{/other_user}","gists_url":"https://api.github.com/users/videojs/gists{/gist_id}","starred_url":"https://api.github.com/users/videojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/videojs/subscriptions","organizations_url":"https://api.github.com/users/videojs/orgs","repos_url":"https://api.github.com/users/videojs/repos","events_url":"https://api.github.com/users/videojs/events{/privacy}","received_events_url":"https://api.github.com/users/videojs/received_events","type":"Organization","site_admin":false},"repo":{"id":667006,"name":"video.js","full_name":"videojs/video.js","owner":{"login":"videojs","id":3287189,"avatar_url":"https://avatars.githubusercontent.com/u/3287189?v=3","gravatar_id":"","url":"https://api.github.com/users/videojs","html_url":"https://github.com/videojs","followers_url":"https://api.github.com/users/videojs/followers","following_url":"https://api.github.com/users/videojs/following{/other_user}","gists_url":"https://api.github.com/users/videojs/gists{/gist_id}","starred_url":"https://api.github.com/users/videojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/videojs/subscriptions","organizations_url":"https://api.github.com/users/videojs/orgs","repos_url":"https://api.github.com/users/videojs/repos","events_url":"https://api.github.com/users/videojs/events{/privacy}","received_events_url":"https://api.github.com/users/videojs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/videojs/video.js","description":"Video.js - open source HTML5 & Flash video player","fork":false,"url":"https://api.github.com/repos/videojs/video.js","forks_url":"https://api.github.com/repos/videojs/video.js/forks","keys_url":"https://api.github.com/repos/videojs/video.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/videojs/video.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/videojs/video.js/teams","hooks_url":"https://api.github.com/repos/videojs/video.js/hooks","issue_events_url":"https://api.github.com/repos/videojs/video.js/issues/events{/number}","events_url":"https://api.github.com/repos/videojs/video.js/events","assignees_url":"https://api.github.com/repos/videojs/video.js/assignees{/user}","branches_url":"https://api.github.com/repos/videojs/video.js/branches{/branch}","tags_url":"https://api.github.com/repos/videojs/video.js/tags","blobs_url":"https://api.github.com/repos/videojs/video.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/videojs/video.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/videojs/video.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/videojs/video.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/videojs/video.js/statuses/{sha}","languages_url":"https://api.github.com/repos/videojs/video.js/languages","stargazers_url":"https://api.github.com/repos/videojs/video.js/stargazers","contributors_url":"https://api.github.com/repos/videojs/video.js/contributors","subscribers_url":"https://api.github.com/repos/videojs/video.js/subscribers","subscription_url":"https://api.github.com/repos/videojs/video.js/subscription","commits_url":"https://api.github.com/repos/videojs/video.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/videojs/video.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/videojs/video.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/videojs/video.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/videojs/video.js/contents/{+path}","compare_url":"https://api.github.com/repos/videojs/video.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/videojs/video.js/merges","archive_url":"https://api.github.com/repos/videojs/video.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/videojs/video.js/downloads","issues_url":"https://api.github.com/repos/videojs/video.js/issues{/number}","pulls_url":"https://api.github.com/repos/videojs/video.js/pulls{/number}","milestones_url":"https://api.github.com/repos/videojs/video.js/milestones{/number}","notifications_url":"https://api.github.com/repos/videojs/video.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/videojs/video.js/labels{/name}","releases_url":"https://api.github.com/repos/videojs/video.js/releases{/id}","created_at":"2010-05-14T18:45:10Z","updated_at":"2015-08-06T16:57:53Z","pushed_at":"2015-08-06T14:57:19Z","git_url":"git://github.com/videojs/video.js.git","ssh_url":"git@github.com:videojs/video.js.git","clone_url":"https://github.com/videojs/video.js.git","svn_url":"https://github.com/videojs/video.js","homepage":"www.videojs.com","size":55371,"stargazers_count":9758,"watchers_count":9758,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":2803,"mirror_url":null,"open_issues_count":200,"forks":2803,"open_issues":200,"watchers":9758,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/videojs/video.js/pulls/2426"},"html":{"href":"https://github.com/videojs/video.js/pull/2426"},"issue":{"href":"https://api.github.com/repos/videojs/video.js/issues/2426"},"comments":{"href":"https://api.github.com/repos/videojs/video.js/issues/2426/comments"},"review_comments":{"href":"https://api.github.com/repos/videojs/video.js/pulls/2426/comments"},"review_comment":{"href":"https://api.github.com/repos/videojs/video.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/videojs/video.js/pulls/2426/commits"},"statuses":{"href":"https://api.github.com/repos/videojs/video.js/statuses/54cda845a8e9918e176301b68c566b37eaef58a6"}}}}