#include <media.hpp>
◆ VideoMedia()
pj::VideoMedia::VideoMedia |
( |
| ) |
|
Default Constructor.
Normally application will not create VideoMedia object directly, but it instantiates a VideoMedia derived class. This is set as public because some STL vector implementations require it.
◆ ~VideoMedia()
virtual pj::VideoMedia::~VideoMedia |
( |
| ) |
|
|
virtual |
◆ getPortInfo()
Get information about the specified conference port.
◆ getPortId()
int pj::VideoMedia::getPortId |
( |
| ) |
const |
◆ getPortInfoFromId()
Get information from specific port id.
◆ startTransmit()
Establish unidirectional media flow to sink. This media port will act as a source, and it may transmit to multiple destinations/sink. And if multiple sources are transmitting to the same sink, the media will be mixed together. Source and sink may refer to the same Media, effectively looping the media.
If bidirectional media flow is desired, application needs to call this method twice, with the second one called from the opposite source media.
- Parameters
-
sink | The destination Media. |
param | The parameter. |
◆ stopTransmit()
void pj::VideoMedia::stopTransmit |
( |
const VideoMedia & |
sink | ) |
const |
throw | ( | Error |
| ) | | |
Stop media flow to destination/sink port.
- Parameters
-
sink | The destination media. |
◆ update()
void pj::VideoMedia::update |
( |
| ) |
const |
throw | ( | Error |
| ) | | |
Update or refresh port states from video port info. Some port may change its port info in the middle of a session, for example when a video stream decoder learns that incoming video size or frame rate has changed, video conference needs to be informed to update its internal states.
◆ registerMediaPort()
This method needs to be called by descendants of this class to register the media port created to the conference bridge and Endpoint's media list.
param port The media port to be registered to the conference bridge. param pool The memory pool.
◆ unregisterMediaPort()
void pj::VideoMedia::unregisterMediaPort |
( |
| ) |
|
|
protected |
This method needs to be called by descendants of this class to remove the media port from the conference bridge and Endpoint's media list. Descendant should only call this method if it has registered the media with the previous call to registerMediaPort().
◆ id
The documentation for this class was generated from the following file: