 |
| |
| META TOPICPARENT | name="WonderlandReleasepoint4" |
Home | Changes | Index | Search | Go <-- This creates the navigation links to : Home | Help | Index | etc. --> | | | This property file configures the application as a Movie Player.
- Video-webcam-wlc.xml
Configures the application as a Webcam Viewer.
| |
< < |
- Panoramic-video-wlc.xml
| > > |
- Panoramic-video-wlc.xml
| | | This property file shows how to configure the application as a Panorama Viewer.
To install the video player, copy one of these WFS property files to the WFS directory on your Wonderland server. For example, to install the Movie Player in the default Wonderland MPK20 world, copy Video-movie-wlc.xml to lg3d-wonderland/src/worlds/default-wfs/building-wld/ConferenceRoom-wld. Note that the property file sets the position of the movie player to the far wall of the conference room. |
| |
| META TOPICPARENT | name="WonderlandReleasepoint4" |
Home | Changes | Index | Search | Go <-- This creates the navigation links to : Home | Help | Index | etc. --> | | | These are preferred values; the video application will stretch the movie to fit the specified width and adjust the height to maintain the correct aspect ratio. | |
< < | Once you've installed the file in the WFS directory, restart the Wonderland server, or use the Wonderland Manager application to reload WFS. | > > | If you're installing a webcam or panorama viewer for use with an Axis camera, you need to create a user account on the camera for the video player. To do this, go to the camera's web page and click Setup and log in. Next click Users in the Basic Configuration section and click (Add...). Enter the following information: | | | | |
< < | Deployment Tips | > > |
- User name: admin
- Password: admin
- User group: Administrator
- Check the "Enable PTZ control" check box
Press (OK) to create the account. The user name and password are currently fixed in the video application. | | | | |
< < | Tips for deploying the Video Player application. | > > | When you have finished configuring Wonderland, restart the Wonderland server, or use the Wonderland Manager application to reload WFS.
Deployment Tips | | | | |
> > |
- YouTube movie URLs are not playable in the Movie Player. To play a YouTube video, you need to obtain a copy of the Flash video file. There are a number of utilities available which can do this.
- The webcam and panorama viewers only support Axis webcams. They do not work with other webcams.
- The frame rate only controls how frequently frames are displayed by the video application. The webcam and panorama viewers retrieve frames from the webcam at a fixed rate of 10 frames per second. Lowering the frame rate will not change the frame retrieval rate or reduce bandwidth utilization.
- For best performance set the preferred width and height to the same size as the video and scale the viewer using the pixelScale attribute. If you set the preferred sizes larger than the frame size, the frames will be scaled in software. This is cpu intensive and will reduce Wonderland performance.
| | | Application Properties | |
< < | The Video Player can be pre-configured by setting the following properties in the WFS property file: | > > | The Video Player can be pre-configured by setting the following properties in the WFS property file. These are defaults used by the video application when the property isn't specified in the WFS file. The sample WFS files may have different values than these defaults. Note that the panorama properties only apply when using a panorama source. They can't be applied to a recorded video source. | | |
| |
< < |
| > > |
| source | string | URL of the video or webcam | http://research.sun.com/projects/mc/video/MPK20-oct2007.mov | Y |
| videoClass | string | type of video source (a movie or a PTZ camera), one of the following: org.jdesktop.lg3d.wonderland.videomodule.common.SimpleMovie org.jdesktop.lg3d.wonderland.videomodule.common.PTZCamera | none | Y |
| | |
| clientClassname | string | player type, one of the following: org.jdesktop.lg3d.wonderland.videomodule.client.cell.VideoApp org.jdesktop.lg3d.wonderland.videomodule.client.cell.PTZPanoramaApp org.jdesktop.lg3d.wonderland.videomodule.client.cell.PTZCameraApp | none | Y |
| |
< < |
| playOnLoad | boolean | whether to play the movie on entering the world | false | Y |
| > > |
| playOnLoad | boolean | whether to play the movie on entering the world (if true, playback will start when the first user enters the world) | false | Y |
| | |
| synced | boolean | whether to sync playback with other clients | true | Y |
| |
< < |
| position | double | where to start playback, in seconds | 0.0 | N |
| frameRate | double | frame rate in frames/second | 10 | N |
| > > |
| position | double | where to start playback, in seconds | 0.5 | N |
| frameRate | double | frame rate in frames/second | 2.0 | N |
| | |
| panoramic | boolean | show panorama? | false | N |
| |
< < |
| pan | float | initial pan angle in degrees | 0 | N |
| tilt | float | initial tilt angle in degrees | 0 | N |
| > > |
| pan | float | initial pan angle in degrees (-49 to 49) | 0 | N |
| tilt | float | initial tilt angle in degrees (-36 to 36) | 0 | N |
| | |
| zoom | float | initial zoom factor (200-9740) | 200 | N |
| synced | boolean | whether to sync with other clients | true | N |
| requestThrottle | int | delay in seconds between sending camera requests (in milliseconds) | 2500 | N |
| preferredWidth | double | preferred width in pixels | 640 | N |
| preferredHeight | double | preferred height in pixels | 480 | N |
| |
< < |
| pixelScale | float | scale factor used to scale the VNC window | 1.0 | N |
| > > |
| pixelScale | float | scale factor used to scale the video window | 1.0 | N |
| | |
| decorated | boolean | whether to display a border around the application | true | N |
|
| |
| META TOPICPARENT | name="WonderlandReleasepoint4" |
Home | Changes | Index | Search | Go <-- This creates the navigation links to : Home | Help | Index | etc. --> | | |
| |
< < |
| source | string | the URL of the video source | http://research.sun.com/projects/mc/video/MPK20-oct2007.mov | Y |
| videoClass | string | the type of source (a movie or a PTZ camera): org.jdesktop.lg3d.wonderland.videomodule.common.SimpleMovie org.jdesktop.lg3d.wonderland.videomodule.common.PTZCamera | none | Y |
| clientClassname | string | the type of player for the source, one of the following: org.jdesktop.lg3d.wonderland.videomodule.client.cell.VideoApp org.jdesktop.lg3d.wonderland.videomodule.client.cell.PTZPanoramaApp org.jdesktop.lg3d.wonderland.videomodule.client.cell.PTZCameraApp | none | Y |
| > > |
| source | string | URL of the video | http://research.sun.com/projects/mc/video/MPK20-oct2007.mov | Y |
| videoClass | string | type of video source (a movie or a PTZ camera): org.jdesktop.lg3d.wonderland.videomodule.common.SimpleMovie org.jdesktop.lg3d.wonderland.videomodule.common.PTZCamera | none | Y |
| clientClassname | string | player type, one of the following: org.jdesktop.lg3d.wonderland.videomodule.client.cell.VideoApp org.jdesktop.lg3d.wonderland.videomodule.client.cell.PTZPanoramaApp org.jdesktop.lg3d.wonderland.videomodule.client.cell.PTZCameraApp | none | Y |
| | |
| playOnLoad | boolean | whether to play the movie on entering the world | false | Y |
| synced | boolean | whether to sync playback with other clients | true | Y |
| position | double | where to start playback, in seconds | 0.0 | N |
| |
< < |
| frameRate | double | the frame rate in frames/second | 10 | N |
| > > |
| frameRate | double | frame rate in frames/second | 10 | N |
| | |
| panoramic | boolean | show panorama? | false | N |
| |
< < |
| pan | float | the initial pan angle in degrees | 0 | N |
| tilt | float | the initial tilt angle in degrees | 0 | N |
| zoom | float | the initial zoom factor (200-9740) | 200 | N |
| > > |
| pan | float | initial pan angle in degrees | 0 | N |
| tilt | float | initial tilt angle in degrees | 0 | N |
| zoom | float | initial zoom factor (200-9740) | 200 | N |
| | |
| synced | boolean | whether to sync with other clients | true | N |
| requestThrottle | int | delay in seconds between sending camera requests (in milliseconds) | 2500 | N |
| |
< < |
| preferredWidth | double | the preferred width in pixels | 640 | N |
| preferredHeight | double | the preferred height in pixels | 480 | N |
| > > |
| preferredWidth | double | preferred width in pixels | 640 | N |
| preferredHeight | double | preferred height in pixels | 480 | N |
| | |
| pixelScale | float | scale factor used to scale the VNC window | 1.0 | N |
| decorated | boolean | whether to display a border around the application | true | N |
|
| |
| META TOPICPARENT | name="WonderlandReleasepoint4" |
Home | Changes | Index | Search | Go <-- This creates the navigation links to : Home | Help | Index | etc. --> | | | <-- Please make sure some other page points to your new article so that others can find it! -->
<-- For more on how to write Javapedia articles please read the WritingArticles? page. --> | |
> > | Topics
| | | Summary | |
> > | The Video Player allows you to play video and view streaming video from webcams in Wonderland.
There are three versions of the Video Player:
- a movie player
- a webcam viewer
- a panorama application for pan, tilt, zoom cameras
Movie Player
The movie player supports playback of recorded movies. For details of the supported movie formats, refer to:
Quicktime (MPEG-4), Flash Video (used by YouTube) and H.264 are among the popular supported formats. | | |  | |
< < |  | > > |
Figure 1: Movie Player | | | | |
< < | Adding a Video Player to your world | > > | Webcam Viewer | | | | |
< < | The Video application is loaded into Wonderland using WFS. Sample WFS property files are provided in the wonderland-modules project on java.net: | > > | The Webcam Viewer allows streaming video from Axis video cameras to be displayed in Wonderland. In the future, we'd like to add support for common desktop webcams. | | | | |
< < | https://wonderland-modules.dev.java.net/source/browse/wonderland-modules/trunk/src/modules/apps/2d/video/ | > > |
Figure 2: Webcam Viewer
Panorama Viewer | | | | |
< < | There are two example property files: | > > | The Panorama Viewer displays video from a pan, tilt, zoom (PTZ) camera in a 3x3 grid. The camera can be panned and zoomed to display live video from any area of the camera's field of view. As the live view is moved around, a panoramic image is constructed. | | | | |
< < |
- Video-movie-wlc.xml
This property file gives an example of how to load the video application in movie mode in Wonderland.
- Video-movie-wlc.xml
This property file shows how to configure the video application to display a panoramic view with an Axis 212 PTZ camera.
| > > | The Panorama Viewer currently supports the Axis 212 PTZ. This is a high quality pan, tilt, zoom camera with a wide-angle 3 megapixel sensor. | | | | |
< < | The application has three modes: | > > |
Figure 3: Panorama Viewer | | | | |
< < |
- video mode
- webcam mode
- panorama mode
| > > | Installing the Video Player | | | | |
< < | In video mode, live video is displayed full-screen in the application window. In panorama mode, a static panorama mosaic is displayed and the live video view can be moved around the panorama. As the live view is moved, it updates the area of the panorama underneath. To enable panorama mode, set the 'panoramic' property to 'true' in the WFS property file. | > > | The Video application is loaded into Wonderland using WFS. Sample WFS property files are provided in the wonderland-modules project on java.net: | | | | |
< < | To install the video player, copy one of these WFS property files to the WFS directory on your Wonderland server. For example, to install the movie player in the default Wonderland MPK20 world, copy Video-movie-wlc.xml to lg3d-wonderland/src/worlds/default-wfs/building-wld/ConferenceRoom-wld. Note that the property file specifies the position of the movie player on the far wall of the conference room. | > > | https://wonderland-modules.dev.java.net/source/browse/wonderland-modules/trunk/src/modules/apps/2d/video/
There are three example property files:
- Video-movie-wlc.xml
This property file configures the application as a Movie Player.
- Video-webcam-wlc.xml
Configures the application as a Webcam Viewer.
- Panoramic-video-wlc.xml
This property file shows how to configure the application as a Panorama Viewer.
To install the video player, copy one of these WFS property files to the WFS directory on your Wonderland server. For example, to install the Movie Player in the default Wonderland MPK20 world, copy Video-movie-wlc.xml to lg3d-wonderland/src/worlds/default-wfs/building-wld/ConferenceRoom-wld. Note that the property file sets the position of the movie player to the far wall of the conference room. | | | Next, edit the file and change the URL of the video: | | | Deployment Tips | |
< < |
- The movie player supports quite a wide range of formats. It's based on the Java Media Framework, and uses the ffmeg native codec library. For more details on supported formats, refer to the following:
- The webcam and panorama features currently support a specific type of Axis webcam, the Axis 212 PTZ:
| > > | Tips for deploying the Video Player application. | | | Application Properties |
| |
| META TOPICPARENT | name="WonderlandReleasepoint4" |
Home | Changes | Index | Search | Go <-- This creates the navigation links to : Home | Help | Index | etc. --> | | | There are two example property files: | |
< < |
Video-movie-wlc.xml
This property file gives an example of how to load the video application in movie mode in Wonderland.
Panoramic-Video-wlc.xml
| > > |
- Video-movie-wlc.xml
This property file gives an example of how to load the video application in movie mode in Wonderland.
- Video-movie-wlc.xml
This property file shows how to configure the video application to display a panoramic view with an Axis 212 PTZ camera.
| | | | |
< < | This property file shows how to configure the video application to display a panoramic view with an Axis 212 PTZ camera. The application has two modes: | > > | The application has three modes: | | | | |
> > | | | |
In video mode, live video is displayed full-screen in the application window. In panorama mode, a static panorama mosaic is displayed and the live video view can be moved around the panorama. As the live view is moved, it updates the area of the panorama underneath. To enable panorama mode, set the 'panoramic' property to 'true' in the WFS property file.
To install the video player, copy one of these WFS property files to the WFS directory on your Wonderland server. For example, to install the movie player in the default Wonderland MPK20 world, copy Video-movie-wlc.xml to lg3d-wonderland/src/worlds/default-wfs/building-wld/ConferenceRoom-wld. Note that the property file specifies the position of the movie player on the far wall of the conference room. | |
< < | Next, edit the file and change the path to the video: | > > | Next, edit the file and change the URL of the video: | | |
<void property="source"> | |
< < | file://movies/movie.mov | > > | http://research.sun.com/projects/mc/video/MPK20-oct2007.mov | | |
| |
< < | Note: The file path must be accessible in the same directory on all systems where the Wonderland client will run.
On Windows systems, the path should have the following format:
<string>file://C://movies/movie.mov</string>
| | | The size of the video window is specified by the following properties: | | | Deployment Tips | |
< < | Things to be aware of when deploying the Video Player application. | > > |
- The movie player supports quite a wide range of formats. It's based on the Java Media Framework, and uses the ffmeg native codec library. For more details on supported formats, refer to the following:
- The webcam and panorama features currently support a specific type of Axis webcam, the Axis 212 PTZ:
| | | Application Properties | | |
| |
< < |
| videoClass | string | the movie player class, one of the following: org.jdesktop.lg3d.wonderland.videomodule.common.SimpleMovie org.jdesktop.lg3d.wonderland.videomodule.common.PTZCamera | none | Y |
| clientClassname | string | the movie player class, one of the following: org.jdesktop.lg3d.wonderland.videomodule.client.cell.VideoApp org.jdesktop.lg3d.wonderland.videomodule.client.cell.PTZPanoramaApp org.jdesktop.lg3d.wonderland.videomodule.client.cell.PTZCameraApp | none | Y |
| > > |
| videoClass | string | the type of source (a movie or a PTZ camera): org.jdesktop.lg3d.wonderland.videomodule.common.SimpleMovie org.jdesktop.lg3d.wonderland.videomodule.common.PTZCamera | none | Y |
| clientClassname | string | the type of player for the source, one of the following: org.jdesktop.lg3d.wonderland.videomodule.client.cell.VideoApp org.jdesktop.lg3d.wonderland.videomodule.client.cell.PTZPanoramaApp org.jdesktop.lg3d.wonderland.videomodule.client.cell.PTZCameraApp | none | Y |
| | |
| playOnLoad | boolean | whether to play the movie on entering the world | false | Y |
| synced | boolean | whether to sync playback with other clients | true | Y |
| position | double | where to start playback, in seconds | 0.0 | N |
|
|
> > |
| META TOPICPARENT | name="WonderlandReleasepoint4" |
Home | Changes | Index | Search | Go <-- This creates the navigation links to : Home | Help | Index | etc. -->
Video Player Administration
<-- Your JavaDesktop? article goes here. Please try to include at least one sentence describing this topic. -->
<-- Also please try to include at least one sentence describing where each link goes. -->
<-- Please make sure some other page points to your new article so that others can find it! -->
<-- For more on how to write Javapedia articles please read the WritingArticles? page. -->
Summary
Adding a Video Player to your world
The Video application is loaded into Wonderland using WFS. Sample WFS property files are provided in the wonderland-modules project on java.net:
https://wonderland-modules.dev.java.net/source/browse/wonderland-modules/trunk/src/modules/apps/2d/video/
There are two example property files:
Video-movie-wlc.xml
This property file gives an example of how to load the video application in movie mode in Wonderland.
Panoramic-Video-wlc.xml
This property file shows how to configure the video application to display a panoramic view with an Axis 212 PTZ camera. The application has two modes:
In video mode, live video is displayed full-screen in the application window. In panorama mode, a static panorama mosaic is displayed and the live video view can be moved around the panorama. As the live view is moved, it updates the area of the panorama underneath. To enable panorama mode, set the 'panoramic' property to 'true' in the WFS property file.
To install the video player, copy one of these WFS property files to the WFS directory on your Wonderland server. For example, to install the movie player in the default Wonderland MPK20 world, copy Video-movie-wlc.xml to lg3d-wonderland/src/worlds/default-wfs/building-wld/ConferenceRoom-wld. Note that the property file specifies the position of the movie player on the far wall of the conference room.
Next, edit the file and change the path to the video:
<void property="source">
<string>file://movies/movie.mov</string>
</void>
Note: The file path must be accessible in the same directory on all systems where the Wonderland client will run.
On Windows systems, the path should have the following format:
<string>file://C://movies/movie.mov</string>
The size of the video window is specified by the following properties:
<void property="preferredWidth">
<double>1280</double>
</void>
<void property="preferredHeight">
<double>960</double>
</void>
These are preferred values; the video application will stretch the movie to fit the specified width and adjust the height to maintain the correct aspect ratio.
Once you've installed the file in the WFS directory, restart the Wonderland server, or use the Wonderland Manager application to reload WFS.
Deployment Tips
Things to be aware of when deploying the Video Player application.
Application Properties
The Video Player can be pre-configured by setting the following properties in the WFS property file:
| Property | Type | Description | Default | Required? |
| source | string | the URL of the video source | http://research.sun.com/projects/mc/video/MPK20-oct2007.mov | Y |
| videoClass | string | the movie player class, one of the following: org.jdesktop.lg3d.wonderland.videomodule.common.SimpleMovie org.jdesktop.lg3d.wonderland.videomodule.common.PTZCamera | none | Y |
| clientClassname | string | the movie player class, one of the following: org.jdesktop.lg3d.wonderland.videomodule.client.cell.VideoApp org.jdesktop.lg3d.wonderland.videomodule.client.cell.PTZPanoramaApp org.jdesktop.lg3d.wonderland.videomodule.client.cell.PTZCameraApp | none | Y |
| playOnLoad | boolean | whether to play the movie on entering the world | false | Y |
| synced | boolean | whether to sync playback with other clients | true | Y |
| position | double | where to start playback, in seconds | 0.0 | N |
| frameRate | double | the frame rate in frames/second | 10 | N |
| panoramic | boolean | show panorama? | false | N |
| pan | float | the initial pan angle in degrees | 0 | N |
| tilt | float | the initial tilt angle in degrees | 0 | N |
| zoom | float | the initial zoom factor (200-9740) | 200 | N |
| synced | boolean | whether to sync with other clients | true | N |
| requestThrottle | int | delay in seconds between sending camera requests (in milliseconds) | 2500 | N |
| preferredWidth | double | the preferred width in pixels | 640 | N |
| preferredHeight | double | the preferred height in pixels | 480 | N |
| pixelScale | float | scale factor used to scale the VNC window | 1.0 | N |
| decorated | boolean | whether to display a border around the application | true | N |
|
|