supabase-flutter icon indicating copy to clipboard operation
supabase-flutter copied to clipboard

iOS Video Playback Fails with Supabase Storage URL (`CoreMediaErrorDomain -12939`)

Open azulmouad opened this issue 11 months ago • 1 comments

Bug Report

Issue Summary

I am storing a video in Supabase Storage and retrieving its public URL. The video plays correctly in a web browser, but it does not work on iOS when using video player packages in Flutter. On iOS, I receive the following error:

Unhandled Exception: PlatformException(VideoError, Failed to load video: 
Operation Stopped: The server is not correctly configured.: 
The operation couldn’t be completed. 
(CoreMediaErrorDomain error -12939 - byte range and no content length - error code is 200), null, null)

Steps to Reproduce

  1. Upload a video to Supabase Storage.
  2. Retrieve the video URL and try playing it in Flutter using the video_player package (or other video player packages).
  3. The video works in a web browser but fails to play on iOS.

Expected Behavior

The video should play correctly on iOS devices, just as it does on web browsers.

Additional Context

  • Flutter version: 3.27.1 • channel stable
  • Supabase Flutter SDK version: supabase_flutter: ^2.8.3
  • iOS Version: platform :ios, '13.0'
  • Video player package used: [e.g., video_player, better_player]

azulmouad avatar Jan 29 '25 21:01 azulmouad

Hi, I've moved this issue over from the supabase repo as it seems related to supabase-flutter.

Hallidayo avatar Mar 05 '25 20:03 Hallidayo

Any update about this issues ?

azulmouad avatar May 05 '25 15:05 azulmouad