views:

27

answers:

0

I've tried using the JMF libraries with the "MediaPlayer" bean, but it doesn't seem to be doing anything, or it plays a split-second of the audio track. I do have the Mpeg3 codecs installed - so that's not the issue. I was wondering if anyone has a better method of accomplishing this?

Current code for using the MediaPlayer:

mediaPlayer1.setMediaLocation(core.getStreamURL(Songs.getJSONObject(3).get("songID").toString()));

mediaPlayer1.start();

It's not an issue with the stream URL, I've confirmed that it is in fact a valid URL. The issue seems to be with the control itself.

Any ideas? A control is preferred, I'd like to be able to control seek / play / pause.