Picture in Picture
Last updated
Last updated
The LiSA Player is a web-based video streaming application designed to be seamlessly embedded in native apps via a WebView. To ensure a smooth user experience, we provide a set of UI transition messages that allow the host app to manage fullscreen and floating modes effectively.
The player’s transition between fullscreen and floating mode is managed via , allowing the host app to control and stay in sync with the player’s state.
The initial request to enter float mode can be triggered by several messages, including:
requestFloatingMode
The player is about to switch to floating mode, and the UI adapts accordingly.
floating
The player has fully entered floating mode with adjusted controls.
requestFullscreenMode
The player is about to return to fullscreen mode, and the UI begins transitioning back.
fullscreen
The player is now in fullscreen mode with standard controls.
These messages ensure that the host app and LiSA Player can respond to player state changes, providing a seamless and optimized integration.
Host App receives the message.
Host App opens the Product Detail Page based on the productReference
.
Host App transitions the WebView component into floating state.
Host App transitions the WebView component into floating state.
Utilizing native Picture-in-Picture (PiP) is no longer recommended due to various limitations. Instead, we offer a WebView-based floating mode to ensure better compatibility and control across platforms.
Limited to a Single Video
Our player supports co-streaming, allowing multiple simultaneous video feeds.
Native PiP is restricted to one active video at a time.
Inconsistent Platform Support
Native PiP is not available on all platforms, leading to inconsistencies.
Some mobile OS versions and devices may lack PiP support altogether.
Better UI Control with WebView-Based Floating Mode
Our floating mode keeps the UI consistent across all devices and platforms.
Advanced theming options allow for an even more seamless integration into our customers apps and storefronts.
Native PiP may interfere with in-app navigation, whereas WebView-based floating mode ensures a seamless experience.
By relying on WebView-based floating mode, the host app maintains full control over the player's UI and transitions, ensuring a consistent and predictable experience.
LiSA Player sends the message to the Host App:
Host App sends the Message to the Player to request floating mode:
Host App sends the Message to the Player to confirm to the Player that floating mode is entered:
LiSA Player sends the message to the Host App to request fullscreen transition:
Host App sends the Message to the Player to confirm to the Player that fullscreen mode is entered: