{"action":"created","issue":{"url":"https://api.github.com/repos/clappr/clappr/issues/708","labels_url":"https://api.github.com/repos/clappr/clappr/issues/708/labels{/name}","comments_url":"https://api.github.com/repos/clappr/clappr/issues/708/comments","events_url":"https://api.github.com/repos/clappr/clappr/issues/708/events","html_url":"https://github.com/clappr/clappr/issues/708","id":120171490,"number":708,"title":"Add public interface to control fullscreen state","user":{"login":"towerz","id":989801,"avatar_url":"https://avatars.githubusercontent.com/u/989801?v=3","gravatar_id":"","url":"https://api.github.com/users/towerz","html_url":"https://github.com/towerz","followers_url":"https://api.github.com/users/towerz/followers","following_url":"https://api.github.com/users/towerz/following{/other_user}","gists_url":"https://api.github.com/users/towerz/gists{/gist_id}","starred_url":"https://api.github.com/users/towerz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/towerz/subscriptions","organizations_url":"https://api.github.com/users/towerz/orgs","repos_url":"https://api.github.com/users/towerz/repos","events_url":"https://api.github.com/users/towerz/events{/privacy}","received_events_url":"https://api.github.com/users/towerz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clappr/clappr/labels/feature","name":"feature","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-03T13:29:54Z","updated_at":"2015-12-03T16:24:48Z","closed_at":null,"body":"One of the most common requests we receive is to provide a way to enter fullscreen externally, either with a `setFullscreen/toggleFullscreen` call or entering fullscreen when the user starts a video (#527, #659, #706 - apparently).\r\n\r\nI think we could add methods to the public API of the `Player` object, as well as an embed parameter to control whether the player should enter fullscreen when starting playback (after the user clicks the poster, or play button, for example)."},"comment":{"url":"https://api.github.com/repos/clappr/clappr/issues/comments/161703692","html_url":"https://github.com/clappr/clappr/issues/708#issuecomment-161703692","issue_url":"https://api.github.com/repos/clappr/clappr/issues/708","id":161703692,"user":{"login":"thiagopnts","id":322239,"avatar_url":"https://avatars.githubusercontent.com/u/322239?v=3","gravatar_id":"","url":"https://api.github.com/users/thiagopnts","html_url":"https://github.com/thiagopnts","followers_url":"https://api.github.com/users/thiagopnts/followers","following_url":"https://api.github.com/users/thiagopnts/following{/other_user}","gists_url":"https://api.github.com/users/thiagopnts/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagopnts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagopnts/subscriptions","organizations_url":"https://api.github.com/users/thiagopnts/orgs","repos_url":"https://api.github.com/users/thiagopnts/repos","events_url":"https://api.github.com/users/thiagopnts/events{/privacy}","received_events_url":"https://api.github.com/users/thiagopnts/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T16:24:48Z","updated_at":"2015-12-03T16:24:48Z","body":"IIRC, to enter in fullscreen we first need a user interaction, I think we should keep that in mind when designing this API. It would also be worth to take a look at the browser's fullscreen API again, I remember it was a pain so things might be evolved somehow now"}}