mediaplayer

real time stream for media play in Android

hi, I was wondering if it is possible to use Android's media player to play in real time the sound being recorded from a microphone on the PC? if it is possible, how can I do it? I just can't seem to find any answer anywhere else... Thanks, Carl ...

How to get the yahoo's mediaplayer javascript to ignore certain file types?

Is there any way to restrict what types of files the yahoo mediaplayer plays? We don't want it to play flv files but we do want it to play MP3s. Background Yahoo provides a really nice browser based mp3 player in the form of a simple javascript include. It will find any link to media file on your web page and adds a nice little player ...

problems with onSensorChanged method

my issue is this: i need the phone to create a MediaPlayer object called smp when: it sees that it's been shaken, it confirms that smp isn't already created, it sees that a button called hilt isChecked. when it satisfies these conditions, it should create the player, play a sound, and destroy the player. the problem i have is that i...

Android Simple MediaPlayer problem

Hi All! Can someone please point to me what is wrong with my code? try{ MediaPlayer p = new MediaPlayer(); p.setDataSource(getCacheDir() + "/temp.mp3"); p.prepare(); p.start(); }catch(Exception e){} MediaPlayer p catches Exception whenever it calls prepare(). File temp.mp3 is already inside the cache folder and it is not corrupt or ...

How do I embed wmv/mpg/avi/mov/etc videos reliably?

I am trying to embed video files (wmv, mpg, avi, mov, etc.) dynamically by creating embed elements in javascript. The problem I am running in to is this has not been very reliable across all browsers and even if it does work, there is no guarantee that the end user has the required plugin to play the video. Ideally, I would convert every...

Setting privacy control for the files to be played in embedded Quicktime player

Hello, I tried to find the player to play gsm file on my site. After searching on google, it seems quicktime player is the only ready to use player available. However, I have to provide the location of the gsm file to the quicktime plugin in order for it to play. I worry about the security issue that may cause by this since some files a...

Free - SWF to FLV Converter

I want to convert the SWF files to FLV formats, please let me know if we have any freewares? Any help, please. ...

Mediaplayer plays weird sounds on Android 2.2

Hello! I've created an app that uses MediaPlayer to play a random (short) sound when a button is clicked. The sounds are played correctly on android devices < 2.2. This is the code responsible for playing sounds. r = new Random(); sounds = new ArrayList<MediaPlayer>(); sounds.add(MediaPlayer.create(this, R.raw.sound1)); sounds.add(Media...

IPad videos don't play after multiple runs

I'm working on an IPad application (iOS 3.2) that plays a couple of videos using the MediaPlayer framework. After running the app for a while videos don't play anymore. The video is loaded, meaning i can buffer through it but it's started in pause mode and cannot be set to played. Each time i press play it pauses again. After restarting ...

android mediaplayer error on android version < 2.2 ?

Hi I have some weird problem with mediaplayer in android version less then 2.2. I made a game where I do some button clicks and if is answer OK then go to this method and play some sound, it play great on android 2.2 but on minor android version it show error after 7-8 Right answers ??? I have some code sample that works fine...

Programmatically detect if Windows Media Player is installed

Anybody have any advice on how to programmatically detect if Windows Media Player is installed? I know about the registry setting look up, but don't trust it since it's more than a little misleading (uninstalled may not remove it). And I've considered just launching a video, but an error could be caused by something other than Media Pl...

Does it make sense to set up mediaPlayer to run in a separate thread in Android?

I've recently begun experimenting with a mediaPlayer instance in my Android app. I implemented a couple different beeps for feedback to the user. Now, when I implemented an audioTrack (for a completely different purpose), I discovered that it pretty much sets itself up as a separate thread automatically (as far as I can tell). It cert...