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
97
votes
10 answers

READ_EXTERNAL_STORAGE permission for Android

I'm trying to access media files (music) on the users device to play them; an easy "hello world"-music player app. I've followed some tutorials and they basically give the same code. But it won't work; it keeps crashing and telling…
42
votes
2 answers

Android - MediaPlayer Buffer Size in ICS 4.0

I'm using a socket as a proxy to the MediaPlayer so I can download and decrypt mp3 audio before writing it to the socket. This is similar to the example shown in the NPR news app however I'm using this for all Android version 2.1 - 4 atm. NPR…
denizmveli
  • 2,558
  • 1
  • 23
  • 18
41
votes
6 answers

Android - Playing mp3 from byte[]

I have my mp3 file in byte[] (downloaded from an service) and I would like to play it on my device similar to how you can play files: MediaPlayer mp = new MediaPlayer(); mp.setDataSource(PATH_TO_FILE); mp.prepare(); mp.start(); But I can't seem to…
nikib3ro
  • 20,366
  • 24
  • 120
  • 181
26
votes
4 answers

Audio song mixer in android programmatically

I want to create an audio mixer (DJ music track) kind of app which can create Dj mixer of an audio song. User can select a music song track that can be mixed with two or more separate rhythm, bass or beat tracks to create a new modified Dj music.…
Dinesh Sharma
  • 11,533
  • 7
  • 42
  • 60
25
votes
5 answers

Android: How to create fade-in/fade-out sound effects for any music file that my app plays?

The application that I am working on plays music files. If a timer expires I want the music to fade out. How do I do that. I am using MediaPlayer to play music and music files are present in raw folder of my application.
binW
  • 13,220
  • 11
  • 56
  • 69
22
votes
4 answers

Is there a way to access the currently played track while the iPhone is connected to an accessory?

I am trying to receive information about the currently played track in a iOS app. This works pretty fine while the iPhone is not connected to an accessory. If I connect it to my car (Opel Astra, iPhone jack), the following code stops to work as…
Thomas Kekeisen
  • 4,355
  • 4
  • 35
  • 54
22
votes
5 answers

How to play a sound in NETCore?

I'm trying to play a sound inside a .Net Core console application and I can't figure this out. I am looking for something managed inside the .Net Core environment, maybe like regular .Net : // Not working on .Net Core System.Media.SoundPlayer…
dbraillon
  • 1,742
  • 2
  • 22
  • 34
20
votes
4 answers

Detect if audio is playing in browser Javascript

Is there a global way to detect when audio is playing or starts playing in the browser. something like along the idea of if(window.mediaPlaying()){... without having the code tied to a specific element? EDIT: What's important here is to be able to…
Chris
  • 2,166
  • 1
  • 24
  • 37
19
votes
2 answers

How to download audio/video files from internet and store in iPhone app?

I am developing an iPhone app for music. I want to give some options to the user so they can listen the song/music by streaming or they can download the music in the app. I know how to stream the audio files in the app programmatically. But, i don't…
Gopinath
  • 5,392
  • 21
  • 64
  • 97
18
votes
3 answers

How to play Audio file Mp3 from the server

I want to play audio from the live server. I don't want to download these audio files. Format of these files are mp3.working on android java.
M.ArslanKhan
  • 3,640
  • 8
  • 34
  • 56
17
votes
3 answers

Trouble playing a song in Google Music player

Is there any way to start playing a song in Google music player app from my app? I am trying following code, but google music player only opens the search results & does not actually play the song. Intent intent = new Intent(); …
user1309043
  • 181
  • 3
16
votes
1 answer

Android SeekBar setProgress is causing my MediaPlayer to skip

I'm trying to use a SeekBar to display both the length of a track played by a MediaPlayer class and to enable seeking within the track. Seeking within the track works well. However, updating the progress value using setProgress while the track is…
16
votes
4 answers

How to programmatically detect earpiece in iphone?

I'm currently working on a project that involves playing music from the iphone music library within the app inside. I'm using MPMediaPickerController to allow the user to select their music and play it using the iPod music player within the…
Cheng Lai
  • 767
  • 1
  • 9
  • 19
15
votes
5 answers

How to create a sound from scratch C#

I am trying to build a virtual piano in C#, and want a way to create a scale of musical notes from scratch. I know that I can simply find or create a bunch of .wav files, 1 for each note, but this will create too much space on the User's Hard disk…
H Bellamy
  • 22,405
  • 23
  • 76
  • 114
15
votes
1 answer

Get current playing track info from Microsoft Groove Music app

I would like to get track info of the current playing track in the Microsoft Groove app in my own app. I'm talking about the Groove APP and not the REST Api. My first approach was to try and get the Windows.Media.Playback.BackgroundMediaPlayer (now…
user4149157
1
2 3
92 93