{"action":"created","issue":{"url":"https://api.github.com/repos/videogular/videogular/issues/411","repository_url":"https://api.github.com/repos/videogular/videogular","labels_url":"https://api.github.com/repos/videogular/videogular/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/videogular/videogular/issues/411/comments","events_url":"https://api.github.com/repos/videogular/videogular/issues/411/events","html_url":"https://github.com/videogular/videogular/issues/411","id":179755523,"number":411,"title":"Change playback not working in Android","user":{"login":"YanMagale","id":5148042,"avatar_url":"https://avatars.githubusercontent.com/u/5148042?v=3","gravatar_id":"","url":"https://api.github.com/users/YanMagale","html_url":"https://github.com/YanMagale","followers_url":"https://api.github.com/users/YanMagale/followers","following_url":"https://api.github.com/users/YanMagale/following{/other_user}","gists_url":"https://api.github.com/users/YanMagale/gists{/gist_id}","starred_url":"https://api.github.com/users/YanMagale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YanMagale/subscriptions","organizations_url":"https://api.github.com/users/YanMagale/orgs","repos_url":"https://api.github.com/users/YanMagale/repos","events_url":"https://api.github.com/users/YanMagale/events{/privacy}","received_events_url":"https://api.github.com/users/YanMagale/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-28T12:13:02Z","updated_at":"2016-09-29T11:46:25Z","closed_at":null,"body":"Hi everyone.\r\n\r\nFirst, thanks by your contributtion with this project. Is really awesome.\r\n\r\nI implemented the \"audio player\" example and try to change the playback. In Chrome and others browsers, works fine. But in mobile, when i try to change the playback, i'm receiving the error in console:\r\n\r\n`Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided double value is non-finite.`\r\n\r\nI dont have ideia why cause this bug. Can you help me? \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/videogular/videogular/issues/comments/250443902","html_url":"https://github.com/videogular/videogular/issues/411#issuecomment-250443902","issue_url":"https://api.github.com/repos/videogular/videogular/issues/411","id":250443902,"user":{"login":"YanMagale","id":5148042,"avatar_url":"https://avatars.githubusercontent.com/u/5148042?v=3","gravatar_id":"","url":"https://api.github.com/users/YanMagale","html_url":"https://github.com/YanMagale","followers_url":"https://api.github.com/users/YanMagale/followers","following_url":"https://api.github.com/users/YanMagale/following{/other_user}","gists_url":"https://api.github.com/users/YanMagale/gists{/gist_id}","starred_url":"https://api.github.com/users/YanMagale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YanMagale/subscriptions","organizations_url":"https://api.github.com/users/YanMagale/orgs","repos_url":"https://api.github.com/users/YanMagale/repos","events_url":"https://api.github.com/users/YanMagale/events{/privacy}","received_events_url":"https://api.github.com/users/YanMagale/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T11:46:25Z","updated_at":"2016-09-29T11:46:25Z","body":"I found the source of the problem. In `vg-controls` plugin, `TouchEvent` event does not have the `layerX` property. How does the calculation of the `touchX` property?\r\n\r\n             scope.onScrubBarTouchStart = function onScrubBarTouchStart($event) {\r\n                    var event = $event.originalEvent || $event;\r\n                    var touches = event.touches;\r\n                    var touchX;\r\n\r\n                    if (VG_UTILS.isiOSDevice()) {\r\n                        touchStartX = (touches[0].clientX - event.layerX) * -1;\r\n                    }\r\n                    else {\r\n                        touchStartX = event.layerX;//its broken, returns undefined\r\n\r\n                    }\r\n\r\n                    touchX = touches[0].clientX + touchStartX - touches[0].target.offsetLeft;\r\n\r\n                    isSeeking = true;\r\n                    if (isPlaying) isPlayingWhenSeeking = true;\r\n                    API.pause();\r\n                    API.seekTime(touchX * API.mediaElement[0].duration / elem[0].scrollWidth);\r\n\r\n                    scope.$apply();\r\n                };"}}
{"actor":{"display_login":"YanMagale"}}