All Questions

12
votes
5answers
17022 views

Android 2.2 MediaPlayer is working fine with one SHOUTcast URL but not with the other one

Please see the code i am using for streaming shoutcast stream, it works with one URL but NOT with the other one. This one works: Uri myUri = Uri.parse("http://fr3.ah.fm:9000/"); But not with this ...
48
votes
6answers
38951 views

Stopping & Starting music on incoming calls

I have implemented an Activity that plays media from a URL in android In order to add pause functionality when the incoming call is incoming I created a receiver that sets a a variable when the call ...
10
votes
1answers
11706 views

How to stream audio/video files such as MP3, MP4, AVI, etc using a Servlet

I would like to stream my audio/video files to web using servlet. I made an attempt with the following servlet: protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ...
55
votes
9answers
64741 views

Android MediaPlayer error (1, -2147483648)

I have two different videos which I'm trying to load into a VideoView using videoView.setVideoURI(Uri.parse(url)); The two videos, let them be video 1 and video 2, have the following specs (extrac...
46
votes
11answers
103640 views

Passing parameters on button action:@selector

I want to pass the movie url from my dynamically generated button to MediaPlayer: [button addTarget:self action:@selector(buttonPressed:) withObject:[speakers_mp4 objectAtIndex:[indexPath row]] forCo...
40
votes
7answers
64080 views

Android: MediaPlayer setVolume function

about the params Set what to make the player no sound and full sound Thanks
25
votes
2answers
67572 views

How do I use Android ProgressBar in determinate mode?

I am writing a media player and i would like to have a progress bar showing the progress of the song. I found the ProgressBar class, but all i can get on the screen is a circular spinning icon. what i...
15
votes
4answers
61336 views

Android MediaPlayer Stop and Play

I'm creating Android application contains 2 buttons, on click on each button play a mp3 file. The problem is when I play button1 it plays sound1, when I click button2 it plays sound2. I check on each...
24
votes
4answers
20434 views

JavaFX: "Toolkit" not initialized when trying to play an mp3 file through MediaPlayer class

I'm trying to make a simple mp3 play in the background of my program using the following: Media med = new Media(getClass().getResource("intro.mp3").toExternalForm()); MediaPlayer mPlayer = new MediaP...
28
votes
4answers
45716 views

MediaPlayer.setDataSource causes IOException for valid file

This code used to work. Then, maybe I changed something, somewhere (or if I know Android right, an update introduced a bug in the media player). It stopped working on some devices! Especially my Nexus...

Previous Next