Start Broadcast APIs
9.
START BROADCAST APIS
QCAP_CREATE_BROADCAST_RTSP_SERVER( 0, …, &pServer, … );
CAP_SET_VIDEO_BROADCAST_SERVER_PROPERTY( pServer, …, dwFlags );
QCAP_SET_AUDIO_BROADCAST_SERVER_PROPERTY( pServer, … );
QCAP_START_BROADCAST_SERVER( pServer );
Note
For compression data user, the QCAP_BROADCAST_FLAG_ENCODE flag should be cleared
from the parameter, dwFlags, in QCAP_START_SHARE_RECORD API to disable the software
encoder’s resource.
10.
SET BROADCAST DATA APIS
QRETURN on_video_preview_callback( …, BYTE * pFrameBuffer, ULONG nFrameBufferLen, … )
{
…
if( g_n_broadcast_server_state > 0 ) {
QCAP_SET_VIDEO_BROADCAST_SERVER_UNCOMPRESSION_BUFFER( …, pFrameBuffer, nFrameBufferLen,
… );
}
…
}
QRETURN on_audio_preview_callback( …, BYTE * pFrameBuffer, ULONG nFrameBufferLen, … )
{
…
if( g_n_broadcast_server_state > 0 ) {
QCAP_SET_AUDIO_BROADCAST_SERVER_UNCOMPRESSION_BUFFER( …, pFrameBuffer, nFrameBufferLen,
… );
}
…
}
11.
STOP BROADCAST APIS
QCAP_STOP_BROADCAST_SERVE
R
( pServer );