Skip to content Skip to sidebar Skip to footer
Showing posts with the label Media Player

Playing An Pre-recorded Audio File To Somebody Over A Call

I understand that even though the AudioManager.STREAM_VOICE_CALL is available in the SDK for androi… Read more Playing An Pre-recorded Audio File To Somebody Over A Call

Android Mediaplayer Error (-19, 0)

I try to replay a sound when I click on a button. But I get the Error (-19, 0) (what ever this mean… Read more Android Mediaplayer Error (-19, 0)

Ondestroy Crash After Closing App

I'm having some problems after making an override of the method onDestroy. My app is a music pl… Read more Ondestroy Crash After Closing App

Can Mediaplaybackservice Be Used For Getting Information Of Currently Playing Audio File In Android?

I wrote a class which will handle the MediaPlaybackService in android. But the code is not working.… Read more Can Mediaplaybackservice Be Used For Getting Information Of Currently Playing Audio File In Android?

Context Inside A Runnable

I try to play a sound from R.raw. inside a Thread/Runnable But I can't get this to work. new R… Read more Context Inside A Runnable

Play Music From Memory In Android

Is there a way to play a song that exists as an array of bytes in memory and not as a file on disk?… Read more Play Music From Memory In Android

Using Android Mediaplayer Object For Multiple Datasources, Use Of Release();

I have several raw sound files that I want to play using the MediaPlayer class in the android API, … Read more Using Android Mediaplayer Object For Multiple Datasources, Use Of Release();

Get Current Frame From Android Mediaplayer

Is there a way to retrieve the current frame played from android MediaPlayer object? Solution 1: N… Read more Get Current Frame From Android Mediaplayer

Android Mediaplayer Error(1, -2147483648) When Playing An Mp3 Locally

Shortly after Android 4.4 came out my code which has been working correctly since 2.2 suddenly went… Read more Android Mediaplayer Error(1, -2147483648) When Playing An Mp3 Locally

Sound Sometimes Remains Silent When Playing More Sounds In A Row, Why?

I encountered with a weird problem and hope that someone can answer it.. I have 4x4 buttons, each o… Read more Sound Sometimes Remains Silent When Playing More Sounds In A Row, Why?

Exception When Calling Setdatasource(filedescriptor) Method (failed.: Status=0x80000000)

I'm developing a video streaming application and I'm getting stuck when calling set setData… Read more Exception When Calling Setdatasource(filedescriptor) Method (failed.: Status=0x80000000)

Playing A Sound File When A List Item Is Clicked

Just a disclaimer, I'm very new to both android and Java. The end product that I'm going af… Read more Playing A Sound File When A List Item Is Clicked

Problems With Mediaplayer, Raw Resources, Stop And Start

I'm new to Android development and I have a question/problem. I'm playing around with the … Read more Problems With Mediaplayer, Raw Resources, Stop And Start

Unable To Play Sound Using Android Mediaplayer In Dialog?

I'm trying to play sound in a dialog. But somehow, it doesnt work. I'm not sure whether it&… Read more Unable To Play Sound Using Android Mediaplayer In Dialog?

Stop All Media Player Rinning In My Android Device

I'll like to stopping all media player in my android device programmatically. Someone can help … Read more Stop All Media Player Rinning In My Android Device

How To Get Thumbnails Of Audio Files By Using Mediastore

I am now working on a simple music player and i need to get the thumbnail art of all audio files. S… Read more How To Get Thumbnails Of Audio Files By Using Mediastore

Prevent Mp3 File To Play In Another Media Player

I am developing media player and my application download mp3 file from server . So i want to preven… Read more Prevent Mp3 File To Play In Another Media Player

Play Mediaplayer For Certain Duration

I want to play the mediaplayer for just 10 sec. How to control it? Solution 1: You could use Tim… Read more Play Mediaplayer For Certain Duration

Mediaplayer Pausing And Playing Error

I'm building an application for Android with Java and XML. The user of the app must be able to … Read more Mediaplayer Pausing And Playing Error

Mediaplayer Not Playing Live Stream For Some Audio File

some audio file url not playing in mediaplayer here my code mediaPlayer = new MediaPlayer(); … Read more Mediaplayer Not Playing Live Stream For Some Audio File