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
ServerWatch.com Article: Virtualization Enters the SMB World
ITChannelPlanet.com Article: Emerging E-Discovery Market Grows More Vital for VARs
StoreVault Whitepaper: Introduction to Networked Storage
Oracle eBook: Implementing Business Intelligence in Your Organization
Hoovers Sales Tip: Building Credibility with New Clients
SAP Whitepaper: A Corporate Guide to Better Decisions Through IT
Microsoft Article: Flexibility, Agility the Keys to Dynamic IT
Microsoft Article: Improving Infrastructure Management for Mid-Size Companies
IBM Whitepaper: CIO Insights--Ignite Innovation by Fusing Business and IT
IBM Whitepaper: Transforming Legacy Apps into SOA
Internet.com eBook: All About Botnets
Intel Article: 8 Simple Rules for Designing Threaded Applications
Symantec Whitepaper: E-Mail Discovery--Worst-Case Scenarios Versus Best Practices
Ipswitch Whitepaper: Secure File Transfer In the Era of Regulatory Compliance
Symantec Whitepaper: A Unified, Proactive Approach to Endpoint Security
APC eBook: Putting the Green in IT
Intel Whitepaper: Best Practices for Developing and Optimizing Threaded Applications
Symantec Whitepaper: Emerging Trends in Fighting Spam
Oracle eBook: Guide to Oracle 11g and Database Migration
Symantec Whitepaper: Best Practices for IM Archiving & Compliance
Intel Article: The Challenges of Developing Multithreaded Processing Pipelines
Avaya Whitepaper: SIP--Creating Next-Generation Telecom Applications
Avaya Article: Event Processing Demands Real-Time Response for Communications-Enabled Business Apps
MessageLabs Whitepaper: Spam Spikes--A Real Risk to Your Business
Symantec Article: Guarding the Corporate Gateway
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Epicor Webcast: Requirements to Consider When Looking at ITSM Tools
Intel Video: Three Must-Knows for Parallelism
Microsoft: NXT Web Seminar Series
Microsoft Partner Program Video: The Secrets to Partner Success
Rational Asset Manager: Succeed with Asset-based Development
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
NXPowerLite: Desktop Edition Software Trial
IBM Rational Systems Development Solution e-Kit
IBM SOA Development Survival Guide eKit
Evaluate IBM Rational Build Forge Online
IBM Enterprise Architect eKit for SOA
Evaluate Rational Application Developer Online
Iron Speed Designer Application Generator
Symantec IM Detection Utility
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
IBM Overview Video: Next Generation Data Warehousing
IBM Tutorial: Intro to XML User Interface Language (XUL) Development
Microsoft How-to Article: Get Going with Silverlight and Windows Live
IBM Tutorial: The Ajax Transport Method
IBM Tutorial: Learning PHP
IBM Tutorial: Validating XML
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES