Skip to content

PIP doesn't work on iOS or Android #169

@nick-mccomb-easygo

Description

@nick-mccomb-easygo

Describe the bug
PIP doesn't work for me on iOS or Android - it does nothing at all on both.

To reproduce

  const ref = useRef<IVSPlayerRef>(null);
  
   <IVSPlayer
      autoplay
      ref={ref}
      streamUrl={uri} // m3u8 stream
      style={style.video} // width:"100%", height: 300
   />

   // then add a button that calls this
   ref.current?.togglePip();

I have updated AndroidManifest with:

android:resizeableActivity="true"
android:supportsPictureInPicture="true"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|smallestScreenSize|orientation"

and checked this in XCode:
Screenshot 2024-01-11 at 4 02 18 pm

Expected behavior
Video should go into picture-in-picture mode, but instead nothing happens. Should it just work?

**Device:

  • Real Device:
  • Device: iPhone 15 Pro Max & OnePlus 7T Pro
  • OS: iOS & Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions