Objective Systems, Inc.  

Media plugin support functions


Functions

EXTERN int ooLoadSndRTPPlugin (char *name)
 Loads the media plugin into the process space.
EXTERN int ooReleaseSndRTPPlugin ()
 Unloads the plug-in from process space.
EXTERN int ooCreateTransmitRTPChannel (char *destip, int port)
 Creates a transmit RTP channel.
EXTERN int ooCloseTransmitRTPChannel ()
 Closes a transmit RTP channel.
EXTERN int ooCreateReceiveRTPChannel (char *localip, int localport)
 Creates a receive RTP channel.
EXTERN int ooCloseReceiveRTPChannel ()
 Closes a receive RTP channel.
EXTERN int ooStartTransmitWaveFile (char *filename)
 Start transmitting a audio file.
EXTERN int ooStopTransmitWaveFile ()
 Stop transmission of a audio file.
EXTERN int ooStartTransmitMic ()
 Starts capturing audio data from mic and transmits it as rtp stream.
EXTERN int ooStopTransmitMic ()
 Stop transmission of mic audio data.
EXTERN int ooStartReceiveAudioAndPlayback ()
 Starts receiving rtp stream data and play it on the speakers.
EXTERN int ooStopReceiveAudioAndPlayback ()
 Stop receiving rtp stream data.This calls corresponding interface function of the plug-in library.
EXTERN int ooStartReceiveAudioAndRecord ()
 Not suuported currently.
EXTERN int ooStopReceiveAudioAndRecord ()
 Not supported currently.
EXTERN int ooSetLocalRTPAndRTCPAddrs ()
 Set local RTP and RTCP addresses for the session.
EXTERN int ooRTPShutDown ()
 Closes transmit and receive RTP channels, if open.

Variables

void * media

Function Documentation

EXTERN int ooLoadSndRTPPlugin ( char *  name  ) 

Loads the media plugin into the process space.

Parameters:
name Name of the media plug-in library.
Returns:
Completion status - 0 on success, -1 on failure

EXTERN int ooReleaseSndRTPPlugin (  ) 

Unloads the plug-in from process space.

Returns:
Completion status - 0 on success, -1 on failure

EXTERN int ooCreateTransmitRTPChannel ( char *  destip,
int  port 
)

Creates a transmit RTP channel.

Basically calls the corresponding function of the plug-in library.

Parameters:
destip IP address of the destination endpoint.
port Destination port number.
Returns:
Completion status - 0 on success, -1 on failure

EXTERN int ooCloseTransmitRTPChannel (  ) 

Closes a transmit RTP channel.

Basically calls the corresponding function of the plug-in library.

Returns:
Completion status - 0 on success, -1 on failure

EXTERN int ooCreateReceiveRTPChannel ( char *  localip,
int  localport 
)

Creates a receive RTP channel.

Basically calls the corresponding function of the plug-in library.

Parameters:
localip IP address of the endpoint where RTP data will be received.
localport Port number of the local endpoint
Returns:
Completion status - 0 on success, -1 on failure

EXTERN int ooCloseReceiveRTPChannel (  ) 

Closes a receive RTP channel.

Basically calls the corresponding function of the plug-in library.

Returns:
Completion status - 0 on success, -1 on failure

EXTERN int ooStartTransmitWaveFile ( char *  filename  ) 

Start transmitting a audio file.

This calls corresponding function of the plug-in library.

Parameters:
filename Name of the file to be played.
Returns:
Completion status - 0 on success, -1 on failure

EXTERN int ooStopTransmitWaveFile (  ) 

Stop transmission of a audio file.

This calls corresponding function of the plug-in library.

Returns:
Completion status - 0 on success, -1 on failure

EXTERN int ooStartTransmitMic (  ) 

Starts capturing audio data from mic and transmits it as rtp stream.

This calls corresponding interface function of the plug-in library.

Returns:
Completion status - 0 on success, -1 on failure

EXTERN int ooStopTransmitMic (  ) 

Stop transmission of mic audio data.

This calls corresponding interface function of the plug-in library.

Returns:
Completion status - 0 on success, -1 on failure

EXTERN int ooStartReceiveAudioAndPlayback (  ) 

Starts receiving rtp stream data and play it on the speakers.

This calls corresponding interface function of the plug-in library.

Returns:
Completion status - 0 on success, -1 on failure

EXTERN int ooStopReceiveAudioAndPlayback (  ) 

Stop receiving rtp stream data.This calls corresponding interface function of the plug-in library.

Returns:
Completion status - 0 on success, -1 on failure

EXTERN int ooSetLocalRTPAndRTCPAddrs (  ) 

Set local RTP and RTCP addresses for the session.

This function gets next available ports for RTP and RTCP communication.

Returns:
Completion status - 0 on success, -1 on failure

EXTERN int ooRTPShutDown (  ) 

Closes transmit and receive RTP channels, if open.

This calls corresponding interface functions to close the channels.

Returns:
Completion status - 0 on success, -1 on failure


This file was last modified on 28 May 2010.
Objective Open H.323 Stack, 0.9.1