Skip to main content

How to use VideoComponent?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
abuhmead1987
Offline
Joined: 2010-04-21

Dear Guys,

I want to use lwuit VideoComponent in my app, but i dont know how to deal with it,

VideoComponent videoComponent=VideoComponent.createVideoPeer(getClass().getResourceAsStream("/3g9Video.3gp"),"video/3gpp");

form.addComponent(videoComponent);

I want to control on volume and on video controls.

I want to create the component and add it ot the form and the video should start when i press on a button to specify the video which should be played.

Thanks a lot in advance,

Mohammad Abu Hmead.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07

Play/stop can be controlled via the video control class. Volume can be controlled via the display class.