{"action":"created","issue":{"url":"https://api.github.com/repos/youtube/youtube-ios-player-helper/issues/292","repository_url":"https://api.github.com/repos/youtube/youtube-ios-player-helper","labels_url":"https://api.github.com/repos/youtube/youtube-ios-player-helper/issues/292/labels{/name}","comments_url":"https://api.github.com/repos/youtube/youtube-ios-player-helper/issues/292/comments","events_url":"https://api.github.com/repos/youtube/youtube-ios-player-helper/issues/292/events","html_url":"https://github.com/youtube/youtube-ios-player-helper/issues/292","id":273363203,"node_id":"MDU6SXNzdWUyNzMzNjMyMDM=","number":292,"title":"YouTube always expands to full screen when starts playing","user":{"login":"csbubbles","id":56697,"node_id":"MDQ6VXNlcjU2Njk3","avatar_url":"https://avatars0.githubusercontent.com/u/56697?v=4","gravatar_id":"","url":"https://api.github.com/users/csbubbles","html_url":"https://github.com/csbubbles","followers_url":"https://api.github.com/users/csbubbles/followers","following_url":"https://api.github.com/users/csbubbles/following{/other_user}","gists_url":"https://api.github.com/users/csbubbles/gists{/gist_id}","starred_url":"https://api.github.com/users/csbubbles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csbubbles/subscriptions","organizations_url":"https://api.github.com/users/csbubbles/orgs","repos_url":"https://api.github.com/users/csbubbles/repos","events_url":"https://api.github.com/users/csbubbles/events{/privacy}","received_events_url":"https://api.github.com/users/csbubbles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-11-13T09:35:24Z","updated_at":"2018-08-19T19:15:10Z","closed_at":null,"author_association":"NONE","body":"Xcode: 9.1 (9B55)\r\niOS: 11.1\r\nYouTube iOS Player: `pod \"youtube-ios-player-helper\", \"~> 0.1.6\"`\r\n\r\n## Repro steps\r\n* Create a new Swift project in Xcode\r\n* Add an Objective-C bridging header, and `#include \"YTPlayerView.h\"` there\r\n* Add a view to the main view controller (`Main.storyboard`) and change the view's class to `YTPlayerView`; add appropriate constrains (e.g., left, top, right and height/width proportion)\r\n* Connect the view to `playerView` field in `ViewController.swift`\r\n* Add `playerView.load(withVideoId: \"M7lc1UVf-VE\")` to the end of `viewDidLoad()` method in `ViewController.swift`\r\n* Run the app in a simulator\r\n* Wait till the video is loaded\r\n* Press **Play** button in the YouTube player\r\n\r\n## Expected result\r\nThe video starts playing in the inline mode (the YouTube player doesn't change its size / bounds).\r\n\r\n## Actual result\r\nThe player goes to the full-screen mode. If you switch it back to the inline mode from the full-screen one, the video stops. You press **Play** again, the video expands at full screen again. There is no way to play a video not having the YouTube played expanded to the full screen.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/youtube/youtube-ios-player-helper/issues/comments/414149068","html_url":"https://github.com/youtube/youtube-ios-player-helper/issues/292#issuecomment-414149068","issue_url":"https://api.github.com/repos/youtube/youtube-ios-player-helper/issues/292","id":414149068,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDE0OTA2OA==","user":{"login":"anthorn69","id":40458806,"node_id":"MDQ6VXNlcjQwNDU4ODA2","avatar_url":"https://avatars0.githubusercontent.com/u/40458806?v=4","gravatar_id":"","url":"https://api.github.com/users/anthorn69","html_url":"https://github.com/anthorn69","followers_url":"https://api.github.com/users/anthorn69/followers","following_url":"https://api.github.com/users/anthorn69/following{/other_user}","gists_url":"https://api.github.com/users/anthorn69/gists{/gist_id}","starred_url":"https://api.github.com/users/anthorn69/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthorn69/subscriptions","organizations_url":"https://api.github.com/users/anthorn69/orgs","repos_url":"https://api.github.com/users/anthorn69/repos","events_url":"https://api.github.com/users/anthorn69/events{/privacy}","received_events_url":"https://api.github.com/users/anthorn69/received_events","type":"User","site_admin":false},"created_at":"2018-08-19T19:15:10Z","updated_at":"2018-08-19T19:15:10Z","author_association":"NONE","body":"How to use other variables such as `start` or `end` that takes an Int value ? I tried to use the following but when I insert start and end parameters, the player stop working : \r\n\r\n```\r\n youtubePlayerView.playerVars = [\r\n            **\"start\": 10 as AnyObject,**\r\n            **\"end\": 14 as AnyObject,**\r\n            \"playsinline\": \"0\" as AnyObject,\r\n            \"showinfo\": \"0\" as AnyObject,\r\n            \"controls\": \"1\" as AnyObject,\r\n            \"modestbranding\": \"0\" as AnyObject\r\n            ] as YouTubePlayerView.YouTubePlayerParameters\r\n        youtubePlayerView.loadVideoID(videoURl)\r\n```"}}
{"actor":{"display_login":"anthorn69"}}