Ticket #489 (closed enhancement: fixed)

Opened 10 years ago

Last modified 10 years ago

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

comment:1 Changed 10 years ago by bennylp

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

Done in r1806. Thanks Norman Franke for the patch.

Note: See TracTickets for help on using tickets.