{"action":"closed","issue":{"url":"https://api.github.com/repos/googleads/videojs-ima/issues/223","repository_url":"https://api.github.com/repos/googleads/videojs-ima","labels_url":"https://api.github.com/repos/googleads/videojs-ima/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/googleads/videojs-ima/issues/223/comments","events_url":"https://api.github.com/repos/googleads/videojs-ima/issues/223/events","html_url":"https://github.com/googleads/videojs-ima/issues/223","id":152982182,"number":223,"title":"this.player.ima.start(); causing error ","user":{"login":"jlieb10","id":3300789,"avatar_url":"https://avatars.githubusercontent.com/u/3300789?v=3","gravatar_id":"","url":"https://api.github.com/users/jlieb10","html_url":"https://github.com/jlieb10","followers_url":"https://api.github.com/users/jlieb10/followers","following_url":"https://api.github.com/users/jlieb10/following{/other_user}","gists_url":"https://api.github.com/users/jlieb10/gists{/gist_id}","starred_url":"https://api.github.com/users/jlieb10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlieb10/subscriptions","organizations_url":"https://api.github.com/users/jlieb10/orgs","repos_url":"https://api.github.com/users/jlieb10/repos","events_url":"https://api.github.com/users/jlieb10/events{/privacy}","received_events_url":"https://api.github.com/users/jlieb10/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/googleads/videojs-ima/labels/support","name":"support","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-04T10:43:55Z","updated_at":"2016-06-09T14:51:19Z","closed_at":"2016-06-09T14:51:19Z","body":"I'm building an auto-advancing playlist feature for our video player, which requests pre-roll ads in between videos. It is working as expected, however I'm getting the following console error: `videojs.ima.js:262 Uncaught TypeError: adErrorEvent.getError is not a function`\r\n\r\nTo describe the calls and events (roughly)\r\n```\r\nthis.player.ima(options)\r\nthis.player.ima.requestAds();\r\nthis.player.play();\r\n```\r\npre-roll plays, video plays\r\n```\r\nthis.player.ima.addContentAndAdsEndedListener(() => {\r\nthis.player.ima.setContent(nextVid, adTag, true)\r\nthis.player.ima.requestAds();\r\nthis.player.ima.start();\r\n}\r\n```\r\nconsole error: `Uncaught TypeError: adErrorEvent.getError is not a function`\r\npre-roll plays, video plays\r\n\r\nI've tried changing the order of calls as much as possible but with no luck (the above seems like the most rational order of calls). `this.player.play();` in place of `this.player.ima.start();` fixes the issue, but it seems like the documentation prefers `this.player.ima.start()` to play the ad or content"}}
{"actor":{"display_login":"shawnbuso"}}