Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
wtoon
Posts: 13
Registered: ‎03-25-2009
My Device: Not Specified
Accepted Solution

Any suggestions for valid media content?

Hi,

 

I am trying to test the player, with the some video (.mov, .avi) clips got from internet, the question I always got following exception,

 

java.io.IOException: Locator does not reference a valid media file

 

What kind of factor need to make sure it is a valid one? I use 4.5 JDE, and 8800 serial.

 

Thanks,

wtoon

BlackBerry Development Advisor
MSohm
Posts: 14,757
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Any suggestions for valid media content?

This indicates that the URL you are using does not point to a valid media file.  Double check that your URL is correct.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Developer
bo
Posts: 167
Registered: ‎11-12-2008
My Device: Not Specified

Re: Any suggestions for valid media content?

I'm using that exact simulator right now and I've been able to play MPEG4 encoded .mp4 files.
Developer
Developer
bo
Posts: 167
Registered: ‎11-12-2008
My Device: Not Specified

Re: Any suggestions for valid media content?

[ Edited ]

And here's my list of formats that I've tested using a Curve 8320 device with 4.2.1 (it used to be table, but I can't paste it properly):

 

Format

Works?

Error Message

 

320 x 240 MPEG4 AVI

No

Unsupported media type: video/avi

 

320 x 240 MPEG4 3GP

Yes

 

352 x 288 H263 3G2

No

Unsupported media type: video/3gpp2

 

320 x 240 MPEG4 MP4

Yes

 

320 x 240 MPEG4 MOV

Yes

 

320 x 240 MPEG4 AVI (PC/WM5)

No

 

 

Message Edited by bo on 04-01-2009 06:57 PM
New Developer
wtoon
Posts: 13
Registered: ‎03-25-2009
My Device: Not Specified

Re: Any suggestions for valid media content?

Thanks for your replies!.

 

I got some works now...

Developer
samuels007
Posts: 21
Registered: ‎02-11-2009
My Device: Not Specified

Re: Any suggestions for valid media content?

Hi , i am also facing the same issue. I am not able to play the video file through code.

can you please share the details if possible your code with me?

 

thanks