Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
94 views

How can i play audio in Flutter

in my flutter application I want to make a audio player here is my code but the problem is that when I click in icon button nothing happen and the audio don't start how can I fix this import 'dart:...
asme sahouli's user avatar
0 votes
0 answers
28 views

Flutter : Just Audio "No Network Security Config specified, using platform default"

I am using just audio Package when I try to play audio i face this error No Network Security Config specified, using platform default. i was check with multiple url also my all url have https. But ...
Hanif Shaikh's user avatar
  • 1,379
1 vote
3 answers
135 views

From where the "PlayerState" class comes in audioPlayers flutter package?

I needed some help regarding using audioplayer package in flutter, i found a piece of code thats understandable except the PlayerState.PLAYING part, is this PlayerState a part of audioPlayers package ...
Elle Bishop's user avatar
0 votes
1 answer
540 views

Load large audio files with just_audio

I have developed music application in Flutter using just_audio and just_audio_background. The music feature and controls are working fine, the only concern is when I am loading the playlist at that ...
Khyati Modi's user avatar
0 votes
0 answers
368 views

Perform a HTTP request of Audio URL from the playlist in JustAudio

The HLS stream audio files are accessible via url like media/....stream/hls. This further require a GET HTTP request to be performed to fetch the actual M3U8 audio file which can be played through the ...
Jagpreet Sethi's user avatar
0 votes
1 answer
147 views

Disable Music Playing on terminated state in just_audio_background

I am building a flutter music app and using just_audio & just_audio_background packages. I want music to be played only on foreground state not in terminated state. How can I achieve this? ...
Md Usama's user avatar
0 votes
2 answers
1k views

Playing audio with audioplayers package from local in flutter web throws `UnimplementedError`

I am using audioplayers: ^4.0.1 to play audio from the local and url in my flutter application. To pick the file from local I am using the file_picker: ^5.2.10. To play the audio from local I am using ...
Senthur Kumaran's user avatar
0 votes
1 answer
207 views

How can we store a sound file (from Url) into Ram memory in Dart / Flutter?

I have sound files stored on AppWrite storage. These files are downloadable via URL. I want to play them using Audioplayers(). When I put the Url directly with Audioplayers, there's a delay when user ...
SylvainJack's user avatar
  • 1,217
2 votes
0 answers
198 views

Why onDurationChanged is not called in Flutter ios?

I'm using audioplayers: 1.1.0 library to play audio from url I use the onDurationChanged method to get the audio file length. This is working perfectly on android but in iOS the onDurationChanged is ...
Anandh Krishnan's user avatar
3 votes
0 answers
374 views

Flutter audioplayers 1.1.1 version, no sound at all on android imulator but works only on web browser

I have used a last version of audio player 1.1.1 and i faced this problem that i cann’t play sound at all on android imulator but i works well only on web browser I’ve put this line in manifest ...
محمد صالح's user avatar
0 votes
1 answer
216 views

Dart: Retrive multiple album covers from MP3 file's ID3 tags

iTunes/Apple Music allows for adding multiple cover artworks to a mp3 file. The first images is in a column named "Album Artwork" and remaining are in column "Other Artwork" as ...
Jeremi's user avatar
  • 1,434
1 vote
1 answer
1k views

How to avoid PlayerInterruptedException (Connection aborted) from just audio inside TabBar?

I am using just_audio: ^0.9.29 to play the audio. The page contains TabBar() with Two Tabs. The player is inside the first Tab. AudioPlayer Code: GestureDetector( onTap: () => ...
Flutter's user avatar
  • 153
1 vote
4 answers
394 views

flutter Problem in vs code (Unable to Load asset)

I'm having a problem in flutter on vs code I imported the audioplayers here's my pubspec.yaml here's my homepage where I call the audio players import 'package:flutter/material.dart'; import 'package:...
Nassim Boud's user avatar
2 votes
1 answer
4k views

How to play sound with package audioplayers in flutter

I'm doing course on flutter. I was trying to play sound in flutter. Sadly, I'm having below error code Here is my complete code import 'package:audioplayers/audioplayers.dart'; import 'package:flutter/...
Jahangir Alam's user avatar
1 vote
1 answer
2k views

how to play audio files in flutter dart using audioplayer

hello I want to play an audio whenever a user taps on the button. i have tried many ways but the shows unable to load asset. i have worked with assets before and I think it is something new. Can ...
Daniyal Haider's user avatar

15 30 50 per page