{"action":"created","issue":{"url":"https://api.github.com/repos/eface2face/cordova-plugin-iosrtc/issues/251","repository_url":"https://api.github.com/repos/eface2face/cordova-plugin-iosrtc","labels_url":"https://api.github.com/repos/eface2face/cordova-plugin-iosrtc/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/eface2face/cordova-plugin-iosrtc/issues/251/comments","events_url":"https://api.github.com/repos/eface2face/cordova-plugin-iosrtc/issues/251/events","html_url":"https://github.com/eface2face/cordova-plugin-iosrtc/issues/251","id":203493990,"number":251,"title":"video.oncanplay not firing?","user":{"login":"logidelic","id":18287271,"avatar_url":"https://avatars.githubusercontent.com/u/18287271?v=3","gravatar_id":"","url":"https://api.github.com/users/logidelic","html_url":"https://github.com/logidelic","followers_url":"https://api.github.com/users/logidelic/followers","following_url":"https://api.github.com/users/logidelic/following{/other_user}","gists_url":"https://api.github.com/users/logidelic/gists{/gist_id}","starred_url":"https://api.github.com/users/logidelic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logidelic/subscriptions","organizations_url":"https://api.github.com/users/logidelic/orgs","repos_url":"https://api.github.com/users/logidelic/repos","events_url":"https://api.github.com/users/logidelic/events{/privacy}","received_events_url":"https://api.github.com/users/logidelic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-26T21:29:16Z","updated_at":"2017-01-31T13:16:49Z","closed_at":null,"body":"Hey all,\r\n\r\nI can't seem to get the canplay event to fire for my video element. I've read up and I understand that this an artificially emitted event, and that the video element must be attached to the DOM. My element is indeed attached to the DOM before I begin the WebRTC session. Everything works correctly, but the event never gets fired. I've tried listening for the event as follows (as per the docs):\r\n\r\n`videl.addEventListener('canplay', function () {\r\n    console.log('canplay - '+videl.videoWidth+'/'+videl.videoHeight);\r\n});`\r\n\r\nThe event never gets fired. Are there any gotchas that I should check that would prevent this event from firing when all else is working correctly?\r\n\r\nPS: I'm actually trying to determine when video has started playing (i.e. when the first frame is visible to the user). In a regular browser I would just use the 'play' event. Assuming I can get 'canplay' to work, will it suffice here, or does it get fired before the first frame displays?\r\n\r\nThanks much."},"comment":{"url":"https://api.github.com/repos/eface2face/cordova-plugin-iosrtc/issues/comments/276360123","html_url":"https://github.com/eface2face/cordova-plugin-iosrtc/issues/251#issuecomment-276360123","issue_url":"https://api.github.com/repos/eface2face/cordova-plugin-iosrtc/issues/251","id":276360123,"user":{"login":"ptixed","id":11035166,"avatar_url":"https://avatars.githubusercontent.com/u/11035166?v=3","gravatar_id":"","url":"https://api.github.com/users/ptixed","html_url":"https://github.com/ptixed","followers_url":"https://api.github.com/users/ptixed/followers","following_url":"https://api.github.com/users/ptixed/following{/other_user}","gists_url":"https://api.github.com/users/ptixed/gists{/gist_id}","starred_url":"https://api.github.com/users/ptixed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptixed/subscriptions","organizations_url":"https://api.github.com/users/ptixed/orgs","repos_url":"https://api.github.com/users/ptixed/repos","events_url":"https://api.github.com/users/ptixed/events{/privacy}","received_events_url":"https://api.github.com/users/ptixed/received_events","type":"User","site_admin":false},"created_at":"2017-01-31T13:16:49Z","updated_at":"2017-01-31T13:16:49Z","body":"I have described similar issue here https://groups.google.com/forum/#!topic/cordova-plugin-iosrtc/ If you need videoHeight then oncanplay probably is not the way to go. "}}
{"actor":{"display_login":"ptixed"}}