mediaplayer

Android Media Player Threading/Concurrency

Hi all! I am using the default Android Media Player in an Activity, trying to play back a couple of video files. However I have a problem with programming what I want. The desired program outcome would be the following: A video file is played back After that, a dialog is shown, asking the user something A pause of 5 seconds occurs The ...

How to get current playing song details from mediaplayer.

Is there any way to get the details of current song played by mediaplayer? ...

how can i process the ipod library audio file raw data while it playing

After i get the audio file's URL in ipod library with the MPMediaPickerController. Now the question is i want process the file's raw data before it's played. what shoud i do ?? N.B. In the MPMediaPickerController Reference have a fowllow addtion explain. The URL has the custom scheme of ipod-library. For example, a URL might look like ...

Android media player fails MP3 with PVMFErrNotSupported?

I have a downloaded MP3 that I can verify as MP3 by adb pull to my mac or pc and play in its respective media player. However, the error from Android implies that it does not support the format. I think it may be related to the directory location where I am storing the file, but that does not make sense (/data/data/com.myapp/files/file...

Android - Sequential audio playback?

Tried both soundpool and mediaplayer but cant quite manage to get sound files to play back correctly in sequence without overlap.. Need to be able to playback three randomly selected audio files in sequence without overlap. Any examples of using soundpool to play back audio sequentially? would be very much appreciated.. seems like such ...

DreamBox (enigma2-based) to play multicast streams

I have a couple of DM800HDs running Open Dreambox and I want to stream all the media to them through a UDP multicast from VLC (something like this). Those boxes would be un-manned, so I want them to boot into RTP mode and stay that way, just play what is being broadcast by VLC server. Open Dreambox runs an enigma2 player. I am not sure ...

How does one remove a MediaPlayer?

I have too many MediaPlayers. What is the accepted method to remove them from memory so that I can create more? Changing the filesource doesn't seem to work, I need rid of them. ...

Control panel for Java media player with JMF

Hi there I was wondering about how to get the control panel components (start, stop, etc) from the Java media player with JMF. I have: Player mediaPlayer = Manager.createRealizedPLayer( mediaURL); Component video = mediaPlayer.getVisualComponent(); Component controls = mediaPlayer.getControlPanelComponent(); Then ... mediaPlaye...

Calling the default media player with an URI on Android

I found this code: Uri u = Uri.withAppendedPath(MediaStore.Audio.Media.INTERNAL_CONTENT_URI, "1"); i.setData(url); startActivity(i); That plays a sound with the default media player. I want to call the same media player with a URI that contains a URL. How can I target the default p...

Passing parameters on button action:@selector

Hi, 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]] forControlEvents:UIControlEventTouchUpInside]; but action:@selector() withObject: does not work? Is there any other solution? Thanks f...

Overriding JavaFX MediaPlayer class

I haven't tried it yet, but is it possible to extend JavaFX's Media class used in MediaPlayer class, content fetching part, to perform certain operation on file, before playing it in real-time? I would like to implement rapidshare fetch and decompress processor on content URL. ...

How would I use a pack uri resource with media player?

I have some very simple code which just needs to play a sound with a specified volume, as follows : var mp = new MediaPlayer(); mp.Open(uri); mp.Volume = volume; mp.Play(); The problem arises because this is part of a Prism module. I don't know where the executing assembly is going to be so I can't use a relative Uri or siteoforigin a...

XNA MediaPlayer.Volume setter being extremely slow

I've recently added audio to my game loaded under the "Song" class from the XNA framework. Everything seemed to work fine, until I decided to add the possibility to change the volume of the song, using the MediaPlayer.Volume setter. However, when I try to change the volume for the first time, it runs really slowly(like 3 to 4 seconds, ...

Android MediaPlayer streaming MP3 over POST

Hi! I've got a question related to the Android MediaPlayer. Can it stream content through HTTP POST method , or do I have to write my own implementation? If so, what SDK do I have to use? Thanks in advance. ...

Android MediaPlayer throwing "Prepare failed.: status=0x1" on 2.1, works on 2.2

I've been really banging my head against the table trying to get the MediaPlayer class to try to play h.264-encoded videos on Android 2.1. My code is rather simple: AssetFileDescriptor fileDescriptor = getResources().openRawResourceFd(R.raw.my_movie); introMoviePlayer = new MediaPlayer(); introMoviePlayer.setDataSource(fileDescri...

Is it possible to creating a custom Videoplayer and place it in a View on Android?

Hi, I have been searching around for any info on creating a video player. Here is what I am looking for, I want to create a player to play videos (stream preferably) with my own custom playback buttons. The player will be set in a View (size of the view varies). Can i do this with just the MediaPlayer class, and can i add it in a View. ...

Couldnt play back wav files in sequence. process had died on the way.

hi. I have a problem about playback of some wav files. I'd like to execute some wav files in sequence. but cant work well. sometimes i can play back till last but sometimes it doesn't work on the way. anyone knows something to solve this problem? pls Help !... the following is my code and log of logcat. ---------------------------...

VideoView plays ok, but not visible when swapping fullscreen views

I have some AsyncTask that loads a video stream into the player, so I want to show some Loading screen while it performs. Currently my onCreate code looks like this: final View loadingView = getLayoutInflater().inflate(R.layout.video_loading, null); final View playerView = getLayoutInflater().inflate(R.layout.player, null); final VideoV...

android widget and localservice bind

I writing player, it has main activity that runs localservice. I can't find how bind localservice to widget. When i trying to bind it like in activity it fails. Plz help me. Adding #1 How can I contact with background service when? http://www.developer.com/ws/data/article.php/10944_3843561_1/Handling-Lengthy-Operations-with-Android-App...

In IE media player activex object plays only one video

I have Java as back-end. For videos I'm using media player activex object in IE. When I open first time it palys ok, file extention is ".ogg". But when it is opened second time it doesn't plays any more. Ativex object element is created as many times as video look button is pressed and is destroyed after user closes modal window.(Ext.Wi...