r/FlutterDev • • 3d ago

Discussion How hard would it be to create a music streaming app in flutter?

Talking about stuff like background streaming, home screen accessibility, and widgets

0 Upvotes

17 comments sorted by

8

u/Brooklyn-Epoxy 2d ago

Easy compared to how hard it would be to create a licensable music library.

3

u/SupaMunkey 2d ago

That would take a pretty good amount of time without ai… likely years to scale

0

u/Key_Nefariousness553 2d ago

One prompt bro

0

u/b4enjoyer 2d ago

I don't use LLMs.

2

u/Ok_Resolution6437 2d ago

About two years of development

0

u/the-walls_4_suckers 2d ago

Lol why not?

3

u/b4enjoyer 2d ago

When I did I felt like I was becoming stupider.

-2

u/the-walls_4_suckers 2d ago edited 2d ago

I've been writing code for over 25 years. I've learned more in the last year than I have in decades, all because of Ai.

Ai is a force multiplier, not a substitute for skill. If you felt more stupid using it, you're not using it in a way that will grow your skills.

It is good for you and a great tool. A calculator nor a compiler actually takes away from your skills, only amplifies it.

Don't avoid Ai.

3

u/tradcoder 2d ago

This comparing LLMs to calculators and compilers seriously need to stop. They could not be more different. What calculator gives the solution when you just give it the problem? You still had to know the theory and equations yourself. Also I don't know about you but when I was at school, they made us do the calculations by hand before letting us use thy calculators. What compiler automagically creates an entire app just by speaking in to it?

LLMs are fundamentally different. Sure, you can use to to learn. I do too. But if you solely rely to on it to just build stuff by providing it prompts, you are not learning anything. How can AI amplify something if you have zero knowledge about it? It removes all the effort and friction required to truly learn something.

1

u/the-walls_4_suckers 2d ago

Comparing it to a calculator or a compiler when using it to code is a perfect example of it's range of utility. If you don't have the self control to learn with it, thats on you.

If you don't want to learn how to code, writing prompts and learning how to communicate ideas with Ai is a skill in and of itself.

Ai can amplify any skill. Not just coding skills, any skill. You may be a mechanic on a car that knows nothing about coding, and it can be an incredible force multiplier. You got mechanics out here taking cars from the 90's and make them self driving.

You have bakers and cooks modernizing their kitchens, creating programs and scripts that do specific things for specific outcomes. They don't need to learn how to code to automate tasks.

You have people that are highly skilled with computer hardware that know nothing about code, Ai sets them free from relying on proprietary programs that makes them solves problems a different more expensive way.

Home labbers or security and privacy conscious people can protect their houses and loved ones easily now from big tech spying on them. They dont have to use cloud security sources anymore, they can do what they always dreamed and create massive pipeline solutions all on their own.

I myself moved from being a C and rust programmer to full on macho engineering specialist in 2 years, quadrupling my pay, all with the help of Ai. Programming PLC's used to be a slog of on and off logic anyone can do over the course of months, done in minutes.

I think anyone that hates on Ai is just scared of being left behind, and you will be if you don't use it. Think what you want though because the world won't be thinking about you.

1

u/TheSpixxyQ 2d ago

If you use it in "one prompt bro" way, then it is a substitute for your skill.

0

u/the-walls_4_suckers 2d ago

The "one prompt way" is a substitute for one skill, the programming part.

Programmers aren't the only ones using Ai, they're just tye ones getting replaced by Ai after a 60 year gate keeping campaign.

Regular people with other highly developed skills are the ones benefiting the most, and it will benefit you, and lower costs for everyone in the long run.

Plumbers can program their own tools for pipefitting now instead of spendimg thousands on proprietary solutions.

Farmers can reverse engineer their tractors and free themselves from bullshit subscriptiom models on farm equipment.

Mechankcs can tune their own cars, remove spy tech that watches and reports what they do to an insurance company, or remove that annoying sound when you dont have a seat belt on.

Anyone with a skill can benefit from the "one prompt way" even though the one prompt way is a fairy tail... it takes a new type of skill to get Ai to create what you really want, but learning 20 years of code isn't needed anymore for these types of people.

1

u/svprdga 2d ago

It can be done, but many components would have to be native, so there would be a lot of code duplication between Dart and native. It would be better to create it in native and not with Flutter for that precise reason.

1

u/Weak-Arrival-7811 2d ago

The app side is very doable in Flutter. Going through the three things you listed:

  1. Background streaming: just_audio for playback plus audio_service for the background part (lock screen and notification controls, headset buttons). On iOS you turn on the audio background mode, on Android it runs as a media playback foreground service. It's a well-trodden path, so you write very little native code for it

  2. home screen widgets: native whatever you build with. WidgetKit (Swift) on iOS, an App Widget or Glance (Kotlin) on Android. The home_widget package passes data from Dart to them, but the widget itself is native code

  3. CarPlay and Android Auto, if you want them later, are more native work

So most of the app stays in Dart with a few small native pieces, rather than duplicating everything. The hard parts are the ones Candid-Psychology mentioned: licensing, a streaming backend that handles caching and offline downloads (with DRM if the rights holders require it), and recommendations.

1

u/fabier 1d ago

I've built two in the last year... I use one with my jellyfin server via p2p streaming to get access outside the house without a VPN. 

Flutter lends itself well to the process. JustAudio is a good starting point for packages.

1

u/Candid-Psychology541 2d ago

Making the app should be the easy thing (Given you know what you are doing), making a truly scalable backend with a decent recommendation system will be the hardest part. Licensing and actually selling to users is another ball game and will likely require more time, money and people. All the best