{"action":"opened","number":15,"pull_request":{"url":"https://api.github.com/repos/adrg/libvlc-go/pulls/15","id":220725381,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNzI1Mzgx","html_url":"https://github.com/adrg/libvlc-go/pull/15","diff_url":"https://github.com/adrg/libvlc-go/pull/15.diff","patch_url":"https://github.com/adrg/libvlc-go/pull/15.patch","issue_url":"https://api.github.com/repos/adrg/libvlc-go/issues/15","number":15,"state":"open","locked":false,"title":"Add GetMediaPlayer to list player to get underlying media player.","user":{"login":"danielpellon","id":19344817,"node_id":"MDQ6VXNlcjE5MzQ0ODE3","avatar_url":"https://avatars1.githubusercontent.com/u/19344817?v=4","gravatar_id":"","url":"https://api.github.com/users/danielpellon","html_url":"https://github.com/danielpellon","followers_url":"https://api.github.com/users/danielpellon/followers","following_url":"https://api.github.com/users/danielpellon/following{/other_user}","gists_url":"https://api.github.com/users/danielpellon/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpellon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpellon/subscriptions","organizations_url":"https://api.github.com/users/danielpellon/orgs","repos_url":"https://api.github.com/users/danielpellon/repos","events_url":"https://api.github.com/users/danielpellon/events{/privacy}","received_events_url":"https://api.github.com/users/danielpellon/received_events","type":"User","site_admin":false},"body":"\r\nFixes #14 \r\n\r\nNot sure if I missed anything, but with these changes I can now retrieve the underlying player from a list player and set it to fullscreen.\r\n\r\n\r\n```\r\npackage main\r\n\r\nimport (\r\n\t\"log\"\r\n\t\"time\"\r\n\r\n\tvlc \"github.com/adrg/libvlc-go\"\r\n)\r\n\r\nfunc main() {\r\n\t// Initialize libvlc. Additional command line arguments can be passed in\r\n\t// to libvlc by specifying them in the Init function.\r\n\tif err := vlc.Init(); err != nil {\r\n\t\tlog.Fatal(err)\r\n\t}\r\n\tdefer vlc.Release()\r\n\t// Create a new list player\r\n\tplayer, err := vlc.NewListPlayer()\r\n\tif err != nil {\r\n\t\tlog.Fatal(err)\r\n\t}\r\n\tdefer func() {\r\n\t\tplayer.Stop()\r\n\t\tplayer.Release()\r\n\t}()\r\n\r\n\t// Create a new media list\r\n\tlist, err := vlc.NewMediaList()\r\n\tif err != nil {\r\n\t\tlog.Fatal(err)\r\n\t}\r\n\tdefer list.Release()\r\n\r\n\terr = list.AddMediaFromPath(\"video2.mp4\")\r\n\tif err != nil {\r\n\t\tlog.Fatal(err)\r\n\t}\r\n\r\n\terr = list.AddMediaFromPath(\"video1.mp4\")\r\n\tif err != nil {\r\n\t\tlog.Fatal(err)\r\n\t}\r\n\r\n\t// Set player media list\r\n\terr = player.SetMediaList(list)\r\n\tif err != nil {\r\n\t\tlog.Fatal(err)\r\n\t}\r\n\r\n\t// Play\r\n\terr = player.Play()\r\n\tif err != nil {\r\n\t\tlog.Fatal(err)\r\n\t}\r\n\r\n\tunderlyingPlayer, err := player.GetMediaPlayer()\r\n\tif err != nil {\r\n\t\tlog.Fatal(err)\r\n\t}\r\n\r\n\tunderlyingPlayer.SetFullScreen(true)\r\n\r\n\ttime.Sleep(60 * 1000 * time.Millisecond)\r\n}\r\n```","created_at":"2018-10-05T14:42:08Z","updated_at":"2018-10-05T14:42:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/adrg/libvlc-go/pulls/15/commits","review_comments_url":"https://api.github.com/repos/adrg/libvlc-go/pulls/15/comments","review_comment_url":"https://api.github.com/repos/adrg/libvlc-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adrg/libvlc-go/issues/15/comments","statuses_url":"https://api.github.com/repos/adrg/libvlc-go/statuses/43531eb3fc7e57943ec4c332f1e8328fd4f44216","head":{"label":"danielpellon:underlying-media-player","ref":"underlying-media-player","sha":"43531eb3fc7e57943ec4c332f1e8328fd4f44216","user":{"login":"danielpellon","id":19344817,"node_id":"MDQ6VXNlcjE5MzQ0ODE3","avatar_url":"https://avatars1.githubusercontent.com/u/19344817?v=4","gravatar_id":"","url":"https://api.github.com/users/danielpellon","html_url":"https://github.com/danielpellon","followers_url":"https://api.github.com/users/danielpellon/followers","following_url":"https://api.github.com/users/danielpellon/following{/other_user}","gists_url":"https://api.github.com/users/danielpellon/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpellon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpellon/subscriptions","organizations_url":"https://api.github.com/users/danielpellon/orgs","repos_url":"https://api.github.com/users/danielpellon/repos","events_url":"https://api.github.com/users/danielpellon/events{/privacy}","received_events_url":"https://api.github.com/users/danielpellon/received_events","type":"User","site_admin":false},"repo":{"id":151732162,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE3MzIxNjI=","name":"libvlc-go","full_name":"danielpellon/libvlc-go","private":false,"owner":{"login":"danielpellon","id":19344817,"node_id":"MDQ6VXNlcjE5MzQ0ODE3","avatar_url":"https://avatars1.githubusercontent.com/u/19344817?v=4","gravatar_id":"","url":"https://api.github.com/users/danielpellon","html_url":"https://github.com/danielpellon","followers_url":"https://api.github.com/users/danielpellon/followers","following_url":"https://api.github.com/users/danielpellon/following{/other_user}","gists_url":"https://api.github.com/users/danielpellon/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpellon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpellon/subscriptions","organizations_url":"https://api.github.com/users/danielpellon/orgs","repos_url":"https://api.github.com/users/danielpellon/repos","events_url":"https://api.github.com/users/danielpellon/events{/privacy}","received_events_url":"https://api.github.com/users/danielpellon/received_events","type":"User","site_admin":false},"html_url":"https://github.com/danielpellon/libvlc-go","description":"Go bindings for libvlc 2.X/3.X/4.X used by the VLC media player","fork":true,"url":"https://api.github.com/repos/danielpellon/libvlc-go","forks_url":"https://api.github.com/repos/danielpellon/libvlc-go/forks","keys_url":"https://api.github.com/repos/danielpellon/libvlc-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danielpellon/libvlc-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danielpellon/libvlc-go/teams","hooks_url":"https://api.github.com/repos/danielpellon/libvlc-go/hooks","issue_events_url":"https://api.github.com/repos/danielpellon/libvlc-go/issues/events{/number}","events_url":"https://api.github.com/repos/danielpellon/libvlc-go/events","assignees_url":"https://api.github.com/repos/danielpellon/libvlc-go/assignees{/user}","branches_url":"https://api.github.com/repos/danielpellon/libvlc-go/branches{/branch}","tags_url":"https://api.github.com/repos/danielpellon/libvlc-go/tags","blobs_url":"https://api.github.com/repos/danielpellon/libvlc-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danielpellon/libvlc-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danielpellon/libvlc-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/danielpellon/libvlc-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danielpellon/libvlc-go/statuses/{sha}","languages_url":"https://api.github.com/repos/danielpellon/libvlc-go/languages","stargazers_url":"https://api.github.com/repos/danielpellon/libvlc-go/stargazers","contributors_url":"https://api.github.com/repos/danielpellon/libvlc-go/contributors","subscribers_url":"https://api.github.com/repos/danielpellon/libvlc-go/subscribers","subscription_url":"https://api.github.com/repos/danielpellon/libvlc-go/subscription","commits_url":"https://api.github.com/repos/danielpellon/libvlc-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/danielpellon/libvlc-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/danielpellon/libvlc-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/danielpellon/libvlc-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/danielpellon/libvlc-go/contents/{+path}","compare_url":"https://api.github.com/repos/danielpellon/libvlc-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danielpellon/libvlc-go/merges","archive_url":"https://api.github.com/repos/danielpellon/libvlc-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danielpellon/libvlc-go/downloads","issues_url":"https://api.github.com/repos/danielpellon/libvlc-go/issues{/number}","pulls_url":"https://api.github.com/repos/danielpellon/libvlc-go/pulls{/number}","milestones_url":"https://api.github.com/repos/danielpellon/libvlc-go/milestones{/number}","notifications_url":"https://api.github.com/repos/danielpellon/libvlc-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danielpellon/libvlc-go/labels{/name}","releases_url":"https://api.github.com/repos/danielpellon/libvlc-go/releases{/id}","deployments_url":"https://api.github.com/repos/danielpellon/libvlc-go/deployments","created_at":"2018-10-05T14:22:25Z","updated_at":"2018-10-05T14:22:27Z","pushed_at":"2018-10-05T14:36:35Z","git_url":"git://github.com/danielpellon/libvlc-go.git","ssh_url":"git@github.com:danielpellon/libvlc-go.git","clone_url":"https://github.com/danielpellon/libvlc-go.git","svn_url":"https://github.com/danielpellon/libvlc-go","homepage":"http://godoc.org/github.com/adrg/libvlc-go","size":7076,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"adrg:master","ref":"master","sha":"77492f42eb3605bbe8a5661c4c978ee80ecb9a19","user":{"login":"adrg","id":6454770,"node_id":"MDQ6VXNlcjY0NTQ3NzA=","avatar_url":"https://avatars1.githubusercontent.com/u/6454770?v=4","gravatar_id":"","url":"https://api.github.com/users/adrg","html_url":"https://github.com/adrg","followers_url":"https://api.github.com/users/adrg/followers","following_url":"https://api.github.com/users/adrg/following{/other_user}","gists_url":"https://api.github.com/users/adrg/gists{/gist_id}","starred_url":"https://api.github.com/users/adrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrg/subscriptions","organizations_url":"https://api.github.com/users/adrg/orgs","repos_url":"https://api.github.com/users/adrg/repos","events_url":"https://api.github.com/users/adrg/events{/privacy}","received_events_url":"https://api.github.com/users/adrg/received_events","type":"User","site_admin":false},"repo":{"id":28865956,"node_id":"MDEwOlJlcG9zaXRvcnkyODg2NTk1Ng==","name":"libvlc-go","full_name":"adrg/libvlc-go","private":false,"owner":{"login":"adrg","id":6454770,"node_id":"MDQ6VXNlcjY0NTQ3NzA=","avatar_url":"https://avatars1.githubusercontent.com/u/6454770?v=4","gravatar_id":"","url":"https://api.github.com/users/adrg","html_url":"https://github.com/adrg","followers_url":"https://api.github.com/users/adrg/followers","following_url":"https://api.github.com/users/adrg/following{/other_user}","gists_url":"https://api.github.com/users/adrg/gists{/gist_id}","starred_url":"https://api.github.com/users/adrg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrg/subscriptions","organizations_url":"https://api.github.com/users/adrg/orgs","repos_url":"https://api.github.com/users/adrg/repos","events_url":"https://api.github.com/users/adrg/events{/privacy}","received_events_url":"https://api.github.com/users/adrg/received_events","type":"User","site_admin":false},"html_url":"https://github.com/adrg/libvlc-go","description":"Go bindings for libvlc 2.X/3.X/4.X used by the VLC media player","fork":false,"url":"https://api.github.com/repos/adrg/libvlc-go","forks_url":"https://api.github.com/repos/adrg/libvlc-go/forks","keys_url":"https://api.github.com/repos/adrg/libvlc-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adrg/libvlc-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adrg/libvlc-go/teams","hooks_url":"https://api.github.com/repos/adrg/libvlc-go/hooks","issue_events_url":"https://api.github.com/repos/adrg/libvlc-go/issues/events{/number}","events_url":"https://api.github.com/repos/adrg/libvlc-go/events","assignees_url":"https://api.github.com/repos/adrg/libvlc-go/assignees{/user}","branches_url":"https://api.github.com/repos/adrg/libvlc-go/branches{/branch}","tags_url":"https://api.github.com/repos/adrg/libvlc-go/tags","blobs_url":"https://api.github.com/repos/adrg/libvlc-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adrg/libvlc-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adrg/libvlc-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/adrg/libvlc-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adrg/libvlc-go/statuses/{sha}","languages_url":"https://api.github.com/repos/adrg/libvlc-go/languages","stargazers_url":"https://api.github.com/repos/adrg/libvlc-go/stargazers","contributors_url":"https://api.github.com/repos/adrg/libvlc-go/contributors","subscribers_url":"https://api.github.com/repos/adrg/libvlc-go/subscribers","subscription_url":"https://api.github.com/repos/adrg/libvlc-go/subscription","commits_url":"https://api.github.com/repos/adrg/libvlc-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/adrg/libvlc-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/adrg/libvlc-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/adrg/libvlc-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/adrg/libvlc-go/contents/{+path}","compare_url":"https://api.github.com/repos/adrg/libvlc-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adrg/libvlc-go/merges","archive_url":"https://api.github.com/repos/adrg/libvlc-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adrg/libvlc-go/downloads","issues_url":"https://api.github.com/repos/adrg/libvlc-go/issues{/number}","pulls_url":"https://api.github.com/repos/adrg/libvlc-go/pulls{/number}","milestones_url":"https://api.github.com/repos/adrg/libvlc-go/milestones{/number}","notifications_url":"https://api.github.com/repos/adrg/libvlc-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adrg/libvlc-go/labels{/name}","releases_url":"https://api.github.com/repos/adrg/libvlc-go/releases{/id}","deployments_url":"https://api.github.com/repos/adrg/libvlc-go/deployments","created_at":"2015-01-06T14:01:50Z","updated_at":"2018-10-05T12:02:11Z","pushed_at":"2018-10-05T12:02:20Z","git_url":"git://github.com/adrg/libvlc-go.git","ssh_url":"git@github.com:adrg/libvlc-go.git","clone_url":"https://github.com/adrg/libvlc-go.git","svn_url":"https://github.com/adrg/libvlc-go","homepage":"http://godoc.org/github.com/adrg/libvlc-go","size":7076,"stargazers_count":28,"watchers_count":28,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":5,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":12,"open_issues":5,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adrg/libvlc-go/pulls/15"},"html":{"href":"https://github.com/adrg/libvlc-go/pull/15"},"issue":{"href":"https://api.github.com/repos/adrg/libvlc-go/issues/15"},"comments":{"href":"https://api.github.com/repos/adrg/libvlc-go/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/adrg/libvlc-go/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/adrg/libvlc-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adrg/libvlc-go/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/adrg/libvlc-go/statuses/43531eb3fc7e57943ec4c332f1e8328fd4f44216"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":13,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"danielpellon"}}