MUM.repository.client
Class SimpleClientVideoAgentBase

java.lang.Object
  extended byMUM.repository.client.SimpleClientVideoAgentBase
All Implemented Interfaces:
javax.media.ControllerListener, java.util.EventListener, IClientStreamingAgent, ISimpleClientVideoAgent, javax.media.rtp.RemoteListener

public class SimpleClientVideoAgentBase
extends java.lang.Object
implements ISimpleClientVideoAgent

This object is an implentation of the interface ISimpleClientVideoAgent


Field Summary
protected  IClientFrame cFrame
          The client frame used by this video client agent
protected  javax.media.rtp.RTPManager rtpManager
          The RTP manager used to process the RTP streaming session
 
Constructor Summary
SimpleClientVideoAgentBase()
          Empty constructor
 
Method Summary
 void close()
          Closes the streaming, acts locally.
 void controllerUpdate(javax.media.ControllerEvent ce)
          player's Controller Listener
 void destroyStreaming()
          Destroys the streaming, acts locally.
 javax.media.Player getPlayer()
          ISimpleClientVideoAgent methods
 javax.media.rtp.RTPManager getRTPManager()
          Returns the RTPManager (defined in the JMF), null if it wasn't istantiated yet
 javax.media.Time getTime()
          Gets the time of the multimedia object, acts over the distributed system.
 boolean init(ISimpleClientVideoProtocolUnit protocol, IClientFrame clientFrame, IMetadata presentationMetadata, ComponentInfo serverInfo, java.io.PrintStream out)
          This method is blocking until the initialization is completed.
 void leave()
          Leaves the streaming, acts over the distributed system.
 void setAtTime(javax.media.Time t)
          Sets the streaming at a certain time, acts over the distributed system.
 void startStreaming()
          Starts the streaming, acts over the distributed system.
 void stopStreaming()
          Stops the streaming, acts over the distributed system.
 void update(javax.media.rtp.event.RemoteEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cFrame

protected IClientFrame cFrame
The client frame used by this video client agent


rtpManager

protected javax.media.rtp.RTPManager rtpManager
The RTP manager used to process the RTP streaming session

Constructor Detail

SimpleClientVideoAgentBase

public SimpleClientVideoAgentBase()
Empty constructor

Method Detail

init

public boolean init(ISimpleClientVideoProtocolUnit protocol,
                    IClientFrame clientFrame,
                    IMetadata presentationMetadata,
                    ComponentInfo serverInfo,
                    java.io.PrintStream out)
This method is blocking until the initialization is completed. The initialization is completed when both the client and the server are instantiated and the stream has reached the client.

Specified by:
init in interface ISimpleClientVideoAgent

controllerUpdate

public void controllerUpdate(javax.media.ControllerEvent ce)
player's Controller Listener

Specified by:
controllerUpdate in interface javax.media.ControllerListener

update

public void update(javax.media.rtp.event.RemoteEvent event)
Specified by:
update in interface javax.media.rtp.RemoteListener

getPlayer

public javax.media.Player getPlayer()
ISimpleClientVideoAgent methods

Specified by:
getPlayer in interface ISimpleClientVideoAgent

getRTPManager

public javax.media.rtp.RTPManager getRTPManager()
Description copied from interface: ISimpleClientVideoAgent
Returns the RTPManager (defined in the JMF), null if it wasn't istantiated yet

Specified by:
getRTPManager in interface ISimpleClientVideoAgent

startStreaming

public void startStreaming()
Starts the streaming, acts over the distributed system.

Specified by:
startStreaming in interface IClientStreamingAgent

stopStreaming

public void stopStreaming()
Stops the streaming, acts over the distributed system.

Specified by:
stopStreaming in interface IClientStreamingAgent

setAtTime

public void setAtTime(javax.media.Time t)
Sets the streaming at a certain time, acts over the distributed system.

Specified by:
setAtTime in interface IClientStreamingAgent

getTime

public javax.media.Time getTime()
Gets the time of the multimedia object, acts over the distributed system.

Specified by:
getTime in interface IClientStreamingAgent

leave

public void leave()
Leaves the streaming, acts over the distributed system.

Specified by:
leave in interface IClientStreamingAgent

destroyStreaming

public void destroyStreaming()
Destroys the streaming, acts locally.

Specified by:
destroyStreaming in interface IClientStreamingAgent

close

public void close()
Closes the streaming, acts locally.

Specified by:
close in interface IClientStreamingAgent


Copyright © 2004 Luca Foschini