Opened 17 years ago

Closed 17 years ago

#489 closed enhancement (fixed)

New PJSUA callbacks to notify application when media stream is created and destroyed

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-0.9.0
Component: pjsua-lib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

New callbacks:

  • on_stream_created(): this callback is called to notify application when stream is created and about to be registered to conference bridge. Application may use this callback to add media processing ports to the stream.
  • on_stream_destroyed(): this callback is called to notify application when stream is about to be destroyed. If application created media processing ports to the stream, it may use this callback to clean-up resources associated with the media stream. Also if application manages it's own media (see [FAQ#pjsua-lib-perf this FAQ entry]), application will need to use this callback to signal media processing that stream is about to be destroyed.

Thanks Norman Franke and Truong Thanh Quang for the suggestions.

Change History (1)

comment:1 Changed 17 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

Done in r1806. Thanks Norman Franke for the patch.

Note: See TracTickets for help on using tickets.