Repository navigation
0.4.0
Pre-release
Pre-release
Added
- Support for Picture-in-Picture (PiP) playback on iOS
PictureInPictureEnterwhich is emitted when the player view is about to enter Picture-in-Picture modePictureInPictureExitwhich is emitted when the player view is about to exit Picture-in-Picture modePictureInPictureEnteredwhich is emitted when the player view finishes entering Picture-in-Picture modePictureInPictureExitedwhich is emitted when the player view finishes exiting Picture-in-Picture modePictureInPictureexample page to test PiP and show how it can be integrated and usedPlayerViewState.pictureInPicturenamespace to access Picture-in-Picture methodsPlayerViewState.pictureInPicture.isPictureInPictureto check whether thePlayerViewis currently in Picture-in-Picture modePlayerViewState.pictureInPicture.isPictureInPictureAvailableto check whether Picture-in-Picture mode is availablePlayerViewState.pictureInPicture.enterPictureInPictureto make thePlayerViewenter Picture-In-Picture modePlayerViewState.pictureInPicture.exitPictureInPictureto make thePlayerViewexit Picture-In-Picture modePlayerViewConfigto configure a newPlayerViewinstance. Currently its only field ispictureInPictureConfigPictureInPictureConfigto configure Picture-in-Picture playbackPictureInPictureConfig.isEnabledto set whether Picture-in-Picture feature is enabled or notPictureInPictureConfig.shouldEnterOnBackgroundto set whether Picture-in-Picture should start automatically when the app transitions to background
Changed
PlayerViewhas a new argumentplayerViewConfigwith a predefined default value