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
Developer
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

javax.microedition.media.MediaException: unsupported content type - text/plain

Hi

I want open a remote (from http link) video using javax.microedition.media.Manager.createPlayer(http://url); but it thrown exception javax.microedition.media.MediaException: unsupported content type - text/plain

am trying this on JDE 4.5 and simulator 8900

what may be the issue

 

Developer
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Re: javax.microedition.media.MediaException: unsupported content type - text/plain

AFAIK the player is supposed to work with audio and video media types  hence the content type should be something like audio/amr, audio/basic, video... not text/plain.

Are you sure that the url you pass is a valid url to a video/audio?

It is also possible to that your media is corrupted.

 

Here is a doc desribing the supported content types - http://docs.blackberry.com/en/smartphone_users/deliverables/18349/711-01774-123_Supported_Media_Type...

----------------------------------------------------------------------
Press the button to give kudos if I helped you Smiley Happy
Developer
Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

Re: javax.microedition.media.MediaException: unsupported content type - text/plain

The url is correct, I can access it from my PC

and file is not correpted too!!!

 

Cant we stream mp4 through http?

 

Highlighted
Developer
Posts: 402
Registered: ‎11-26-2010
My Device: Torch

Re: javax.microedition.media.MediaException: unsupported content type - text/plain

I have a PDF describing the supported media types and here is what I have for Blackberry Curve 8900:

 

MP4 video is supported with codecs H.264(baseline profile, 480x360 pixels , up to 1500kbps, 24 fps), MPEG-4 480x360px, up to 1500kbps, 24fps, H.263 profile 0 and 3 , level 45 - RTSP streaming is supported 

 

MP4 audio is supported with codecs AAC-LC, AAC+, eAAC+ - RTSP supported

 

Do you by any chance can try opening the URL on an actual blackberry device?

----------------------------------------------------------------------
Press the button to give kudos if I helped you Smiley Happy