Opened 16 years ago

Closed 16 years ago

#610 closed enhancement (fixed)

Added sample to create a media transport adapter, similar to how SRTP media transport works

Reported by: bennylp Owned by: nanang
Priority: normal Milestone: release-1.0-rc2
Component: pjmedia Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

Add a sample media transport in PJMEDIA on how to create a simple transport adapter. A transport adapter is an object to be placed between the stream and the actual transport, and this is how the SRTP media transport is implemented.

Change History (1)

comment:1 Changed 16 years ago by bennylp

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

Done in r2262:

  • Added pjmedia/transport_adapter_sample.[hc]
  • Added PJMEDIA_TRANSPORT_TYPE_USER in pjmedia_transport_type enumeration
  • Implement pjsua_media_transports_attach() in PJSUA-LIB:
    • add med_tp_auto_del member in pjsua_call
    • modify existing code to check med_tp_auto_del field before destroying the media transport.
  • Added a sample code in pjsua_app.c to instantiate the sample transport adapter and register them to PJSUA-LIB
Note: See TracTickets for help on using tickets.