OpalMixerMediaStream Class Reference

#include <opalmixer.h>

Inheritance diagram for OpalMixerMediaStream:

OpalMediaStream List of all members.

Public Member Functions

Overrides of OpalMediaStream class
virtual PBoolean Open ()
virtual PBoolean Close ()
virtual PBoolean WritePacket (RTP_DataFrame &packet)
virtual PBoolean IsSynchronous () const
virtual PBoolean RequiresPatchThread (OpalMediaStream *sinkStream) const
Member variable access
PSafePtr< OpalMixerNodeGetNode ()

Protected Attributes

PSafePtr< OpalMixerNodem_node

Detailed Description

Mixer media stream. This class represents a media stream that will send/get media from a mixer.


Constructor & Destructor Documentation

OpalMixerMediaStream::OpalMixerMediaStream ( OpalMixerConnection conn,
const OpalMediaFormat mediaFormat,
unsigned  sessionID,
bool  isSource,
PSafePtr< OpalMixerNode node,
bool  listenOnly 
)

Construct a new media stream for mixer.

Parameters:
conn  Connection for media stream
mediaFormat  Media format for stream
sessionID  Session number for stream
isSource  Is a source stream
node  Mixer node to send data
listenOnly  Effectively initial pause state

OpalMixerMediaStream::~OpalMixerMediaStream (  ) 

Destroy stream.

OpalMixerMediaStream::OpalMixerMediaStream ( OpalMixerConnection conn,
const OpalMediaFormat mediaFormat,
unsigned  sessionID,
bool  isSource,
PSafePtr< OpalMixerNode node,
bool  listenOnly 
)

Construct a new media stream for mixer.

Parameters:
conn  Connection for media stream
mediaFormat  Media format for stream
sessionID  Session number for stream
isSource  Is a source stream
node  Mixer node to send data
listenOnly  Effectively initial pause state

OpalMixerMediaStream::~OpalMixerMediaStream (  ) 

Destroy stream.


Member Function Documentation

virtual PBoolean OpalMixerMediaStream::Open (  )  [virtual]

Open the media stream using the media format.

Reimplemented from OpalMediaStream.

virtual PBoolean OpalMixerMediaStream::Close (  )  [virtual]

Close the media stream.

Reimplemented from OpalMediaStream.

virtual PBoolean OpalMixerMediaStream::WritePacket ( RTP_DataFrame packet  )  [virtual]

Write an RTP frame of data to the sink media stream. The default behaviour simply calls WriteData() on the data portion of the RTP_DataFrame and and sets the internal timestamp and marker from the member variables of the media stream class.

Reimplemented from OpalMediaStream.

virtual PBoolean OpalMixerMediaStream::IsSynchronous (  )  const [virtual]

Indicate if the media stream is synchronous. Returns PTrue for LID streams.

Implements OpalMediaStream.

virtual PBoolean OpalMixerMediaStream::RequiresPatchThread ( OpalMediaStream sinkStream  )  const [virtual]

Indicate if the media stream requires a OpalMediaPatch thread (active patch). This is called on the source stream and is passed the sink stream that the patch will initially be using. The function could conditionally require the patch thread to execute a thread reading and writing data, or prevent it from doing so as it can do so in hardware in some way, e.g. if both streams where on the same OpalLineInterfaceDevice.

The default behaviour simply returns true.

Parameters:
sinkStream  Sink stream for this source

Reimplemented from OpalMediaStream.

PSafePtr<OpalMixerNode> OpalMixerMediaStream::GetNode (  )  [inline]

Get the mixer node for this stream.


Member Data Documentation

PSafePtr<OpalMixerNode> OpalMixerMediaStream::m_node [protected]


The documentation for this class was generated from the following file:
Generated on Mon Aug 3 20:50:54 2009 for OPAL by  doxygen 1.5.1