Changes between Version 40 and Version 41 of Video_Users_Guide


Ignore:
Timestamp:
Mar 20, 2012 7:03:06 AM (8 years ago)
Author:
ming
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Video_Users_Guide

    v40 v41  
    292292Application retrieves {{{pjsua_vid_win_info}}} with {{{pjsua_vid_win_get_info()}}}. The one window property that most applications will be interested with is the native window handle of the video. The native video handle is contained by {{{pjmedia_vid_dev_hwnd}}} structure inside {{{pjsua_vid_win_info}}}. Application can use the native handle to embed the video window into application's GUI structure. Alternatively, the library also provides few simple and most commonly used API to operate the window, such as {{{pjsua_vid_win_set_show()}}}, {{{pjsua_vid_win_set_size()}}}, etc., however the availability of these APIs are not guaranteed since it depends on the underlying backend device. 
    293293 
     294=== Modifying video codec parameters (video size, fps, bps) === 
     295 
     296The default video size setting for outgoing video is specified in the encoded format field in the codec param, i.e: {{{pjmedia_vid_codec_param.enc_fmt.vid.size}}}. For H.264, its profile level limits the video size, so the remote H.264 SDP fmtp "profile-level-id" should allow this size. If the remote endpoint is also PJSIP, the SDP fmtp, e.g: "profile-level-id", can be set in {{{pjmedia_vid_codec_param.dec_fmtp}}}. 
     297 
     298Here is a sample code to configure profile-level-id: 
     299 {{{ 
     300 ... 
     301 param.setting.dec_fmtp.param[N].name = pj_str("profile-level-id"); 
     302 param.setting.dec_fmtp.param[N].val  = pj_str("...."); 
     303 ... 
     304 pjsua_vid_codec_set_param(&codec_id, &param); 
     305 }}} 
     306 
     307The outgoing frame-rate and bps setting can be set the same way as video size setting above, e.g: for 10 fps, just set 
     308{{{pjmedia_vid_codec_param.enc_fmt.vid.fps}}} to {10, 1} then call {{{pjsua_vid_codec_set_param()}}}. 
    294309 
    295310