Skip to content

[Bug]: autoplay=true on iOS results in blacked-out screen in full-screen mode on physical iPhone #16

@nel-sam

Description

@nel-sam

Version

1.0.1

Environment that reproduces the issue

Device: iPhone 12 Pro Max
OS: iOS 16.3.1

NOTE: The bug is does not reproduce on Simulator. You must use a physical iPhone device to reproduce it. Our Android implementation works fine, so I know it is setup correctly.

Is it reproducible in the example application?

It reproduces on a freshly created project with nothing added other than the ApiVideoPlayer component

Reproduction steps

Setup ApiVideoPlayer within React Native View as shown below


<ApiVideoPlayer
  ref={r => (ref = r)}
  videoId={ad.videoId}
  autoplay={true} // This causes the bug
/>

When that page loads, the video thumbnail/preview is visible.
A fullscreen video player loads but is all black (no video is actually playing in fullscreen viewer).
Audio is audible in the background.
When you close the fullscreen video viewer the audio stops playing and the video thumbnail is still visible.
This started happening recently, possible as of iOS 15, but definitely as of iOS 16. When I originally implemented the page the player worked as expected.

You must use a physical iPhone device to reproduce it.

Expected result

Video should either not full screen at all and remain in specific View/container, or if it must fullscreen it should at least properly display the video.

Actual result

A fullscreen video player appears but no video is displayed.

Additional context

No response

Relevant logs output

originator doesn't have entitlement com.apple.runningboard.assertions.webkit AND originator doesn't have entitlement com.apple.multitasking.systemappassertions

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