Ignore:
Timestamp:
Mar 18, 2011 7:54:50 AM (11 years ago)
Author:
nanang
Message:

Re #1201:

  • Initial version of video stream integration into pjsua-lib.
  • Replaced audio info array in pjsua_call_info with media info array.
  • Added video media info into call dump.
  • Fixed assertion caused by pjsua_set_state(NULL) logging after pjlib shutdown.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/2.0-dev/pjsip/include/pjsua-lib/pjsua.h

    r3457 r3463  
    30533053    pj_str_t            last_status_text; 
    30543054 
    3055     /** Call media status. */ 
     3055    /** Media status of the first audio stream. */ 
    30563056    pjsua_call_media_status media_status; 
    3057  
    3058     /** Number of active audio streams in this call */ 
    3059     unsigned            audio_cnt; 
    30603057 
    30613058    /** Media direction of the first audio stream. */ 
     
    30653062    pjsua_conf_port_id  conf_slot; 
    30663063 
    3067     /** Array of audio media stream information */ 
     3064    /** Number of media streams in this call */ 
     3065    unsigned            media_cnt; 
     3066 
     3067    /** Array of media stream information */ 
    30683068    struct 
    30693069    { 
     
    30713071        unsigned                index; 
    30723072 
     3073        /** Media type. */ 
     3074        pjmedia_type            type; 
     3075 
     3076        /** Media direction. */ 
     3077        pjmedia_dir             dir; 
     3078 
    30733079        /** Call media status. */ 
    3074         pjsua_call_media_status media_status; 
    3075  
    3076         /** Media direction. */ 
    3077         pjmedia_dir             media_dir; 
    3078  
    3079         /** The conference port number for the call. */ 
    3080         pjsua_conf_port_id      conf_slot; 
    3081  
    3082     } audio[4]; 
     3080        pjsua_call_media_status status; 
     3081 
     3082        /** The specific media stream info. */ 
     3083        union { 
     3084            /** Audio stream */ 
     3085            struct { 
     3086                pjsua_conf_port_id   conf_slot; /**< The conference port 
     3087                                                     number for the call.   */ 
     3088            } audio; 
     3089 
     3090            /** Video stream */ 
     3091            struct { 
     3092                pjmedia_vid_port    *capturer;  /**< Video capturer.        */ 
     3093                pjmedia_vid_port    *renderer;  /**< Video renderer.        */ 
     3094            } video; 
     3095        } stream; 
     3096 
     3097    } media[PJMEDIA_MAX_SDP_MEDIA]; 
    30833098 
    30843099    /** Up-to-date call connected duration (zero when call is not  
Note: See TracChangeset for help on using the changeset viewer.