{"action":"created","issue":{"url":"https://api.github.com/repos/brightcove/videojs-dock/issues/19","repository_url":"https://api.github.com/repos/brightcove/videojs-dock","labels_url":"https://api.github.com/repos/brightcove/videojs-dock/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/brightcove/videojs-dock/issues/19/comments","events_url":"https://api.github.com/repos/brightcove/videojs-dock/issues/19/events","html_url":"https://github.com/brightcove/videojs-dock/issues/19","id":334115269,"node_id":"MDU6SXNzdWUzMzQxMTUyNjk=","number":19,"title":"Integrating the videojs-dock plugin with the videojs-playlist plugin.","user":{"login":"zaynzafar","id":16168404,"node_id":"MDQ6VXNlcjE2MTY4NDA0","avatar_url":"https://avatars2.githubusercontent.com/u/16168404?v=4","gravatar_id":"","url":"https://api.github.com/users/zaynzafar","html_url":"https://github.com/zaynzafar","followers_url":"https://api.github.com/users/zaynzafar/followers","following_url":"https://api.github.com/users/zaynzafar/following{/other_user}","gists_url":"https://api.github.com/users/zaynzafar/gists{/gist_id}","starred_url":"https://api.github.com/users/zaynzafar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaynzafar/subscriptions","organizations_url":"https://api.github.com/users/zaynzafar/orgs","repos_url":"https://api.github.com/users/zaynzafar/repos","events_url":"https://api.github.com/users/zaynzafar/events{/privacy}","received_events_url":"https://api.github.com/users/zaynzafar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T14:49:33Z","updated_at":"2018-06-20T15:16:40Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI am wondering how I can integrate this dock plugin with the playlist plugin. I have set the name and description of the videos in the playlist array but how can I get it to appear on the dock when you switch videos or go to the next / prev item in the playlist?\r\n\r\nBrightcove have done it on their player here:\r\n[https://support.brightcove.com/playlist-ui-plugin](https://support.brightcove.com/playlist-ui-plugin)\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/brightcove/videojs-dock/issues/comments/398788945","html_url":"https://github.com/brightcove/videojs-dock/issues/19#issuecomment-398788945","issue_url":"https://api.github.com/repos/brightcove/videojs-dock/issues/19","id":398788945,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODc4ODk0NQ==","user":{"login":"BrandonOCasey","id":2381475,"node_id":"MDQ6VXNlcjIzODE0NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/2381475?v=4","gravatar_id":"","url":"https://api.github.com/users/BrandonOCasey","html_url":"https://github.com/BrandonOCasey","followers_url":"https://api.github.com/users/BrandonOCasey/followers","following_url":"https://api.github.com/users/BrandonOCasey/following{/other_user}","gists_url":"https://api.github.com/users/BrandonOCasey/gists{/gist_id}","starred_url":"https://api.github.com/users/BrandonOCasey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrandonOCasey/subscriptions","organizations_url":"https://api.github.com/users/BrandonOCasey/orgs","repos_url":"https://api.github.com/users/BrandonOCasey/repos","events_url":"https://api.github.com/users/BrandonOCasey/events{/privacy}","received_events_url":"https://api.github.com/users/BrandonOCasey/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T15:16:40Z","updated_at":"2018-06-20T15:16:40Z","author_association":"CONTRIBUTOR","body":"OK so the playlist plugin should fire an event called `playlistitem` when the playlist item changes. Using that you should be able to update the dock. I have not tested this code, but I think this should work:\r\n\r\n```js\r\nplayer.on('playlistitem', function(event, video) {\r\n  player.dock().title.update(video.title, video.description);\t\r\n});\r\n```"}}
{"actor":{"display_login":"BrandonOCasey"}}