mediaplayer

For android media player mp3 vs. wav

I want to know if it is faster to load and play a small wav than a small mp3 file on android media player. The wavs are about 30 KB and the same files as mp3s are about 20 kb. The mp3s have the advantage to save resource space. The sound files have to be played with split second timing. ...

Android MediaPlayer - only one instance at any given time?

I have a audio player app, where there is a Main activity that shows 3 audio sample urls. On click on one, it goes to a Details Activity, which has a play and pause button, to start and pause the audio. My problem is that, when I start the Main activity, and say click on audio 1, I hit play on Details activity. This starts the MediaPla...

Is it possible to prevent a base template reloading using django's template inheritance?

In the header region of my base template (main.html), I've placed an HTML5 media player which pulls in content uploaded through my admin interface. What I'm attempting to do is, when the tracks have been loaded once, have the media player remain unaffected by internal site navigation. In other words, the media player keeps playing but ...

Android - Can a Service report back to calling Activity with status

Is there a way that a Service can report back to the calling activity when the Service has reached a particular stage of processing? For eg: Consider a music player activity that initiates the actual music playing in the background as an Android Service. I want to detect and inform the Activity when the Service has reached the Mediapla...

HTC Hero Update 2.1 --> Broke Audio Streaming ????

Hi there, I have installed the 2.1 update on my HTC Hero yesterday, and happy as a puppy I instaleld my streaming app... Just to discover that it won't stream decently... It has to stream an mp3 stream and it works on my ADP 1.6 device, on a Samsung Galaxy S test-device (with 2.1) and on the 2.1 emulator... Logcat is gettign the follwoin...

Android Media Player Threading

I have written a Music player app and it works great but when a flip action happens or when I return the the player view I have to stop the player and restart it at the postion that it was at when the action happened. That all works but it means a breif stop and start. How can I run the media player in a different thread and still updat...

Allow users to play mp3 files but dont expose them directly on the web

I want to store some mp3s in a folder wich is no public, cant be directly accessed trough the web and allow users to hear/download the songs with a browser only if they are logged in. How can I do that ? I do my web development with django, but If I know how it works is enough. ...

MPMoviePlayerController Move Playhead in <3.1 SDK

Hi everyone! I'm trying to write an app that will quickly move the playhead of a video based on touch events. Writing to the property currentPlaybackTime or calling seekToTime: on 3.2 and later works great, but I was wondering if there's a way to do this in 3.1? currentPlaybackTime and seekToTime were introduced in the MediaPlayback pro...

Watching a Motion Jpeg http stream in Windows Media Player

I have a camera that is sending a motion-jpeg stream over a network in real time, and I would like to open the stream and view the video in Windows Media Player. Firefox and VLC are able to show me the video, but Windows Media Player just says "Connecting to..." for forever. I think this is because the stream has no end - it's just playi...

android Media Player stopped working.

Last night, my app was working just fine streaming audio files with the MediaPlayer in my app. I came into work this morning and it wont play any audio file and I havent changed my code at all. here is the error log that it is printing out via LogCat. Also, the audio file still exists and plays fine on anything else. 07-07 09:53:39.559:...

Android Media Player App Song List Storage

I have written a media player app and was trying to figure a good way to store the songlist. Which is better a scrap db, a flat file, or just an array? ...

MediaPlayer.seekTo() does not work for unbuffered position

I use MediaPlayer for playing a single mp3 song from network. Data source is a HTTP URL. Let's assume we have following playing state. Song duration: 1:00 Current progress: 0:10 Current buffering progress 0:30 Let's say I want to skip some part of a song and seek forward. I do it with MediaPlayer.seekTo() method. If I seek to buffer...

how to stream through mms://

There are some posts about this, but so far, i haven't seen any good answer. Is there a way i can stream audio from mms:// uris with Android?. MediaPlayer seems not to like these streams. Also changing mms:// with http or rtsp doesn't work either. Did someone find a workaround to this?. Thanks! ...

Marking an MPMediaItem (podcast) as listened to

Is there a way to update the 'listened to' status of an MPMediaItem from the iPod library? I've tried using MPMusicPlayerController in iPodMusicPlayer mode and it does not mark the podcast as listened to once it finishes playing. ...

How can I link to a specific point in a silverlight video?

I want to be able to click on an html link in a browser and have that send me to a specific point in a silverlight video. Is there an easy way to do this? ...

switch soundtracks of an mp4 file with android mediaplayer

Hey, I have written a little videoplayer for android and now I'm looking for a solution to switch between two or more soundtracks which are in the video container. Is this even possible with the standard mediaplayer class? ...

Check if user has a song from iTunes in his library

Hi, I am building an iPhone app for music album released on iTunes, client requested that if user purchased the album, the app should allow to play these songs in the app while playing games. I need to find a way how to quicly check if the song is available in the iPod library. I've heard that every song from iTunes has some unique ID b...

Using UIViewController MediaPlayer additions in iPhone 4

I want to use the UIViewController MediaPlayer additions in an iPhone 4 static library. The .h of my view controller subclass imports <MediaPlayer/MediaPlayer.h>. However, when I use presentMoviePlayerViewControllerAnimated in the .m I get a compiler warning: 'MyViewController' may not respond to '-presentMoviePlayerViewControllerAnima...

unable to play video in iOS 4

I have written code to play video in iPhone OS 3.1.3 and video is playing fine. but when i am trying to play video with the same code then video is not playing in iOS 4. I know that Media player framework is changed for iOS 4. Is there any way i can play the video on different OS without preparing separate binary?? Thanks, Jim. ...

MediaPlayer not playing sounds on DroidX

I have some pretty simple Soundboard applications on the Android Market that work flawless on an LG Ally, the Motorola Droid, and the Nexus One, but I recently received an e-mail from a user with the Motorola DroidX claiming that most of the sounds do not work. I've exchanged a few e-mails with him. He claims the Soundboard is the only...