Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PIP doesn't work on iOS or Android #169

Open
nick-mccomb-easygo opened this issue Jan 11, 2024 · 2 comments
Open

PIP doesn't work on iOS or Android #169

nick-mccomb-easygo opened this issue Jan 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@nick-mccomb-easygo
Copy link

nick-mccomb-easygo commented Jan 11, 2024

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
@nick-mccomb-easygo nick-mccomb-easygo added the bug Something isn't working label Jan 11, 2024
@nick-mccomb-easygo
Copy link
Author

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

@nick-mccomb-easygo nick-mccomb-easygo changed the title PIP doesn't work for me on iOS or Android PIP doesn't work on iOS or Android Jan 15, 2024
@ColtraneNadler
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants