嵌入式 vlc修改为tcp优先连接

方法一:

在安卓版VLC源码中:
    modules/access/live555.cpp 中
        add_bool( "rtsp-tcp", false,
                  N_("Use RTP over RTSP (TCP)"),
                  N_("Use RTP over RTSP (TCP)"), true )

改为:
        add_bool( "rtsp-tcp", ture,
                  N_("Use RTP over RTSP (TCP)"),
                  N_("Use RTP over RTSP (TCP)"), true )



方法二:

Add "--rtsp-tcp" to the list around line 512 on vlc-android/jni/libvlcjni.c

编译,运行。VLC就会直接用TCP协议接收视频的RTP包,用TCP协议发送RTCP协议数据包。

你可能感兴趣的:(嵌入式 vlc修改为tcp优先连接)