libvlc.dll / libvlccore.dll 是否支持打开和读取超时?

Does libvlc.dll / libvlccore.dll support open and read timeouts?

我知道 VLC 在内部结合了 ffmpeg 以及其他媒体库,并且 ffmpeg 公开了两个回调,在使用 IP/network 媒体流时接收调用:打开超时和读取超时。 open timeout是与a建立连接的时间限制URL,read timeout是读取下一个网络数据包的时间限制。

ibvlc.dll/libvlccore.dll是否公开或支持类似的东西?

您要阅读哪种类型的信息流?您可以使用 libvlc 中的各种超时选项。列表在这里:https://wiki.videolan.org/VLC_command-line_help

例如:

--rtsp-session-timeout=<integer> 
                                 Sets the timeout option in the RTSP session
                                 string
          Defines what timeout option to add to the RTSP session ID string.

--rtsp-timeout=<integer>   RTSP session timeout (s)
          RTSP sessions will be closed after not receiving any RTSP request for
          this long. Setting it to a negative value or zero disables timeouts.
          The default is 60 (one minute).

--ipv4-timeout=<integer [0 .. 2147483647]> 
                                 TCP connection timeout
          Default TCP connection timeout (in milliseconds)