Skip to main content

VideoComponent question.

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
3 replies [Last post]
salil_khanwalkar
Offline
Joined: 2011-01-13

Is there any working example / tutorial on how to use the VideoComponent independently or combined with MMAPI .

Best Regards,

Salil Khanwalkar.

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

There is no tutorial, I thought about writing one but with the javadocs:

http://lwuit.java.net/nonav/iodocs/com/sun/lwuit/VideoComponent.html

It just seemed too simple. Just create a Video component using createVideoPeer() and add it to your container. Then you can use start/stop and the various methods within the class to control the media. Allot of the stuff is devices specific (Camera, video formats supported etc.) so I really can't help much there.

salil_khanwalkar
Offline
Joined: 2011-01-13

Thanks. I read the javadocs but was getting an exception . I will try again. If we have to get the supported formats from the device do have to use the MMAPI to get it or is there any other way ?

vprise
Offline
Joined: 2003-11-07

I might add this in the future but keep in mind that the reason I didn't add that feature is because it is hopelessly broken on J2ME devices where the reported supported formats are at best a general guideline. The only way to know for sure is to try playing a media file.

Although some formats e.g. MP3/3GP are supported pretty well.