1 | | This can be useful in situations where video camera access is exclusive, so we delay opening the video capture until it's really needed. |
| 1 | This can be useful in situations where video camera access is exclusive, so when we don't need it, the video camera can still be used by the user or other apps. |
| 2 | |
| 3 | This ticket will include: |
| 4 | - Avoid creating the video capture if the setting vid_out_auto_transmit is false |
| 5 | - Decrease the video capture reference count when the outgoing transmission is disabled (via the API pjsua_call_set_vid_strm() with op PJSUA_CALL_VID_STRM_STOP_TRANSMIT). When the reference count reaches zero (i.e. no other calls nor the preview window is using it), then the video capture will be released. |