Step8. PIP (Picture In Picture)

    Step8. PIP (Picture In Picture)


    Article summary

    When watching a live broadcast, users can switch to Picture-in-Picture (PIP) mode to continue viewing while performing other tasks.

    In-App PIP

    On the Shoplive Player screen, users can switch the currently playing live broadcast to a small in-app window by either:

    • Tapping the PIP icon, or

    • Using a swipe-down gesture

    Unlike the preview mode, audio playback continues when switching to in-app PIP mode.

    Enter PIP Mode

    Call void startPictureInPicture() to switch from fullscreen mode to PIP mode.

    late final _shopLivePlayerPlugin = ShopLivePlayer();
    _shopLivePlayerPlugin.startPictureInPicture();


    Return to Fullscreen Mode

    Call void stopPictureInPicture() to switch from PIP mode back to fullscreen mode.

    late final _shopLivePlayerPlugin = ShopLivePlayer();
    _shopLivePlayerPlugin.stopPictureInPicture();