BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJSIP Reference

pj::OnStreamCreatedParam Struct Reference

#include <call.hpp>

Data Fields

MediaStream stream
 
unsigned streamIdx
 
bool destroyPort
 
MediaPort pPort
 

Detailed Description

This structure contains parameters for Call::onStreamCreated() callback.

Field Documentation

◆ stream

MediaStream pj::OnStreamCreatedParam::stream

Audio media stream, read-only.

◆ streamIdx

unsigned pj::OnStreamCreatedParam::streamIdx

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

◆ destroyPort

bool pj::OnStreamCreatedParam::destroyPort

Specify if PJSUA2 should take ownership of the port returned in the pPort 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

◆ pPort

MediaPort pj::OnStreamCreatedParam::pPort

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.