#include <opalmixer.h>
Inheritance diagram for OpalMixerMediaStream:

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< OpalMixerNode > | GetNode () |
Protected Attributes | |
| PSafePtr< OpalMixerNode > | m_node |
| OpalMixerMediaStream::OpalMixerMediaStream | ( | OpalMixerConnection & | conn, | |
| const OpalMediaFormat & | mediaFormat, | |||
| unsigned | sessionID, | |||
| bool | isSource, | |||
| PSafePtr< OpalMixerNode > | node, | |||
| bool | listenOnly | |||
| ) |
Construct a new media stream for mixer.
| 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.
| 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.
| 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.
| sinkStream | Sink stream for this source |
Reimplemented from OpalMediaStream.
| PSafePtr<OpalMixerNode> OpalMixerMediaStream::GetNode | ( | ) | [inline] |
Get the mixer node for this stream.
PSafePtr<OpalMixerNode> OpalMixerMediaStream::m_node [protected] |
1.5.1