| 2 | |
| 3 | '''1. PJSUA-LIB API''' |
| 4 | |
| 5 | Application 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 | |
| 7 | API: |
| 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 | |
| 14 | New 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. |