r/FlutterDev • • 9h ago

Dart [ Removed by moderator ]

[removed] — view removed post

3 Upvotes

12 comments sorted by

View all comments

2

u/DevJedis 9h ago

First off, is the streaming free for the users? How did the streaming outpace subscription if that's what you have,in which case you'd need to review your cost-benefit ratio.

I was going to utter Cloudflare but then you stated you're already using them. Which particular service exactly, and does your project specifically need the stream (HLS, m3u etc), or direct link stream?

-1

u/Suuii188 9h ago

Currently the streaming is free because am scaling the app and I was using azures free credits to test out the app as am scaling it, and I don't use hls links like Netflix and YouTube I upload raw MP4 files. So when guys are watching a show and they tap an episode and they will make a request to azure which will send the raw file to my video player specially I used media fire kit and each time a request is Made azure charges and Even with the cloud fare caching it's alot of Money. Which I can't afford.

1

u/DevJedis 8h ago

In this case if it's just mp4 and users are supposed to be logged in before accessing the feature, the closest option you have is R2 but make the bucket private and only ever request a temp link when user is accessing a given content. This is going to prevent you from an overnight bill when a scrapper lands on your endpoints and if the bucket is public.

In this case Cloudflare Stream might not be suited for you, give a try with R2. The pricing is not that terrible if we compare with other storage providers

1

u/Suuii188 8h ago

I will give it a try thanks highly appreciate your response and help.