{"action":"closed","issue":{"url":"https://api.github.com/repos/eXon/videojs-youtube/issues/238","labels_url":"https://api.github.com/repos/eXon/videojs-youtube/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/eXon/videojs-youtube/issues/238/comments","events_url":"https://api.github.com/repos/eXon/videojs-youtube/issues/238/events","html_url":"https://github.com/eXon/videojs-youtube/issues/238","id":55620647,"number":238,"title":"Problem Event Play/Pause","user":{"login":"carbos10","id":7451277,"avatar_url":"https://avatars.githubusercontent.com/u/7451277?v=3","gravatar_id":"","url":"https://api.github.com/users/carbos10","html_url":"https://github.com/carbos10","followers_url":"https://api.github.com/users/carbos10/followers","following_url":"https://api.github.com/users/carbos10/following{/other_user}","gists_url":"https://api.github.com/users/carbos10/gists{/gist_id}","starred_url":"https://api.github.com/users/carbos10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carbos10/subscriptions","organizations_url":"https://api.github.com/users/carbos10/orgs","repos_url":"https://api.github.com/users/carbos10/repos","events_url":"https://api.github.com/users/carbos10/events{/privacy}","received_events_url":"https://api.github.com/users/carbos10/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-27T13:58:50Z","updated_at":"2015-03-10T10:49:35Z","closed_at":"2015-03-10T10:49:35Z","body":"I use videoJS's API, i included this plugin, but when i go to pause, i have play event, but when the video is play, it calls pause event.\r\n```\r\nmyPlayer.on('pause', function(){\r\n\t\t\t\tcheckPausePlay();\r\n\t\t\t});\r\n\t\t\tmyPlayer.on('play', function(){\r\n\t\t\t\tcheckPausePlay();\r\n\t\t\t});\r\n\t\t\tmyPlayer.on('seeked', function(){\r\n\t\t\t\t//code \r\n\t\t\t});\r\n```\r\nthis is my code\r\n\r\nI check the pause or play with:\r\n```\r\nvar checkPausePlay = function() {\r\n                var isPaused = myPlayer.paused();\r\n\t\t\t\tvar time_video = myPlayer.currentTime();\r\n                if(isPaused === true) {\r\n                    // code\r\n                } else {\r\n\t\t\t// code\r\n\t\t\t\t}\r\n            };\r\n```"}}