org.mmbase.util.media.video.videoparts
Class VideoPartDef

java.lang.Object
  |
  +--org.mmbase.util.media.video.videoparts.VideoPartDef

Deprecated. Most of the actual functionality for these functions resides in VideoUtils, which is alo the place where these (temporary) objects are created. Presumably, the function of this wrapper is to enhance or speed up the selection of a url (or to cache it), but in reality these wrapper functions only copy data, and do not add functionality that could not be performed on it's own by VideoUtils.

public class VideoPartDef
extends java.lang.Object

This is a wrapper class for the VideoPart object. It is used to provide member functions for selecting, for a wrapped videopart, the best available rawvideo (or rather, rawvideo wrapper), and then requesting the best url for that rawvideo (using the best mirror site available).

Version:
$Id: VideoPartDef.java,v 1.9 2002/11/12 16:57:58 pierre Exp $
Author:
vpro

Field Summary
 java.lang.String body
          Deprecated. should be retrieved from node reference
 java.lang.String intro
          Deprecated. should be retrieved from node reference
 int number
          Deprecated. should be retrieved from node reference
 int otype
          Deprecated. should be retrieved from node reference
 java.lang.String owner
          Deprecated. should be retrieved from node reference
 int playtime
          Deprecated. should be retrieved from node reference
 RawVideoDef rawvideo
          Deprecated. the best for the user in speed/channels.
 java.util.Vector rawvideos
          Deprecated. all the rawvideos connected to this node
 int source
          Deprecated. should be retrieved from node reference
 java.lang.String starttime
          Deprecated. Videopart start tijd
 java.lang.String stoptime
          Deprecated. Videopart eind tijd
 int storage
          Deprecated. should be retrieved from node reference
 java.lang.String subtitle
          Deprecated. should be retrieved from node reference
 java.lang.String title
          Deprecated. should be retrieved from node reference
 
Constructor Summary
VideoPartDef()
          Deprecated.  
VideoPartDef(MMBase mmbase, int number)
          Deprecated. Creates the wrapper and initializes it by copying the node's fields and values.
VideoPartDef(MMBase mmbase, MMObjectNode node)
          Deprecated. Creates the wrapper and initializes it by copying the node's fields and values.
 
Method Summary
 boolean getRawVideos(MMBase mmbase, int wantedspeed, int wantedchannels, boolean sorted)
          Deprecated. Attempts to selects the best available rawvideo object for the given speed and channels The result of this method is deciding for the outcome of the getRealVideoUrl(org.mmbase.util.scanpage) call.
 java.lang.String getRealVideoUrl(scanpage sp)
          Deprecated. Gets the Realvideo url and ads the 'title','start' and 'end' name and values parameters.
 void getStartStop(MMBase mmbase)
          Deprecated. Determine start and stop time values of the given object.
 boolean setparameters(MMBase mmbase, int number)
          Deprecated. Initializes the wrapper by copying the node's fields and values.
 boolean setparameters(MMBase mmbase, MMObjectNode node)
          Deprecated. Initializes the wrapper by copying the node's fields and values.
 java.lang.String toString()
          Deprecated. Returns a string representation of this object, for debugging purposes.
 java.lang.String toText()
          Deprecated. Returns a string representation of this object, for debugging purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

number

public int number
Deprecated. should be retrieved from node reference

Videopart object number

otype

public int otype
Deprecated. should be retrieved from node reference

Videopart object type

owner

public java.lang.String owner
Deprecated. should be retrieved from node reference

Videopart object owner

title

public java.lang.String title
Deprecated. should be retrieved from node reference

Videopart title

subtitle

public java.lang.String subtitle
Deprecated. should be retrieved from node reference

Videopart subtitle

source

public int source
Deprecated. should be retrieved from node reference

Videopart title

playtime

public int playtime
Deprecated. should be retrieved from node reference

Videopart speel duur

intro

public java.lang.String intro
Deprecated. should be retrieved from node reference

Videopart intro tekst

body

public java.lang.String body
Deprecated. should be retrieved from node reference

Videopart body tekst

storage

public int storage
Deprecated. should be retrieved from node reference

Videopart mono of stereo

starttime

public java.lang.String starttime
Deprecated. 
Videopart start tijd

stoptime

public java.lang.String stoptime
Deprecated. 
Videopart eind tijd

rawvideos

public java.util.Vector rawvideos
Deprecated. 
all the rawvideos connected to this node

rawvideo

public RawVideoDef rawvideo
Deprecated. 
the best for the user in speed/channels.
Constructor Detail

VideoPartDef

public VideoPartDef()
Deprecated. 

VideoPartDef

public VideoPartDef(MMBase mmbase,
                    int number)
Deprecated. 
Creates the wrapper and initializes it by copying the node's fields and values.
Parameters:
mmbase - The mmbase to use (a bit strange as a parameter, as you are already passing a node)
number - The number of the node to wrap

VideoPartDef

public VideoPartDef(MMBase mmbase,
                    MMObjectNode node)
Deprecated. 
Creates the wrapper and initializes it by copying the node's fields and values.
Parameters:
mmbase - The mmbase to use (a bit strange as a parameter, as you are already passing a node)
node - The node to wrap
Method Detail

setparameters

public boolean setparameters(MMBase mmbase,
                             int number)
Deprecated. 
Initializes the wrapper by copying the node's fields and values.
Parameters:
mmbase - The mmbase to use (a bit strange as a parameter, as you are already passing a node)
number - The number of the node to wrap

setparameters

public boolean setparameters(MMBase mmbase,
                             MMObjectNode node)
Deprecated. 
Initializes the wrapper by copying the node's fields and values.
Parameters:
mmbase - The mmbase to use (a bit strange as a parameter, as you are already passing a node)
node - The node to wrap

getRawVideos

public boolean getRawVideos(MMBase mmbase,
                            int wantedspeed,
                            int wantedchannels,
                            boolean sorted)
Deprecated. 
Attempts to selects the best available rawvideo object for the given speed and channels The result of this method is deciding for the outcome of the getRealVideoUrl(org.mmbase.util.scanpage) call.
Parameters:
mmbase - The mmbase to use (a bit strange as a parameter, as you are already wrapping a node)
wantedspeed - the desired speed of the video
wantedchannels - the desired nr of channels for the video
sorted - whether to sort the available videos first (?)
Returns:
true if a raw video could be found. If true, the rawvideo is remembered by the object, for use by a subsequent call to getRealVideoUrl(org.mmbase.util.scanpage)

getStartStop

public void getStartStop(MMBase mmbase)
Deprecated. 
Determine start and stop time values of the given object. The values are retrieved from the properties builder (?) and stored in the wrapper object.
Parameters:
mmbase - The mmbase to use (a bit strange as a parameter, as you are already wrapping a node)

getRealVideoUrl

public java.lang.String getRealVideoUrl(scanpage sp)
Deprecated. 
Gets the Realvideo url and ads the 'title','start' and 'end' name and values parameters. The result of this method is dependent on the outcome of the previous getRawVideos(org.mmbase.module.core.MMBase, int, int, boolean) call, which makes it unsafe for use in a multithreaded environment.
Parameters:
sp - the scanpage
Returns:
a String with the url.

toText

public java.lang.String toText()
Deprecated. 
Returns a string representation of this object, for debugging purposes.

toString

public java.lang.String toString()
Deprecated. 
Returns a string representation of this object, for debugging purposes.
Overrides:
toString in class java.lang.Object


MMBase build 1.6.5.20030923