Changes between Version 2 and Version 3 of Ticket #1340


Ignore:
Timestamp:
Sep 19, 2011 8:25:27 AM (13 years ago)
Author:
bennylp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1340 – Description

    v2 v3  
    11On some platforms, e.g: iOS, the capture engine can also generate preview. Such capability should be accommodated by PJMEDIA video device framework. Also PJSUA should not create "software" renderer when native preview is supported and preferred. 
     2 
     3'''1. PJSUA-LIB API''' 
     4 
     5Application uses video preview API as usual, such as {{{pjsua_vid_preview_start()}}}, {{{pjsua_vid_preview_stop()}}}, and {{{pjsua_vid_preview_get_win()}}}. From the window ID, application queries the window info to check whether the specified window is a native window. 
     6 
     7API: 
     8 1. {{{pjsua_media_config.vid_preview_enable_native}}}: specify whether PJSUA-LIB should use native preview when it's available on the device. Default is yes. 
     9 1. {{{pjsua_vid_win_info.is_native}}} field specifies whether the window is a native window, i.e. not created by our software renderer. In this case, only "hwnd"field will be valid, and all window operations such as move, set show, etc. will not work on this window 
     10 
     11 
     12'''2. PJMEDIA-VIDEODEV API''' 
     13 
     14New capability {{{PJMEDIA_VID_DEV_CAP_INPUT_PREVIEW}}} has been added. When a device supports this capability, it must also support  {{{PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW}}} capability.