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
9
votes
5 answers

how to play audio file from url in android

I need to play audio file from remote server in my app. I could play when I tested with localhost server (using WAMP). When the same file supplied from the server it is not working.. The file has no extension and the content is MP3 String fileUrl =…
subair_a
  • 1,028
  • 2
  • 14
  • 19
9
votes
4 answers

How to set the currentTime in HTML5 audio object when audio file is online?

I have a JavaScript audio player with skip forward/back 10 second buttons. I do this by setting the currentTime of my audio element: function Player(skipTime) { this.skipTime = skipTime; this.waitLoad = false; // initialise main…
9
votes
1 answer

pygame.mixer.music.play() doesn't recognize Fast Tracker (.xm music format) repeat position

The problem is: I try to play Fast Tracker module in infinite loop, but doing so just replay music from start, instead of following repeat position. Example: (here's the source for module…
MaxLunar
  • 653
  • 6
  • 24
9
votes
2 answers

Is it possible to save a music from the Ipod library into my app with swift?

I have the reference of an MPMediaItem when a user selects an audio from the iPod library. I am getting the asset URL of that item by using let url = item.valueForProperty(MPMediaItemPropertyAssetURL) But this is not giving me the exact physical…
user6777252
9
votes
2 answers

Which API should I use for playing audio on Windows?

There are many ways of playing sounds on Windows. Which are the differences, advantages and disavantages of each method? I know there are at least 5 methods: 1991 WinMM.dll/mmsys.dll PlaySound 1995 MCIWnd (as suggested by @casablanca) 1996…
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
9
votes
3 answers

Play audio local file with html

I'm trying to do something like this. But I don't know why I'm not getting this thing work. Here it is the codepen example: $('input').on('change', function(e) { var file = e.currentTarget.files[0]; var reader = new FileReader(); …
Tomás Francisco
  • 791
  • 3
  • 7
  • 15
9
votes
4 answers

iPhone progressive download audio player

I'm trying to implement a progressive download audio player for the iPhone, using http and fixed size mp3-files. I found the AudioStreamer project but it seems very complicated and works best with endless streams. I need to be able to find out the…
joynes
  • 1,627
  • 4
  • 16
  • 19
9
votes
1 answer

Play multi-instrument MIDI file IOS

I'm trying to write a simple midi player with a quality sound bank but I'm faced with the problem of playing midi files. The problem is that all midi tracks (drums, pads, bass, synth, etc.) played, but they play a single instrument. I found a…
John
  • 151
  • 6
9
votes
2 answers

Music playing continuously with name

I was actually able to make music play continuously throughout the pages without reloading, using frames (I know music playing continuously is not a good idea but the client really requested it, so I had no choice). Here is what I used for the frame…
Leo Ramos
  • 111
  • 3
8
votes
2 answers

Android - MediaPlayer error: attachnewplayer called in state 64

I am following below post for creating simple music player, but selecting any song from list or pressing prev/next from MediaController is giving below error. I am using Oreo (Andoid 8.1.0 API 27). public void playSong() { Song playSong =…
8
votes
2 answers

Not Getting Thumb with Genres - Universal Music Player

I am using UMP example provided by Google, I have not made any change in my code, even I have not tried anything out of the box, I just imported your project into my work-space and checked it on my device, and found that I am not getting Thumb with…
8
votes
3 answers

Audio Player play in background and should work based off of hardware mute switch

I want to play audio file in the foreground, background and it should work with mute switch i.e. if mute switch is on, then it should not play, if mute switch is off should play audio. **I'm developing an SIP call application. App should play…
Ganee....
  • 302
  • 2
  • 13
8
votes
4 answers

xcode - MPNowPlayingInfoCenter info is not displayed on iOS 8

I'm developing a music application, which should play music in the background. I use the MPMoviePlayerController to play the music. My code to initiate the MPMoviePlayerController: NSString* resourcePath = [[NSBundle mainBundle]…
8
votes
1 answer

Spotify pauses when audioplayer starts in my app

I know this is possible but I haven't found how yet, so I'm asking it. When starting to play a mp3 sound in my app while 3rd party music is playing, for example Spotify. Spotify pauses, and you have to resume Spotify, to let it play again. How can I…
Vince
  • 648
  • 1
  • 7
  • 17
8
votes
9 answers

Automatic music rating based on listening habits

I've created a Winamp-like music player in Delphi. Not so complex, of course. Just a simple one. But now I would like to add a more complex feature: Songs in the library should be automatically rated based on the user's listening habits. This means:…
1 2
3
92 93