Player — Native Picture-in-Picture (PiP)
The LiSA Player sends a message when the native Picture-in-Picture window is entered or left.
This message is sent by the LiSA Player to the host app / environment.
Properties
Along with all standard Message properties, a Native PiP message includes the following additional properties:
isEnabled
Required.
The isEnabled property indicates, whether the native Picture-in-Picture window is engaged.
mediaItemId
Required.
The mediaItemId property uniquely identifies the Media Item from which this message originates.
mediaItemType
Required.
The mediaItemType property specifies the type of Media Item from which this message originates.
Refer to MediaItemType for detailed information.
messageType
Required.
lsc:player:native-pip
progress
Optional.
The progress property is an object that holds additional metadata related to the media playback progress of the current media item.
Please refer to MediaProgress for detailed information.
Type Definition
interface PlayerDismissMessage extends Omit<
Message,
'messageType' | 'sender'
> {
isEnabled: boolean;
mediaItemId: string;
mediaItemType: MediaItemType;
messageType: 'lsc:player:native-pip';
progress: MediaProgress;
sender: 'LiSA';
}Examples
Last updated