Questions tagged [audio-player]

A software specialized in playing audio of different formats and/or manage audio libraries.

An audio player is a software specialized in playing audio files.

Some players play a specific file format, but many play a great range of file formats, ranging from MP3 files to WAV files. Many audio players have also the functionality to manage audio libraries, create playlists, shuffling music, and much more.

Questions on this topic should be about development of audio-players, errors on API's of common audio players and such.

1392 questions
8
votes
4 answers

Detecting if music is playing?

My app involves music(iPodMusic), and there is a UISwitch toggling play/pause. My goal is to be able to detect if music is playing, so that therefore the play/pause switch can say 'play' when music is playing and 'pause' if it isn't.
Flafla2
  • 691
  • 2
  • 11
  • 21
7
votes
1 answer

What algorithm does YouTube use to change playback speed without affecting audio pitch?

Youtube has an option to change the playback speed of videos that speeds up or slows down a video's audio without affecting its pitch. I know that there are a number of different algorithms that can do this, but I am curious as to which specific…
7
votes
1 answer

MPMusicPlayer Error Domain=MPErrorDomain Code=4?

I am having issue with Music player, most of the songs gives Error Error Domain=MPErrorDomain Code=4 The testing device has Apple music subscription and the tracks gives error on the app they are working fine in Apple music app! Here is the…
Kodr.F
  • 13,932
  • 13
  • 46
  • 91
7
votes
6 answers

javascript or jQuery music player

I'm in a middle of a project, and the client want a player to play some music. So, my question is, is there any way with javascript or a jQuery plugin where we have a very small playlist, like 3 or 4 songs or so, and the visitor control the music…
Tiago Castro
  • 835
  • 2
  • 10
  • 23
7
votes
3 answers

I want to prevent my music player app to scan the directories for audio files everytime the app launches. How can I do that?

I want to prevent my music player app from scanning the directories for audio files everytime the app launches. How can I do that? I have been using the following code to scan the audio files. public void getSongList() { ContentResolver…
7
votes
1 answer

Android - How to make the phone vibrate to the music playing

I am new to Android development. I want to make an app that is essentially a music player but the phone can vibrate to the beat of the music playing. I remember the earliest Nokia phones had this feature, I want to recreate this for fun. My…
7
votes
2 answers

Python VLC binding- playing a playlist

I was wondering if it is possible to open(play) a music playlist ( .m3u file) with the use of vlc.py ? I searched for an answer but could not find it. I managed to play a simple mp3 file, even a mp3 stream, but I dont have any luck with the…
Natko Kraševac
  • 111
  • 1
  • 2
  • 8
7
votes
2 answers

Delphi: EMCIDeviceError when starting MCI

I use the TMediaPlayer component for playing music. It works fine with most of my tracks. But it doesn't work with some tracks. When I want to play them, the following error message is shown: Which is German but roughly means that: In the project…
caw
  • 30,999
  • 61
  • 181
  • 291
7
votes
1 answer

Lock screen player's seek bar issue in iOS 7

If I play music through iPhone's native music player in iOS 7 and access it on lock screen then I can drag the player's seek bar i.e user can interact with it. Screenshot : But if I play music from my app which supports background audio play then…
iVipS
  • 1,477
  • 1
  • 14
  • 22
6
votes
3 answers

Make UIViewController a singleton?

During the use of my app, the user should be able to start, stop, forward background music. (Across several UIViewControllers). For this, I made my MusicPlayer a singleton (NSObject). If I create the controls in every view for itself it works, but…
DAS
  • 1,941
  • 2
  • 27
  • 38
6
votes
1 answer

Can't play a note with mingus

I've came to use mingus to try to reproduce some notes in python. Based on what was answered here, I've tried with: from mingus.midi import…
Btc Sources
  • 1,912
  • 2
  • 30
  • 58
6
votes
7 answers

Uninterrupted background music on website

I was making a website for a music band, and i was wondering the best way to play background music on the website without interrupting the flow of the music (even for a split second). At the moment, i am considering using frames, but this is not…
Seedorf
  • 665
  • 3
  • 13
  • 28
6
votes
0 answers

How to detect the end of a song in MusicKit?

I am attempting to use Apple's Music Kit within my application to listen to music. My issue is that the first song that plays will continually repeat. The first song plays correctly by using the following code: let mediaArray =…
6
votes
1 answer

React Native - Expo Audio stop all sounds

I am using Expo Audio to play some short sounds from a list. async playAudio(file) { try { await Audio.setIsEnabledAsync(true); const sound = new Audio.Sound(); await sound.loadAsync(file); await…
Evelyn
  • 2,588
  • 3
  • 22
  • 47
6
votes
1 answer

Swift - Detect music playing, whether it's Spotify or iTunes

I am currently using the following statement to detect music: if MPMusicPlayerController.systemMusicPlayer().playbackState == .Playing { print("There is music playing") } Great, however this will only work for iTunes player, and not music that…
zantuja
  • 211
  • 1
  • 4
  • 14