jGuru
Register Email     Password Forgot your
password?
HOME FAQS FORUMS DOWNLOADS ARTICLES PEERSCOPE LEARN

  Search   jGuru Search Help

View:
Media FAQ Home Page

FAQ Manager is guru Bill Day PREMIUM.

This FAQ answers questions that developers face in developing media-rich applications in Java using the Java Media APIs and related technologies. The FAQ addresses core APIs built into the Java 2 Platform by default and as well as optional packages, or extension APIs. OpenGL and related technologies are also covered.

What's New

How can I be notified when a rendering error occurs?
Java:API:Media:3D
John Zukowski PREMIUM, Jan 2, 2008
You should register a RenderingErrorListener with your VirtualUniverse. The registration method is static. When the error occurs, you're sent a RenderingError...
What are the different sound classes that come with the Java 3D API?
Java:API:Media:3D, Java:API:Media:Sound
John Zukowski PREMIUM, Jan 2, 2008
There are three sound-related classes: BackgroundSound for an ambient sound, PointSound for a sound whose source is located at a particular point, and...
What is JOAL?
Java:API:Media:Sound
John Zukowski PREMIUM, Jan 2, 2008
JOAL is the Java API wrapper for OpenAL, the open audio library, a cross-platform library for 3D or 2D sound. For more information, visit https://joal...

What platforms are supported for the Java 3D API?
Java:API:Media:3D
John Zukowski PREMIUM, Jan 1, 2008
Windows (x86) Linux (x86) Linux (AMD64) Linux (Power PC) Linux (IA64 Itanium) Mac OS X (Universal, requires JSR-231/JOGL) Solaris (SPARC)...
From where do I get the Java 3D source?
Java:API:Media:3D
John Zukowski PREMIUM, Jan 1, 2008
You download the source via CVS from the three separate subprojects: j3d-core (https://j3d-core.dev.java.net/) j3d-core-utils (https://j3d-core-...
What is JOGL?
Java:API:Media:OpenGL
John Zukowski PREMIUM, Jan 1, 2008
JOGL is the Java Binding for the OpenGL API, formed from JSR-231 (http://jcp.org/en/jsr/detail?id=231. The project homepage is https://jogl.dev.java.n...
What is JOGL?
Java:API:Media:OpenGL
John Zukowski PREMIUM, Jan 1, 2008
JOGL is the Java Binding for the OpenGL API, formed from JSR-231 (http://jcp.org/en/jsr/detail?id=231). The project homepage is https://jogl.dev.java....
How can I turn my Java 3D application into a cross-platform screensaver?
Java:API:Media:3D
John Zukowski PREMIUM, Jan 1, 2008
java.net offers early access to the SaverBeans Screensaver SDK (https://jdic.dev.java.net/documentation/incubator/screensaver/ for just such a purpose....
What is LWJGL?
Java:API:Media:3D
John Zukowski PREMIUM, Jan 1, 2008
LWJGL is the Lightweight Java Game Library found at http://lwjgl.org/. It offers an alternative to the Java 3D API that goes after the J2ME space.
Is it possible to adjust the tempo when playing back a MIDI file using the Mobile Media API?
Java:API:Media, J2ME, J2ME:Mobile Media API
John Zukowski PREMIUM, Apr 1, 2006
That would be with the TempoControl. Get it from the Player and call the setTempo() method, passing in a value for the number of milli-beats per minut...
Using the Mobile Media API, how can I loop the playback of my song?
Java:API:Media, J2ME, J2ME:Mobile Media API
John Zukowski PREMIUM, Apr 1, 2006
Use the setLoopCount() method of Player to playback media with looping. A value of -1 means forever. A value of 1 is the default. 0 is invalid.
Using the Mobile Media API, how do you know when a song/video is done playing?
Java:API:Media, J2ME, J2ME:Mobile Media API
John Zukowski PREMIUM, Apr 1, 2006
You need to attach a PlayerListener to the Player.
Using the Mobile Media API, how do you find out information like song title?
Java:API:Media, J2ME, J2ME:Mobile Media API
John Zukowski PREMIUM, Apr 1, 2006
You have to get the MetaDataControl object for the associated player. There are four predefined keys that you can ask for: TITLE_KEY, DATE_KEY, COPYRIGHT_KEY,...
How do you discover the set of mime types supported by your platform for the Mobile Media API?
Java:API:Media, J2ME
John Zukowski PREMIUM, Apr 1, 2006
The Manager class offers a getSupportedContentTypes() method for just such a purpose. Pass in a value of null to get the whole set returned.
Using the Mobile Media API, how do you take a picture?
Java:API:Media, J2ME, J2ME:Mobile Media API
John Zukowski PREMIUM, Apr 1, 2006
Use the locator string of "capture://video" to create the Player, then get the VideoControl for the viewfinder, and finally VideoControl.getSnapshot(String...
Using the Mobile Media API, how do you control the volume of what is played?
Java:API:Media, J2ME, J2ME:Mobile Media API
John Zukowski PREMIUM, Apr 1, 2006
You need to get the VolumeControl object from the Player and change the volume through that: vc = (VolumeControl) player.getControl("VolumeControl"); if(vc...
Using the Mobile Media API, how do you generate a tone?
Java:API:Media, J2ME, J2ME:Mobile Media API
John Zukowski PREMIUM, Apr 1, 2006
The Manager has a static playTone() method to generate tones. You can also create a Manager.TONE_DEVICE_LOCATOR player object with Player player = Man...
Using the Mobile Media API, how do you play a video?
Java:API:Media, J2ME, J2ME:Mobile Media API
John Zukowski PREMIUM, Apr 1, 2006
This is similar to playing an audio file but requires you to get the control to display the video on. You need to see the results, not just hear them....
Using the Mobile Media API, how do you play a media file stored in an RMS record store?
Java:API:Media, J2ME, J2ME:Mobile Media API
John Zukowski PREMIUM, Apr 1, 2006
RecordStore rs = RecordStore.open("name"); byte record[] = rs.getRecord(id); ByteArrayInputStream bais = new ByteArrayInputStream(record); Player...
Using the Mobile Media API, how do you play a sound file that comes in the JAR?
Java:API:Media, J2ME, J2ME:Mobile Media API
John Zukowski PREMIUM, Apr 1, 2006
You need to know the mime type of the audio file and pass it as a stream to the Player object. InputStream is = getClass().getResourceAsStream("/ex...
« previous beginning next »


Ask A Question



Related Links

Media Forum

Java Media Home

Java 2D Home

Java 3D Home

Java Advanced Imaging Home

Java Media Framework Home

Java Shared Data Toolkit Home

Java Sound Home

Java Speech Home

Java Telephony Home

Java Image I/O Home

Wish List
Features
About jGuru
Contact Us

 


internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs