java.net: Wiki

The Source for Java Technology Collaboration


 <<O>>  Difference Topic ProjectWonderlandVideoPlayerAdmin (6 - 27 Jan 2009 - Main.nsimpson)
Line: 1 to 1
 
META TOPICPARENT name="WonderlandReleasepoint4"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 67 to 67
  This property file configures the application as a Movie Player.

  1. Video-webcam-wlc.xml
    Configures the application as a Webcam Viewer.

Changed:
<
<
  1. Panoramic-video-wlc.xml
>
>
  1. 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.


 <<O>>  Difference Topic ProjectWonderlandVideoPlayerAdmin (5 - 30 Jul 2008 - Main.nsimpson)
Line: 1 to 1
 
META TOPICPARENT name="WonderlandReleasepoint4"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 93 to 93
 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.
Changed:
<
<
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:
 
Changed:
<
<

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.

 
Changed:
<
<
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

 
Added:
>
>
  • 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

Changed:
<
<
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.
 
Property Type Description Default Required?
Changed:
<
<
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
>
>
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
Changed:
<
<
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
Changed:
<
<
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
Changed:
<
<
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
Changed:
<
<
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

 <<O>>  Difference Topic ProjectWonderlandVideoPlayerAdmin (4 - 18 Jul 2008 - Main.nsimpson)
Line: 1 to 1
 
META TOPICPARENT name="WonderlandReleasepoint4"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 105 to 105
 
Property Type Description Default Required?
Changed:
<
<
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
Changed:
<
<
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
Changed:
<
<
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
Changed:
<
<
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

 <<O>>  Difference Topic ProjectWonderlandVideoPlayerAdmin (3 - 11 Jul 2008 - Main.nsimpson)
Line: 1 to 1
 
META TOPICPARENT name="WonderlandReleasepoint4"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 10 to 10
 
<-- 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. -->
Added:
>
>

Topics

 

Summary

Added:
>
>
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.

 
Changed:
<
<
>
>

Figure 1: Movie Player
 
Changed:
<
<

Adding a Video Player to your world

>
>
Webcam Viewer
 
Changed:
<
<
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.
 
Changed:
<
<
https://wonderland-modules.dev.java.net/source/browse/wonderland-modules/trunk/src/modules/apps/2d/video/
>
>

Figure 2: Webcam Viewer

Panorama Viewer
 
Changed:
<
<
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.
 
Changed:
<
<
  • 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.
 
Changed:
<
<
The application has three modes:
>
>

Figure 3: Panorama Viewer
 
Changed:
<
<
  • video mode
  • webcam mode
  • panorama mode
>
>

Installing the Video Player

 
Changed:
<
<
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:
 
Changed:
<
<
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:

  1. Video-movie-wlc.xml
    This property file configures the application as a Movie Player.

  2. Video-webcam-wlc.xml
    Configures the application as a Webcam Viewer.

  3. 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:
Line: 63 to 97
 

Deployment Tips

Changed:
<
<
  1. 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:
  2. 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


 <<O>>  Difference Topic ProjectWonderlandVideoPlayerAdmin (2 - 03 Jul 2008 - Main.nsimpson)
Line: 1 to 1
 
META TOPICPARENT name="WonderlandReleasepoint4"
Home | Changes | Index | Search | Go
<-- This creates the navigation links to :  Home | Help | Index | etc.  -->
Line: 23 to 23
 There are two example property files:
Changed:
<
<
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.
 
Changed:
<
<
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:
 
  • video mode
Added:
>
>
  • webcam mode
 
  • panorama mode

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.

Changed:
<
<
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">                     
Changed:
<
<
file://movies/movie.mov
>
>
http://research.sun.com/projects/mc/video/MPK20-oct2007.mov
 
Deleted:
<
<
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:
Line: 75 to 63
 

Deployment Tips

Changed:
<
<
Things to be aware of when deploying the Video Player application.
>
>
  1. 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:
  2. The webcam and panorama features currently support a specific type of Axis webcam, the Axis 212 PTZ:
 

Application Properties

Line: 84 to 77
 
Property Type Description Default Required?
source string the URL of the video source http://research.sun.com/projects/mc/video/MPK20-oct2007.mov Y
Changed:
<
<
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

 <<O>>  Difference Topic ProjectWonderlandVideoPlayerAdmin (1 - 03 Jul 2008 - Main.nsimpson)
Line: 1 to 1
Added:
>
>
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:

  • video mode
  • panorama mode

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

Topic ProjectWonderlandVideoPlayerAdmin . { View | Diffs r6 < r5 < r4 < r3 | More }
 XML java.net RSS