BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJSIP Reference

pjsua_on_stream_created_param Struct Reference

#include <pjsua.h>

Data Fields

pjmedia_stream * stream
 
unsigned stream_idx
 
pj_bool_t destroy_port
 
pjmedia_portport
 

Detailed Description

Structure to be passed to on stream created callback. See on_stream_created2().

Field Documentation

◆ stream

pjmedia_stream* pjsua_on_stream_created_param::stream

The audio media stream, read-only.

◆ stream_idx

unsigned pjsua_on_stream_created_param::stream_idx

Stream index in the audio media session, read-only.

◆ destroy_port

pj_bool_t pjsua_on_stream_created_param::destroy_port

Specify if PJSUA should take ownership of the port returned in the port parameter below. If set to PJ_TRUE, pjmedia_port_destroy() will be called on the port when it is no longer needed.

Default: PJ_FALSE

◆ port

pjmedia_port* pjsua_on_stream_created_param::port

On input, it specifies the audio media port of the stream. Application may modify this pointer to point to different media port to be registered to the conference bridge.


The documentation for this struct was generated from the following file:

 


PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.