mediaplayer

android: how do i use the progress bar?

I am writing a media player and i would like to have a progress bar showing the progress of the song. I found the ProgressBar class, but all i can get on the screen is a circular spinning icon. what im looking for is an actual bar. How do i change the style of the ProgressBar to be a bar (not a circle) and how would i use it with Media...

Problems with MediaPlayer, raw resources, stop and start

Hello everybody, I'm new in Android development and I have the next question/problem. I'm playing around with the MediaPlayer class to reproduce some sounds/music. I am playing raw resources (res/raw) and it looks kind of easy. To play a raw resource, the MediaPlayer has to be initialized like this: MediaPlayer mp = MediaPlayer.cre...

Android MediaPlayer ignores it's internal volume when the system volume changes

Hi, here is my situation: I have a media player playing music in an Android application. I've found that with certain headphones, the volume is much too loud even when the volume is set to it's lowest setting. As a result, I want to change the volume of the music for all volume levels to be 10% of what it normally is (actually, this val...

How to play videos in JavaFX mobile

I can't seem to be able to play videos locally or over the internet on the mobile emulator and on the actual mobile phone. JavaFX Media Player wont load/display in mobile emulator. It works fine when running the application using standard execution and web execution. No exceptions and error messages outputted. What's strange about this ...

Creating a simple seeking media player with MediaElement in WPF

I have also posted this on MSDN forums - i hope its not a problem. I am basically trying to create a WPF based video player which allows you to seek within media. I'm trying to implement it using MediaTimeline (i know i can change the Position property, but i had other issues which i'll post in a separate question). XAML and code-behind...

Video playback on VideoView disappears after going back from another Activity

I have two Activities: one with VideoView attached to MediaPlayer and the second one. I start watching a video in the first Activity, then during playback I start second Activity. After going back to first Activity I can hear sound but see no picture. My Video Layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android=...

ExpressionMediaPlayer to play .mpeg

I'm trying to write a Silverlight application that reads a media file from a database (most likely a .mpeg or .mpg) and play it on the fly using either a Silverlight MediaPlayer or ExpressionMediaPlayer. When I try using Expression Media Player it plays .wmv and .mp4 files but NOT .mpeg or .mpg file extensions. Is this even possible? If ...

Cannot find MediaPlayer.framework

Hi Working with iPhone simulator 3.1.3 - Trying to add a framework to my project - MediaPlayer.framework. I tried the "Add existing framework" method - but cannot find the file in folder "Frameworks". Am I looking in the wrong place? Wrong filename? Wrong space/time continuum? I also did a search for the file - to no avail. Not ...

Music and Lyrics

I have a song and its lyrics. The song can be played using MusicPlayer class. But how do I show the lyrics of the song and also highlight them in sync with the audio. Words appear and fade with the playback. Does Android have anything in-built for such a thing? How can this be achieved? Thanks. ...

windows media player command arguments

Hi There, Is it possible to launch a mp3 or wmv file using windows media player at a specified time offset? e.g I watched 10 seconds of video and closed it. the next time my app launches the video it starts playing a timeline of 10 seconds. The videos and mp3s are being launched in windows mobile 5 and 6 apps. ...

Android Stop Counter and Destroy Media Player

I am working on an app that beeps every second. When I hit the home button I want it to close the program and stop beeping. Right now it closes the program but continues to beep. What am I doing wrong? if ((keyCode == KeyEvent.KEYCODE_HOME)) { isdone = true; mp.release(); counter.cancel(); finish...

Android RTSP - MediaPlayer init failure / PVMFFailure

Hello, I have a camera by Cisco and like to stream it's video stream to my android phone. It's coded in MPEG4 so there should be no problem, but it's not working anymore (it worked with another camera a few weeks ago). Any idea what I might try ? I don't know what's wrong here. I/ActivityManager( 79): Starting activity: Intent { cmp=c...

Embedded media player gets inconsistent currentPosition on both IE8 and Firefox3

I have a embedded media player in the browser that is controlled by javascript to handle all the mediaChange event. The code looks like mediaChangeHandler: function(media) { if (media && this.offset && !this.offsetJumpPerformed) { if (parseFloat(media.duration) > this.offset) { pos = parseInt(pos); t...

iphone media player app crashing for unsupported format files

Hi, I'm using media player to play a video file after downloading from internet. if the video file is not of supported format, the whole app is crashing. How can I prevent this from crashing. How can I check whether the video file is supported by media player on iphone or not. Is there any notification for that? ...

MediaPlayer compatibility problem on OS4 when deploy on OS3

my device are running on OS4 GM and it not present Mediaplayer when play. when test on os3.1.3 it work well. when i target to deploy on OS4 it will resolve this issue, how can i fix it? Here is my code .h #if __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_3_2 MPMoviePlayerController *theMovie; #endif //On a 4.0 device, implement the MP...

Is there a way to change the speed of a media element

In silverlight, is there a way to change the playback speed? ...

how to handle alarmclock and alarm reciever broadcasting to pause playing mediaplayer object

I am using service class to play the mp3 file using media player object on Android platform, problem is, i am not able to handle the alarm interruption. When any previous set alarm clock reach to it's alarm time it starts to play in parallel with mp3.I want that mp3 should become paused and after alarm it again start to play,same thing s...

A problem with Media Player base on iOS4 and deploy iOS3

when Run on Device 3.1.2, why it also pass if(NSClassFromString(@"MPMoviePlayerViewController") != nil) and do code of iOS4 then it will crash , how to fix this issues? if(NSClassFromString(@"MPMoviePlayerViewController") != nil) { // iOS 4 code NSLog(@"MPMoviePlayerViewController")...

Error creating MediaPlayer with Uri or file in assets

I copied song.mp3 to my project's assets directory and wrote this code: private MediaPlayer mp; Uri uri = Uri.parse("file:///android_asset/song.mp3"); mp=MediaPlayer.create(this, uri); After running the create statement, the variable mp is null. What is wrong? Thanks. ...

how to make Device 3.1.3 not pass if(NSClassFromString(@"MPMoviePlayerViewController") != nil) this condition

when Run on Device 3.1.2, why it also pass if(NSClassFromString(@"MPMoviePlayerViewController") != nil) and do code of iOS4 then it will crash , how to fix this issues? if(NSClassFromString(@"MPMoviePlayerViewController") != nil) { // iOS 4 code NSLog(@"MPMoviePlayerViewController"); MPMoviePlayerVi...