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

New Developer
Posts: 1
Registered: ‎08-04-2014
My Device: 9900
My Carrier: Idea

Blackberry OS 7- How to play video(.mp4) from res?

I am trying to play video from res/video folder using 




ByteArrayInputStream stream = (ByteArrayInputStream)this.getClass().getResourceAsStream("/abc.mp4");

ByteArrayInputStreamDataSource source = new ByteArrayInputStreamDataSource(stream, "video/mp4");

Player p = Manager.createPlayer(source);



But getting Video not supported alert. Please help me to sort out this issue.