Live HLS Stream Not Playing After Window Resize in Vision Pro

Hi everyone,

I'm developing a visionOS app for Apple Vision Pro, and I've encountered an issue related to window resizing at runtime when using AVPlayer to play a live HLS stream.

✅ What I'm Trying to Do Play a live HLS stream (from Wowza) inside my app using AVPlayer.

Support resizing the immersive window using Vision Pro’s built-in runtime scaling gesture.

Stream works fine at default window size when the app launches.

❌ Problem If I resize the app’s window at runtime (using the Vision Pro pinch-drag gesture), then try to start the stream, it does not play.

Instead, it just shows the "Loading live stream..." state and never proceeds to playback.

This issue only occurs after resizing the window — if I don’t resize, the stream works perfectly every time.

🧪 What I’ve Tried Verified the HLS URL — it’s working and plays fine in Safari and in the app before resizing.

Set .automaticallyWaitsToMinimizeStalling = false on AVPlayer.

Observed that .status on AVPlayerItem never reaches .readyToPlay after resizing.

Tried to force window size back using UIWindowScene.requestGeometryUpdate(...), but behavior persists.

Hello @SidAura:

It should definitely be possible to resize your window during HLS playback on visionOS. In fact, two recently published sample projects demonstrate this:

  1. Playing immersive media with AVKit
  2. Playing immersive media with RealityKit

I'd be especially interested to learn more about how your app is constructed. For example, do you have an AVPlayerViewController supporting your AVPlayer?

You might consider filing Feedback to report this, along with a representative sample project. It would be especially helpful if you can share the FB ID here afterward.

Please reach out if you have questions or need additional information.

Best, Steve

Hello @Vision Pro Engineer

We are currently developing a Vision Pro application that displays a live video stream from a custom hardware module.

Hardware Setup:

Module Controller: Raspberry Pi 5 – 8GB

Camera: DFRobot IMX378-79 – 12.3MP Camera Module (4056×3040, FOV 79°)

The module runs a custom program that encodes the camera feed and transmits it to an RTMP link. This stream is then received and played within the Vision Pro app.

Streaming Configuration:

Resolution: 3840 × 2160

Framerate: 30 FPS

Codec: H.264 (x264enc, yuv420)

Bitrate: 8000 kbps

Problem:

As previously mentioned, the live stream plays correctly in the Vision Pro app as long as the video window is not resized. However, if the window is resized and then playback is initiated, the stream fails to play.

Here isFB ID: FB18717272

Live HLS Stream Not Playing After Window Resize in Vision Pro
 
 
Q