Skip to content

Android 16: enterPiP() does not work fully #146

@Endrju00

Description

@Endrju00

Description

I want my meeting to start automatically in Picture-in-Picture (PiP) mode, so I call enterPiP() inside the conferenceJoined event.

This works correctly on:

  • iOS devices
  • Android < 16 devices

On Android 16, entering PiP doesn't work.

Steps to Reproduce

  1. Clone the repository and run the example app.
  2. Add the following code in the conferenceJoined event:
var listener = JitsiMeetEventListener(
  conferenceJoined: (url) async {
    debugPrint("conferenceJoined: url: $url");
    final response = await _jitsiMeetPlugin.enterPiP();
    debugPrint("enterPiP: $response");
  },
  // ...
);

await _jitsiMeetPlugin.join(options, listener);
  1. Run the app on an Android 16 device.

Expected Behavior

  • The meeting should start in PiP mode automatically when enterPiP() is called when a conference was joined on all devices.

Actual Behavior

  • On Android 16, PiP is not entered when enterPiP() is called when a conference was joined.

Additional info

  • I noticed if you first enter PiP manually and then return to fullscreen, calling enterPiP() works on Android 16.
  • This can be reproduced by adding a delay in the conferenceJoined event handler, clicking the top-left button in the meeting view to enter PiP mode, and then returning to fullscreen. When the delay finishes, enterPiP() is called and it works.
  • If the delay is added but the user does not enter PiP manually and go back to fullscreen, it still does not work on Android 16.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions