sipxmediaadapterlib  Version 3.3
Protected Attributes | List of all members
MiRtpStreamActivityNotf Class Reference

#include <MiRtpStreamActivityNotf.h>

Inheritance diagram for MiRtpStreamActivityNotf:
Inheritance graph
[legend]
Collaboration diagram for MiRtpStreamActivityNotf:
Collaboration graph
[legend]

Public Member Functions

Manipulators
MiRtpStreamActivityNotfoperator= (const MiRtpStreamActivityNotf &rhs)
 Assignment operator. More...
 
Accessors
StreamState getState () const
 Get the stream state. More...
 
unsigned getSsrc () const
 Get the stream SSRC. More...
 
unsigned getAddress () const
 Get IP address of the stream source/destination. More...
 
int getPort () const
 Get port of the stream source/destination. More...
 
- Public Member Functions inherited from MiNotification
 MiNotification (NotfType msgType, const UtlString &sourceId, int connectionId=INVALID_CONNECTION_ID, int streamId=-1)
 Constructor. More...
 
 MiNotification (const MiNotification &rNotf)
 Copy constructor. More...
 
virtual ~MiNotification ()
 Destructor. More...
 
MiNotificationoperator= (const MiNotification &rhs)
 Assignment operator. More...
 
void setSourceId (const UtlString &sourceId)
 Set the unique source identifier. More...
 
void setConnectionId (int connId)
 Set the connection ID that this notification is associated with. More...
 
void setStreamId (int streamId)
 Set the stream number inside the connection this notification is associated with. More...
 
NotfType getType (void) const
 Returns the type of the notification message. More...
 
UtlString getSourceId (void) const
 Get the unique source identifier. More...
 
int getConnectionId () const
 Get the connection ID that this message is associated with. More...
 
int getStreamId () const
 Get the stream number inside the connection this notification is associated with. More...
 

Protected Attributes

StreamState mState
 Stream state to be reported. More...
 
unsigned mSsrc
 SSRC of the stream. More...
 
unsigned mAddress
 IP of the stream source/destination. More...
 
int mPort
 Port of the stream source/destination. More...
 

Creators

enum  StreamState { STREAM_START, STREAM_STOP, STREAM_CHANGE }
 
 MiRtpStreamActivityNotf (const UtlString &namedResOriginator, StreamState state, unsigned ssrc, unsigned address, int port, int connId=-1, int streamId=-1)
 Constructor. More...
 
 MiRtpStreamActivityNotf (const MiRtpStreamActivityNotf &rMsg)
 Copy constructor. More...
 
virtual OsMsg * createCopy () const
 Create a copy of this msg object (which may be of a derived type) More...
 
virtual ~MiRtpStreamActivityNotf ()
 Destructor. More...
 

Additional Inherited Members

- Public Types inherited from MiNotification
enum  NotfType {
  MI_NOTF_MESSAGE_INVALID, MI_NOTF_PLAY_STARTED, MI_NOTF_PLAY_PAUSED, MI_NOTF_PLAY_RESUMED,
  MI_NOTF_PLAY_STOPPED, MI_NOTF_PLAY_FINISHED, MI_NOTF_PLAY_ERROR, MI_NOTF_PROGRESS,
  MI_NOTF_RECORD_STARTED, MI_NOTF_RECORD_PAUSED, MI_NOTF_RECORD_RESUMED, MI_NOTF_RECORD_STOPPED,
  MI_NOTF_RECORD_FINISHED, MI_NOTF_RECORD_ERROR, MI_NOTF_DTMF_RECEIVED, MI_NOTF_DELAY_SPEECH_STARTED,
  MI_NOTF_DELAY_NO_DELAY, MI_NOTF_DELAY_QUIESCENCE, MI_NOTF_RX_STREAM_ACTIVITY, MI_NOTF_ENERGY_LEVEL,
  MI_NOTF_VOICE_STARTED, MI_NOTF_VOICE_STOPPED, MI_NOTF_H264_SPS, MI_NOTF_H264_PPS,
  MI_NOTF_TONE_DETECT_ON, MI_NOTF_TONE_DETECT_OFF, MI_NOTF_RECORDER_CIRCULARBUFFER_WATERMARK_REACHED, MI_NOTF_INPUT_DEVICE_NOT_PRESENT,
  MI_NOTF_OUTPUT_DEVICE_NOT_PRESENT, MI_NOTF_INPUT_DEVICE_NOW_PRESENT, MI_NOTF_OUTPUT_DEVICE_NOW_PRESENT
}
 Media notification message types. More...
 
- Static Public Attributes inherited from MiNotification
static const int INVALID_CONNECTION_ID = -1
 Connection ID that indicates invalid connection or no connection. More...
 

Detailed Description

Notification used to communicate RTP stream activity.

Member Enumeration Documentation

Enumerator
STREAM_START 

Stream have been started.

STREAM_STOP 

Stream have been stopped.

STREAM_CHANGE 

Stream attributes have been changed.

Constructor & Destructor Documentation

MiRtpStreamActivityNotf ( const UtlString &  namedResOriginator,
StreamState  state,
unsigned  ssrc,
unsigned  address,
int  port,
int  connId = -1,
int  streamId = -1 
)

Constructor.

Copy constructor.

Destructor.

Member Function Documentation

OsMsg * createCopy ( void  ) const
virtual

Create a copy of this msg object (which may be of a derived type)

Reimplemented from MiNotification.

MiRtpStreamActivityNotf & operator= ( const MiRtpStreamActivityNotf rhs)

Assignment operator.

Get the stream state.

unsigned getSsrc ( ) const

Get the stream SSRC.

unsigned getAddress ( ) const

Get IP address of the stream source/destination.

int getPort ( ) const

Get port of the stream source/destination.

Member Data Documentation

StreamState mState
protected

Stream state to be reported.

unsigned mSsrc
protected

SSRC of the stream.

unsigned mAddress
protected

IP of the stream source/destination.

int mPort
protected

Port of the stream source/destination.