Dart HttpServer - flutter

how to serve a song with a simple dart http server to play it with just_audio library in flutter.
I have a dart http server that serves a single song and I want to play this song from a flutter app using just_audio library

Related

How to play system sound in flutter web?

How to play system sound in flutter web without using any packages in all platform ?
I've tried await SystemSound.play(SystemSoundType.alert); but no alert tone played.
The web platform currently does not support playing sounds, so this call will yield no behavior on that platform.
source : https://api.flutter.dev/flutter/services/SystemSound/play.html

Flutter Video_player not playing rtsp stream

I am trying to play the rtsp in my flutter app using this plugin video_player but this is showing Player Exception how to play rtsp only using this video player?
Have you tried flutter_vlc_player for better rtsp support?
https://pub.dev/packages/flutter_vlc_player
I had a combo of rtmp, rtsp, http mp4 clips and http motion jpeg and flutter_vlc_player handles them. I think video_player just doesn't do everything.

How to play mjpeg video stream over websocket in Dart?

I want to play a video which being received from websocket (wss) on flutter application.
There is a great plugin called flutter_mjpeg
The problem is that the plugin can only accept http protocol but not wss.
What is the best approach to play the video stream in the app?

Flutter Video_Player - Play video from asp.net web API using stream

Flutter is new to me, and I'm creating an app using video_player library, where the video plays from local resource as well as from the internet using direct url like https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4.
However, I am trying to read a stream in chunks and play them to video_player, but it does not seem to be working.
I have created an API with the help of Asynchronously streaming video with ASP.NET Web API which return the Stream outputStream as return value.
Note: The video stored in my file server and API server are also different, and both are on the same network. API server can read the data in chunks from the actual url that is not publicly accessible and its working fine in html video tag.
Does the video_player support such streaming or do I need to use any other player?
Please help me guys, whether they are in the right direction or not.
I am sure the details provided are not enough, but as a flutter beginner this is what i can provide here.
Best Regards,
Hi ten

How to use paginaton in flutter video player?

I am using flutter video_player library and I want to play a long list of videos but fetching only 3 videos at a time from the server?