MUM.repository.proxy
Class SimpleProxyVideoOutProtocolUnit

java.lang.Object
  extended byMUM.repository.proxy.SimpleProxyVideoOutProtocolUnit
All Implemented Interfaces:
java.util.EventListener, IProxyOutProtocolUnit, javax.media.rtp.ReceiveStreamListener, javax.media.rtp.SessionListener

public class SimpleProxyVideoOutProtocolUnit
extends java.lang.Object
implements IProxyOutProtocolUnit

This class implements a simple proxy video protocol unit.


Field Summary
(package private)  java.io.ObjectInputStream inps
          The object input stream
(package private)  java.io.ObjectOutputStream outs
          The object output stream
 
Constructor Summary
SimpleProxyVideoOutProtocolUnit()
          Creates new SimpleproxyVideoProtocolUnitBase
 
Method Summary
 javax.media.protocol.DataSource beginTx()
          Returns the DataSource to initialize the player
 javax.media.Time getTime()
          Requests the time of the presentation, returns null in case of error, and an explanation to the proxy frame.
 void init(ComponentInfo nextComponent, java.io.PrintStream out)
          This method initializes the protocol unit and if it was successfull it returns the component info of the socket where the proxy is waiting for commands otherwise it returns a null pointer
 javax.media.rtp.SessionAddress joinTx(javax.media.rtp.SessionAddress proxySessionAddress, IMetadata presentationMetadata)
          Requests the beginning of the session and returns the session address of the server, null in case there was any problem
 boolean leaveTx()
          Requests the leaving of the session
 void setTime(javax.media.Time t)
          Requests the setting of the presentation at a certain time
 void startTx()
          Starts the transmission
 void stopTx()
          Request the stop of the streaming
 void update(javax.media.rtp.event.ReceiveStreamEvent evt)
          ReceiveStreamListener
 void update(javax.media.rtp.event.SessionEvent evt)
          SessionListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inps

java.io.ObjectInputStream inps
The object input stream


outs

java.io.ObjectOutputStream outs
The object output stream

Constructor Detail

SimpleProxyVideoOutProtocolUnit

public SimpleProxyVideoOutProtocolUnit()
Creates new SimpleproxyVideoProtocolUnitBase

Method Detail

init

public void init(ComponentInfo nextComponent,
                 java.io.PrintStream out)
          throws InitializationException
Description copied from interface: IProxyOutProtocolUnit
This method initializes the protocol unit and if it was successfull it returns the component info of the socket where the proxy is waiting for commands otherwise it returns a null pointer

Specified by:
init in interface IProxyOutProtocolUnit
Parameters:
out - an output stream for debug messages
Throws:
InitializationException

beginTx

public javax.media.protocol.DataSource beginTx()
Returns the DataSource to initialize the player

Specified by:
beginTx in interface IProxyOutProtocolUnit

stopTx

public void stopTx()
Request the stop of the streaming

Specified by:
stopTx in interface IProxyOutProtocolUnit

getTime

public javax.media.Time getTime()
Requests the time of the presentation, returns null in case of error, and an explanation to the proxy frame.

Specified by:
getTime in interface IProxyOutProtocolUnit

setTime

public void setTime(javax.media.Time t)
Requests the setting of the presentation at a certain time

Specified by:
setTime in interface IProxyOutProtocolUnit

joinTx

public javax.media.rtp.SessionAddress joinTx(javax.media.rtp.SessionAddress proxySessionAddress,
                                             IMetadata presentationMetadata)
Requests the beginning of the session and returns the session address of the server, null in case there was any problem

Specified by:
joinTx in interface IProxyOutProtocolUnit

leaveTx

public boolean leaveTx()
Requests the leaving of the session

Specified by:
leaveTx in interface IProxyOutProtocolUnit

startTx

public void startTx()
Starts the transmission

Specified by:
startTx in interface IProxyOutProtocolUnit

update

public void update(javax.media.rtp.event.ReceiveStreamEvent evt)
ReceiveStreamListener

Specified by:
update in interface javax.media.rtp.ReceiveStreamListener

update

public void update(javax.media.rtp.event.SessionEvent evt)
SessionListener.

Specified by:
update in interface javax.media.rtp.SessionListener


Copyright © 2004 Luca Foschini