-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add multiview demo #124
Add multiview demo #124
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, is there some preview I can try out?
if (newPrimaryPlayer == null) { | ||
primarySource = null; | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you already checked for null at the start of the function
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch! Actually I needed to keep this one and remove the one at the start, otherwise we'll run into an exception when the last source gets disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noice
This PR adds a demo for Multiview playback, using multiple players that can be toggled dynamically.
It uses multiple players and UI instances, with the UI control bars getting moved, resized, and selectively hidden to make it seem like there is one common control bar.
Drag-and-drop can be used to rearrange currently active sources.
There is always one "primary" player - it is the one that is controlled through the timeline, and playing audio. All other players are muted. Switching the primary player is done by clicking on another player. It will then take over the audio volume settings from the previous primary player.