{"action":"created","issue":{"url":"https://api.github.com/repos/videojs/video.js/issues/2635","labels_url":"https://api.github.com/repos/videojs/video.js/issues/2635/labels{/name}","comments_url":"https://api.github.com/repos/videojs/video.js/issues/2635/comments","events_url":"https://api.github.com/repos/videojs/video.js/issues/2635/events","html_url":"https://github.com/videojs/video.js/issues/2635","id":108198489,"number":2635,"title":"What's the best approach to controlling multiple videos with one set of controls?","user":{"login":"jimkang","id":324298,"avatar_url":"https://avatars.githubusercontent.com/u/324298?v=3","gravatar_id":"","url":"https://api.github.com/users/jimkang","html_url":"https://github.com/jimkang","followers_url":"https://api.github.com/users/jimkang/followers","following_url":"https://api.github.com/users/jimkang/following{/other_user}","gists_url":"https://api.github.com/users/jimkang/gists{/gist_id}","starred_url":"https://api.github.com/users/jimkang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimkang/subscriptions","organizations_url":"https://api.github.com/users/jimkang/orgs","repos_url":"https://api.github.com/users/jimkang/repos","events_url":"https://api.github.com/users/jimkang/events{/privacy}","received_events_url":"https://api.github.com/users/jimkang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-24T19:33:46Z","updated_at":"2015-10-19T15:38:54Z","closed_at":"2015-10-19T15:38:54Z","body":"I need to play a set of two videos that are synced to each other, and I need the progress control, the play button, and all of the other controls to apply to both videos. e.g. The big play button starts both videos, and the progress control scrubber set `currentTime` on both videos so that they're always in sync.\r\n\r\nWould a good way to start is to create a set of controls that accept two players and sends its events to both? Or to have an alternate Player class (and Component) that works with two <video> elements instead of one?\r\n\r\nI'm starting to tinker but it would be great if someone could provide insight about the probably least painful way to go."},"comment":{"url":"https://api.github.com/repos/videojs/video.js/issues/comments/149252338","html_url":"https://github.com/videojs/video.js/issues/2635#issuecomment-149252338","issue_url":"https://api.github.com/repos/videojs/video.js/issues/2635","id":149252338,"user":{"login":"gkatsev","id":535884,"avatar_url":"https://avatars.githubusercontent.com/u/535884?v=3","gravatar_id":"","url":"https://api.github.com/users/gkatsev","html_url":"https://github.com/gkatsev","followers_url":"https://api.github.com/users/gkatsev/followers","following_url":"https://api.github.com/users/gkatsev/following{/other_user}","gists_url":"https://api.github.com/users/gkatsev/gists{/gist_id}","starred_url":"https://api.github.com/users/gkatsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gkatsev/subscriptions","organizations_url":"https://api.github.com/users/gkatsev/orgs","repos_url":"https://api.github.com/users/gkatsev/repos","events_url":"https://api.github.com/users/gkatsev/events{/privacy}","received_events_url":"https://api.github.com/users/gkatsev/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T15:38:54Z","updated_at":"2015-10-19T15:38:54Z","body":"The control bar object takes in a \"Player\" object, you could create a controls with a proxy object that delegates to each of the videos you care about for the functions you care about (like play, pause, etc).\r\nGoing to close this as it's unlikely to require a change in videojs, but feel free to continue discussion here. Also, for more concrete help, you might want to try asking on Stack Overflow."}}