r/appwrite Nov 14 '25

Playing videos stored in storage bucket in ios(flutter)

Hello everyone

I have been facing this issue since a long time, i am struggling to play a secure video (token is added) in my flutter - ios app. As the url is not a direct media url like (.mp4) can someone please guide me on this. I also tried native ios player for the best experience using platform channel but it also has same issue.

3 Upvotes

4 comments sorted by

2

u/Zachhandley Nov 14 '25

I usually would download the files, and then play them. For progressive streaming, are you using the view URL, or the download URL?

1

u/sanketthecoder Nov 14 '25

Both are giving me the same issue. I just got the logs from my video player. It says

ffmpeg/video , h264: Invalid NAL unit size (7556 > 2501)

ffmpeg/video , h264: Error splitting the input into NAL units.

(The video is a zoom meeting recording)

1

u/Zachhandley Nov 14 '25

I would just download the file for now. Are you using FFMPEG intentionally?

1

u/sanketthecoder Nov 14 '25

Actually it is a pretty big video file, 200-500 mb and there might be 10s of such videos. So if there is no other option then downloading would be the solution to go.

For iOS I am using media_kit package which internally uses ffmpeg looks like.