mediaplayer

Repeating MediaPlayer freezes application

Android Question. public void myClickHandler(View v) { switch (v.getId()) { //opens switch test case R.id.SoundOneButton: asoundfilenumber=0x7f040001; break; case R.id.SoundTwoButton: asoundfilenumber=0x7f040002; break; case R.id.SoundThreeButton: asoundfilenumber=0x7f040003...

Valid GPL License

I'm looking for an open source media player and I've come across flow player. It is licensed under the GPL, but also requires their branding remain visible on the player. This seems ridiculous, but they claim its compatible: http://flowplayer.org/download/free-license-faq.html If this were actually valid under the GPL, couldn't tons of...

How to connect Media Player to a SeekBar?

Hi, I want to show the progress of a media on a seekbar. Also I want to allow user to "jump" within a medium. I have a MediaPlayer, and a SeekBar. And as far as I see there is no an easy way to merge them. ...

MPMoviePlayerViewController modal quits unexpectedly

Hello all, I am currently trying to play a movie (MP4) using base sdk 3.2 for ipad. I managed to get the movieplayer to pop up but it closes down straight away. I tried changing the file format to read an MP4 link http://www.yo-yo.org/mp4/yu3.mp4 Below is the test code:(Not taking care of mem release etc..yet) NSURL *url = [NSURL fil...

Playing multiple audio files in Android

I think I should know this, but my mind has gone blank. I'm making an app that has a few hundred small sound files and I want it to play a certain file dependent on a String I pass to the function. Where I hit the brick wall is getting the resId of the sound file. I am using this code: MediaPlayer mp = MediaPlayer.create(context, R.raw...

How to resume the mediaplayer?

hi i'm using a media player. i have the option for starting the player,stopping and pause. the problem i have is that i cannot find the option to resume the song from the point that it previously was paused.. please help.. ...

audio / video codec help

Hello guys I have to create a codec for windows media player, this codec when installed should be able to play encrypted files. Now to enhance the problem, this codec should work with every major media player such as vlc, itunes, real player. I would request the community to kindly help me with following queries. How to get start...

Android MediaPlayer error codes?

I am struggling with getting a live radio stream to work on android. I am using the MediaPlayer class and just setting the URL and playing it. It works great for the most part, but after 5-30 minutes it inevitably dies. On 2.1 phones (more specifically a hero) I get this log output W/MediaPlayer( 7919): info/warning (1, 26) I/MediaPl...

iphone - detect touch on media player

I'm using media player framework in my application to play a video. I'm successfully showing the video in my app. I'm using properties of media player and hiding the default controls. Now, on touch of media player, i want to show a button that will replay the same video at the end. How can I detect touches on media player and implement r...

Android, should I make MediaPlayer a service?

I'm trying to write an Android application which will allow users to listen to a radio station. I have got the start and stop buttons to work and it plays the stream. If I press the home key and start doing other bits and pieces with the phone, the stream continues to play. This is how I want it to work. Should I bother creating a serv...

Context inside a Runnable

Hi, I try to play a sound from R.raw. inside a Thread/Runnable But I can't get this to work. new Runnable(){ public void run() { //this is giving me a NullPointerException, because getBaseContext is null MediaPlayer mp = MediaPlayer.create( getBaseContext(), R.raw.soundfile); while (true) { if (somethin...

Android: MediaPlayer gapless or seamless Video Playing

I can play the videos fine back to back by implementing the OnCompletionListener to set the data source to a different file. No problems there. I call reset() and prepare() just fine. What I haven't been able to figure out, is how to get rid of the 1-2 second gap screen flicker between the data source change and the new video starting. ...

Can't change MediaTimeline's RepeatBehavior after it's started?

I'm running a MediaElement using MediaTimeline and MediaClock. However, when I change the RepeatBehavior after it's started it has no effect, I.e. When set to RepeatBehavior.Forever and Begin(), changing to RepeatBehavior(1) has no effect - the timeline continues forever. Likewise if the timeline is set to RepeatBehavior(1) changing it t...

Iphone - Writing a media player with lyrics

Hi all, I want to write a simple media player which displays lyrics that are retrieved from the web. I know once LyricWiki was such a source, but now no longer exists. Does a new API or source for lyrics exist that I can use ? When I do get the lyrics, how do I sync them with song ? I know the MPMediaItem class has the MPMediaItemProp...

Seeking in AAC streams on Android

I'm getting an AAC stream from a HTTP server and using that as the datasource for the MediaPlayer in Android. It plays perfectly fine, but when I try to execute mediaPlayer.seekTo(int position) I get the following errors about a million times: WARN/AACDecoder(13889): AAC decoder returned error -1, substituting silence WARN/AACDecoder(13...

Reduce video buffering

Hi All I'm playing video on Android using media player via RTSP. The player takes about 12s to buffer before it starts playing. Anyone know how I can convince the player to buffer less? I have full control over the RTSP server and the SDP it returns. Regards Phil ...

Android Media player

I understand android media player can play the url link that contains music. Does anyone know if media play can play song or voice thru socket? I want to use Android's media player to play the sound from the microphone from my PC in real time. Can I do that? Thanks, Carl ...

Android - Get current track info at app startup

How can I get currently playing track info at app startup? http://blog.dexetra.com/2010/09/get-current-playing-track-info-from.html has nice and working example on how to get info when android media player does some action (track is changed, finished, started etc). But when I launch my app I need to get currently (in the background) pla...

Using Quicktime chapters/bookmarks in MediaPlayer framework on the ipad

Hi, I am using the MediaPlayer Framework on the ipad to play movies, specifically the MPMoviePlayerController class. The Quicktime movie I am loading has a chapter track with bookmarks. How can I access these bookmarks in my app? Thanks! ...

What is a good video+soundplayer with flash and html5-support?

I need a audio and videoplayer that is usable both in non flash-browsers (such as iphone-safari) and in non html5-video-enabled browser (such as all old browsers) Apart from this clean asthetics(think vimeo), support for many codec-types and easyness to implement are all bonuses. Free or paid doesn't matter! ...