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

 




JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
Avaya Article: Call Control XML - Powerful, Standards-Based Call Control
Internet.com eBook: The Pros and Cons of Outsourcing
Go Parallel Article: Scalable Parallelism with Intel(R) Threading Building Blocks
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
Go Parallel Article: James Reinders on the Intel Parallel Studio Beta Program
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Go Parallel Article: Getting Started with TBB on Windows
HP eBook: Storage Networking , Part 1
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Go Parallel Video: Intel(R) Threading Building Blocks: A New Method for Threading in C++
HP Video: Is Your Data Center Ready for a Real World Disaster?
Microsoft Partner Portal Video: Microsoft Gold Certified Partners Build Successful Practices
HP On Demand Webcast: Virtualization in Action
Go Parallel Video: Performance and Threading Tools for Game Developers
Rackspace Hosting Center: Customer Videos
Intel vPro Developer Virtual Bootcamp
HP Disaster-Proof Solutions eSeminar
HP On Demand Webcast: Discover the Benefits of Virtualization
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Microsoft Download: Silverlight 2 Software Development Kit Beta 2
30-Day Trial: SPAMfighter Exchange Module
Red Gate Download: SQL Toolbelt
Iron Speed Designer Application Generator
Microsoft Download: Silverlight 2 Beta 2 Runtime
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM IT Innovation Article: Green Servers Provide a Competitive Advantage
Microsoft Article: Expression Web 2 for PHP Developers--Simplify Your PHP Applications
Featured Algorithm: Intel Threading Building Blocks - parallel_reduce
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES