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

Public Member Functions | |
Construction | |
| OpalMixerMediaStream (OpalConnection &conn, const OpalMediaFormat &mediaFormat, unsigned sessionID, bool isSource, PSafePtr< OpalMixerNode > node, bool listenOnly) | |
| ~OpalMixerMediaStream () | |
Overrides of OpalMediaStream class | |
| virtual PBoolean | Open () |
| virtual PBoolean | Close () |
| virtual PBoolean | WritePacket (RTP_DataFrame &packet) |
| virtual PBoolean | IsSynchronous () const |
| virtual PBoolean | RequiresPatchThread () const |
Member variable access | |
| PSafePtr< OpalMixerNode > | GetNode () |
Protected Attributes | |
| PSafePtr< OpalMixerNode > | m_node |
| bool | m_video |
| OpalMixerMediaStream::OpalMixerMediaStream | ( | OpalConnection & | 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::Close | ( | ) | [virtual] |
Close the media stream.
Reimplemented from OpalMediaStream.
| PSafePtr<OpalMixerNode> OpalMixerMediaStream::GetNode | ( | ) | [inline] |
Get the mixer node for this stream.
| virtual PBoolean OpalMixerMediaStream::IsSynchronous | ( | ) | const [virtual] |
Indicate if the media stream is synchronous. Returns PTrue for LID streams.
Implements OpalMediaStream.
| virtual PBoolean OpalMixerMediaStream::Open | ( | ) | [virtual] |
Open the media stream using the media format.
Reimplemented from OpalMediaStream.
| virtual PBoolean OpalMixerMediaStream::RequiresPatchThread | ( | ) | const [virtual] |
Indicate if the media stream requires a OpalMediaPatch thread (active patch). This is called on the source/sink stream and is passed the sink/source 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.
The default behaviour returns true if a sink stream. If source stream then threading is from the mixer class.
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.
PSafePtr<OpalMixerNode> OpalMixerMediaStream::m_node [protected] |
bool OpalMixerMediaStream::m_video [protected] |
1.4.7