Version 11 (modified by sriggins, 16 years ago) (diff) |
---|
Analysis
Overview
The media engine is responsible for rendering audio and video. Write a module that implements the video and audio interfaces found in org.sophie2.main.media.fobs.
Audio should play regardless of whether it is being used by a scene or not. Video does not render directly to the screen, rather the grabFrame interface returns the image which will be rendered by the scene.
It seems as if JMF is a good place to start for implementing the engine. Start by looking at:
http://java.sun.com/javase/technologies/desktop/media/jmf/reference/faqs/index.html#what
You will also create an extension point that wraps the class and provides a mechanism for the scene to get the audio or video handler.
Task requirements
- Write a module for media playback
- Start with JMF
- Expose an extension point for access to the handlers
- Implement the Interface found in org.sophie2.main.media.fobs
Task result
The result of this task is a module
Implementation idea
- Note that JML can only do mp3 on windows, so we need to figure out what to do about this because supporting mp3 is important
Related
How to demo
(In this section you must add instructions for the demo of the task.)
Design
Implementation
(Implementation results should be described and linked here (from the wiki or the repository))
Testing
Comments
Alex, http://java.sun.com/javase/technologies/desktop/media/jmf/reference/faqs/index.html#what might be a good place to start? - Steve
desc("making the main engine better ")
Is this task about rendering media, such as video and audio? How should it work with scenes and content objects?
Publish extension for playing video handler and audio handler
org.sophie2.main.media.fobs is the interface for the engine
audio should play even if grab frames is not called
wrap jmf class in an extension and publish it
Attachments
- SimpleSceneRedrawVideoDemoTest.java (3.5 KB) - added by nenko 16 years ago.
-
MEDIA_ENGINE_IMPL_MAIN_R0-28.04.2009.patch
(8.7 KB) -
added by nenko 16 years ago.
Implementation patch
- MEDIA_ENGINE_IMPL_MAIN_R0-28.04.2009-fixed-test.patch (8.5 KB) - added by nenko 16 years ago.