aws / amazon-ivs-react-native-player

A React Native wrapper for the Amazon IVS iOS and Android player SDKs.
Apache License 2.0
299 stars 31 forks source link

PIP doesn't work on iOS or Android #169

Open nick-mccomb-easygo opened 10 months ago

nick-mccomb-easygo commented 10 months ago

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:

nick-mccomb-easygo commented 10 months ago

Note: react-native-video PIP works on the same project

ColtraneNadler commented 9 months ago

I am experiencing the same issue. Is there any update on this?