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
Contributor
Posts: 43
Registered: ‎05-13-2010
My Device: Blackberry 8520
My Carrier: T-Mobile

Video detailes for CreatePlayer(URL)

I have been trying to understand why some videos play and why some do not. According to the knowledge base, it can use only the supported formats.

 

I'm using a 8520and am lost as to why some videos play and others do not. The videos I am testing with ate all wither WMA, 3GP, MP4 or AVI . one AVI works and one MP4 works. is there a specific bitrate the video needs to be at? 

 

This is how im calling the vide:

 

String url = "http://www.clickmo.com/Bud Light 2009 Commercial.mp4;deviceside=true";

player = javax.microedition.media.Manager.createPlayer(url);
        	
player.addPlayerListener(this);

 

 

 

 

Contributor
Posts: 43
Registered: ‎05-13-2010
My Device: Blackberry 8520
My Carrier: T-Mobile

Re: Video detailes for CreatePlayer(URL)

[ Edited ]

*Bump* 

 

I didn't think this was going to be so hard. Any idea why at all? a lead? something?

 

This video works:

 

http://www.darkwave-studios.com/alex/awesome-ps3-commercial.mp4

 

This video does not:

 

http://www.clickmo.com/Bud Light 2009 Commercial.mp4

 

 

Just wanted to add that both work when you brows to them on the device.

New Developer
Posts: 6
Registered: ‎03-27-2009
My Device: Not Specified

Re: Video detailes for CreatePlayer(URL)

 


Dooleyj wrote:

*Bump* 

 

I didn't think this was going to be so hard. Any idea why at all? a lead? something?

 

This video works:

 

http://www.darkwave-studios.com/alex/awesome-ps3-commercial.mp4

 

This video does not:

 

http://www.clickmo.com/Bud Light 2009 Commercial.mp4

 

 

Just wanted to add that both work when you brows to them on the device.


 

Could the error be caused by the "spaces" in the URL?

 

Try using this URL instead... http://www.clickmo.com/Bud%20Light%202009%20Commercial.mp4

Contributor
Posts: 43
Registered: ‎05-13-2010
My Device: Blackberry 8520
My Carrier: T-Mobile

Re: Video detailes for CreatePlayer(URL)

Im gonna try that. I sware, if it's that simple... something is gona have to be broken into a million little pieces.

Contributor
Posts: 43
Registered: ‎05-13-2010
My Device: Blackberry 8520
My Carrier: T-Mobile

Re: Video detailes for CreatePlayer(URL)

[ Edited ]

Ok so it was one of the problems but this video still does not work. In my error checking I run :

 

 

if( event == PlayerListener.ERROR){
			System.out.println("Video Has An Error"+ERROR);
...
}

 

 

and I get output to the Console "Video Has An Errorerror any clues what might be happening?

 

Odly enough it works on the device but not the simulator.

 

Contributor
Posts: 43
Registered: ‎05-13-2010
My Device: Blackberry 8520
My Carrier: T-Mobile

Re: Video detailes for CreatePlayer(URL)

ok so I think it's just a simulator. Before I go out and try 100 differnt simulators, does anyone know of a model that supports video playback?

BlackBerry Development Advisor
Posts: 15,083
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Video detailes for CreatePlayer(URL)

The simulators use the codecs on your PC for audio and video playback.  So if you see a problem with specific video types (that should be supported on that model) on multiple simulators, it could be a codec issue.

 

Are you able to play the same video back using the buit in Media Player?

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