Module providing multimedia playback widgets, including media player controls for use in Lens Studio editor UI.
Example
// MultimediaWidgets pairs a MediaPlayer (state machine, transport, position) // with a VideoWidget (the surface it draws to). Drop the VideoWidget into // your panel layout, point the player at a file via setMedia(), then // play/pause/stop. Watch onStateChanged to drive transport-control UI. import { PanelPlugin, Descriptor } from'LensStudio:PanelPlugin'; import { Widget, BoxLayout, Direction, PushButton, DockState, Size } from'LensStudio:Ui'; import { MediaPlayer, MediaState, VideoWidget } from'LensStudio:MultimediaWidgets';
Module providing multimedia playback widgets, including media player controls for use in Lens Studio editor UI.
Example