Multiview
What you learn​
You're instantiating DIVA Player in your Android front-end and relying on DIVA Back Office as the video streaming source.
The goal of this article is to build the simplest front-end to stream a video from the DIVA Back Office with enabled multiview.
Before starting​
- Ensure the DIVA Back Office instance you rely on is up and running.
- Ask your video engineers team the
<video id>
and the related<settings URL>
.
Instantiation​
The Basic instantiation code is sufficient to enable multiview mode.
If at least one of the videolist item inside videoMetadata has as behavior
"multiview" or "multistreamMultiview". In that case, the multiview button will appear in the bottom right corner of the player, and the user can add/remove videos from the multiview list.
In multiview mode, the user can add up to 4 videos. The videos will be displayed in a grid layout with limited functionalities (e.g., no video controls, no subtitles, no settings), only changing the audio stream will be applicable.
Behaviour​
Activation & Layout​
- The user can open Multi View mode via a dedicated button, allowing them to select up to four videos for simultaneous viewing.
- The original video's audio remains audible by default when Side-by-Side View is launched. Additional videos start muted.
- The user can close videos individually, with the view dynamically adjusting or exiting Multi View if only one video remains.
- The entry video cannot be closed while in Multi View.
- The entry video propagates its audio, closed captions, and HDR settings, enabling the user to configure these before opening Multi View.