Skip to content
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

Merged
merged 22 commits into from
Mar 7, 2025
Merged

Add multiview demo #124

merged 22 commits into from
Mar 7, 2025

Conversation

felix-hoc
Copy link
Contributor

@felix-hoc felix-hoc commented Mar 5, 2025

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.

@felix-hoc felix-hoc marked this pull request as ready for review March 7, 2025 07:48
Copy link
Contributor

@bitmovin-kenny bitmovin-kenny left a 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?

Comment on lines +199 to +202
if (newPrimaryPlayer == null) {
primarySource = null;
return;
}
Copy link
Contributor

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

Copy link
Contributor Author

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.

067e269

@felix-hoc felix-hoc requested a review from bitmovin-kenny March 7, 2025 08:35
Copy link
Contributor

@bitmovin-kenny bitmovin-kenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noice

@felix-hoc felix-hoc merged commit 3776d20 into develop Mar 7, 2025
1 check passed
@felix-hoc felix-hoc deleted the feature/add-multiview-demo branch March 7, 2025 09:13
@felix-hoc felix-hoc mentioned this pull request Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants