{"action":"created","issue":{"url":"https://api.github.com/repos/pupunzi/jquery.mb.YTPlayer/issues/129","labels_url":"https://api.github.com/repos/pupunzi/jquery.mb.YTPlayer/issues/129/labels{/name}","comments_url":"https://api.github.com/repos/pupunzi/jquery.mb.YTPlayer/issues/129/comments","events_url":"https://api.github.com/repos/pupunzi/jquery.mb.YTPlayer/issues/129/events","html_url":"https://github.com/pupunzi/jquery.mb.YTPlayer/issues/129","id":91887399,"number":129,"title":"Very short video are not played to the end.","user":{"login":"ikixxx","id":390700,"avatar_url":"https://avatars.githubusercontent.com/u/390700?v=3","gravatar_id":"","url":"https://api.github.com/users/ikixxx","html_url":"https://github.com/ikixxx","followers_url":"https://api.github.com/users/ikixxx/followers","following_url":"https://api.github.com/users/ikixxx/following{/other_user}","gists_url":"https://api.github.com/users/ikixxx/gists{/gist_id}","starred_url":"https://api.github.com/users/ikixxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikixxx/subscriptions","organizations_url":"https://api.github.com/users/ikixxx/orgs","repos_url":"https://api.github.com/users/ikixxx/repos","events_url":"https://api.github.com/users/ikixxx/events{/privacy}","received_events_url":"https://api.github.com/users/ikixxx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-29T19:26:40Z","updated_at":"2015-06-29T19:53:38Z","closed_at":null,"body":"Using the `playlist` functionality of the plugin, if you use very short movies  `~10s`, they are not played all the way to the end. Checkout out this playlist for testing purposes.\r\n```` javascript \r\nvar playlist = [\r\n                'https://www.youtube.com/watch?v=yWaelIrAv9A',\r\n                'https://www.youtube.com/watch?v=zr9leP_Dcm8',\r\n                'https://www.youtube.com/watch?v=ekwF2bnHf84',\r\n                'https://www.youtube.com/watch?v=GAHATYO18uA',\r\n]\r\n````"},"comment":{"url":"https://api.github.com/repos/pupunzi/jquery.mb.YTPlayer/issues/comments/116816470","html_url":"https://github.com/pupunzi/jquery.mb.YTPlayer/issues/129#issuecomment-116816470","issue_url":"https://api.github.com/repos/pupunzi/jquery.mb.YTPlayer/issues/129","id":116816470,"user":{"login":"pupunzi","id":56659,"avatar_url":"https://avatars.githubusercontent.com/u/56659?v=3","gravatar_id":"","url":"https://api.github.com/users/pupunzi","html_url":"https://github.com/pupunzi","followers_url":"https://api.github.com/users/pupunzi/followers","following_url":"https://api.github.com/users/pupunzi/following{/other_user}","gists_url":"https://api.github.com/users/pupunzi/gists{/gist_id}","starred_url":"https://api.github.com/users/pupunzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pupunzi/subscriptions","organizations_url":"https://api.github.com/users/pupunzi/orgs","repos_url":"https://api.github.com/users/pupunzi/repos","events_url":"https://api.github.com/users/pupunzi/events{/privacy}","received_events_url":"https://api.github.com/users/pupunzi/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T19:53:38Z","updated_at":"2015-06-29T19:53:38Z","body":"Hi,\r\nThe player actually stops the video three seconds befor the end to prevent the display of the \"play\" button it use to show at the end of a video. In the truth this time can be shortened to 1 second (just made few test but it seams to work).\r\n\r\nchange line 1180\r\nfrom:\r\n```\r\nif( YTPlayer.player.getPlayerState() == 3 ...\r\n```\r\nto:\r\n```\r\nif( YTPlayer.player.getPlayerState() == 1 ...\r\n```\r\n\r\nBye,\r\nMatteo\r\n"}}