MediaPlayer object not initializing on HTC Thunderbolt

All your problems with Audio, Video and Images.

MediaPlayer object not initializing on HTC Thunderbolt

Postby Nexeo » Sat Mar 26, 2011 7:34 pm

I wrote an application that plays a short WAV file, and I haven't had a problem with it before but I just got an HTC Thunderbolt and it won't play the WAV!

I've initialized the MediaPlayer object like so:

Code: Select all
MediaPlayer mp = MediaPlayer.create(this.getBaseContext(), R.raw.sound);


Despite how it works fine on just about every other phone (including other HTC Sense enabled phones), mp = null when I debug on my Thunderbolt, so I can't call mp.start();

Anyone have any ideas?
Nexeo
Junior Developer
Junior Developer
 
Posts: 11
Joined: Thu Feb 18, 2010 4:16 pm

Top

Re: MediaPlayer object not initializing on HTC Thunderbolt

Postby natrix » Sun Mar 27, 2011 4:12 pm

Wouldn't a Log be very useful ?
I mean try to debug it and see where it brakes and what exception raises then you can search for an answer :)

Best Regards
natrix
Freshman
Freshman
 
Posts: 2
Joined: Sun Mar 27, 2011 4:07 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 11 guests