deepstream-services-library icon indicating copy to clipboard operation
deepstream-services-library copied to clipboard

Implement new "dsl_player_rtsp_image_new" and "dsl_player_rtsp_video_new" constructors

Open rjhowell44 opened this issue 3 years ago • 0 comments

Constructor for a new class of Player Type that combines an Image Source with an RTSP Sink. Playing the player will stream the image using the specified host and port addresses.

The Image Player can be played by the client API, in an image/video capture-complete callbacks, or added to the ODE Capture Actions, Record Taps, and Record Sinks directly to be played automatically on capture completion.

/**
 * @brief Creates a new, uniquely named Video RTSP Player
 * @param[in] name unique name for the new Player
 * @param[in] file_path absolute or relative path to the file to stream
 * @param[in] host address for the RTSP Server
 * @param[in] port UDP port number for the RTSP Server
 * @param[in] port RTSP port number for the RTSP Server
 * @param[in] codec one of DSL_CODEC_H264, DSL_CODEC_H265
 * @param[in] repeat_enabled set to true to auto-repeat on EOS
 * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_PLAYER_RESULT
 */
DslReturnType dsl_player_rtsp_video_new(const wchar_t* name,  const wchar_t* file_path, 
   const wchar_t* host, uint udpPort, uint rtmpPort, uint codec, boolean repeat_eanbled);

/**
 * @brief Creates a new, uniquely named Image RTSP Player
 * @param[in] name unique name for the new Player
 * @param[in] file_path absolute or relative path to the file to stream
 * @param[in] host address for the RTSP Server
 * @param[in] port UDP port number for the RTSP Server
 * @param[in] port RTSP port number for the RTSP Server
 * @param[in] codec one of DSL_CODEC_H264, DSL_CODEC_H265
 * @param[in] timeout will generate an EOS event on timeout in units of seconds, 0 = no timeout.
 * @return DSL_RESULT_SUCCESS on success, DSL_RESULT_PLAYER_RESULT
 */
DslReturnType dsl_player_rtsp_image_new(const wchar_t* name,  const wchar_t* file_path, 
   const wchar_t* host, uint udpPort, uint rtmpPort, uint codec, uint timeout);

rjhowell44 avatar May 03 '21 17:05 rjhowell44