{"action":"created","issue":{"url":"https://api.github.com/repos/triniwiz/nativescript-youtubeplayer/issues/28","repository_url":"https://api.github.com/repos/triniwiz/nativescript-youtubeplayer","labels_url":"https://api.github.com/repos/triniwiz/nativescript-youtubeplayer/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/triniwiz/nativescript-youtubeplayer/issues/28/comments","events_url":"https://api.github.com/repos/triniwiz/nativescript-youtubeplayer/issues/28/events","html_url":"https://github.com/triniwiz/nativescript-youtubeplayer/issues/28","id":374913102,"node_id":"MDU6SXNzdWUzNzQ5MTMxMDI=","number":28,"title":"Video will be played one second only","user":{"login":"ableschulze","id":13657581,"node_id":"MDQ6VXNlcjEzNjU3NTgx","avatar_url":"https://avatars1.githubusercontent.com/u/13657581?v=4","gravatar_id":"","url":"https://api.github.com/users/ableschulze","html_url":"https://github.com/ableschulze","followers_url":"https://api.github.com/users/ableschulze/followers","following_url":"https://api.github.com/users/ableschulze/following{/other_user}","gists_url":"https://api.github.com/users/ableschulze/gists{/gist_id}","starred_url":"https://api.github.com/users/ableschulze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ableschulze/subscriptions","organizations_url":"https://api.github.com/users/ableschulze/orgs","repos_url":"https://api.github.com/users/ableschulze/repos","events_url":"https://api.github.com/users/ableschulze/events{/privacy}","received_events_url":"https://api.github.com/users/ableschulze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-29T08:53:29Z","updated_at":"2018-11-14T13:15:20Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\ni add your component like this:\r\n\r\n`<FlexboxLayout *ngIf=\"!edit\" class=\"message-img\"\r\n            justifyContent=\"center\"\r\n            alignItems=\"center\">\r\n                <Image stretch=\"aspectFill\"  \r\n                    *ngIf=\"dataFormGroup.get('image').value\" \r\n                    width=\"100%\"        \r\n                    height=\"100%\"\r\n                    [src]=\"dataFormGroup.get('imgSrc').value\">\r\n                </Image>\r\n                <YoutubePlayer     \r\n                *ngIf=\"!dataFormGroup.get('image').value\"                 \r\n                apiKey=\"XXXXXX\" \r\n                [src]=\"dataFormGroup.get('youtube').value\" \r\n                height=\"100%\"   \r\n                ></YoutubePlayer>                                           \r\n</FlexboxLayout>           `\r\n\r\nI started my app and the video in your component was loaded. The issue i found is that the video will be played for one second and than it stops. After starting the video again it stops after a second. That's ... not optimal ;D.\r\n\r\nIf i start the video in maximize mode, it will be played normaly. Can you have a look on it? It's a show stopper on my side, because my customer wants this fucntionality."},"comment":{"url":"https://api.github.com/repos/triniwiz/nativescript-youtubeplayer/issues/comments/438657636","html_url":"https://github.com/triniwiz/nativescript-youtubeplayer/issues/28#issuecomment-438657636","issue_url":"https://api.github.com/repos/triniwiz/nativescript-youtubeplayer/issues/28","id":438657636,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODY1NzYzNg==","user":{"login":"rjgpereira","id":8735329,"node_id":"MDQ6VXNlcjg3MzUzMjk=","avatar_url":"https://avatars1.githubusercontent.com/u/8735329?v=4","gravatar_id":"","url":"https://api.github.com/users/rjgpereira","html_url":"https://github.com/rjgpereira","followers_url":"https://api.github.com/users/rjgpereira/followers","following_url":"https://api.github.com/users/rjgpereira/following{/other_user}","gists_url":"https://api.github.com/users/rjgpereira/gists{/gist_id}","starred_url":"https://api.github.com/users/rjgpereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjgpereira/subscriptions","organizations_url":"https://api.github.com/users/rjgpereira/orgs","repos_url":"https://api.github.com/users/rjgpereira/repos","events_url":"https://api.github.com/users/rjgpereira/events{/privacy}","received_events_url":"https://api.github.com/users/rjgpereira/received_events","type":"User","site_admin":false},"created_at":"2018-11-14T13:15:20Z","updated_at":"2018-11-14T13:15:20Z","author_association":"NONE","body":"Hi @ableschulze ! not sure if this is related, but I had a similar issue trying to display an embedded video in a webview. I was using [ngSwitch] to hide and show some elements, and that was causing it (dunno why). As soon as I changed the ngSwitch approach to using conditional \"visibility\", the problem was solved. Maybe it has something to do with that \"ngIf\", don't know.. just a guess.\r\nGood luck!\r\n"}}
{"actor":{"display_login":"rjgpereira"}}