From 36e8dcfac12fb672b856769bd013e2085f1b60fa Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 13 May 2019 14:26:20 +0800 Subject: [PATCH] =?UTF-8?q?rtsp=E6=8B=89=E6=B5=81=E6=94=B9=E6=88=90udp?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Android/app/src/main/cpp/native-lib.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Android/app/src/main/cpp/native-lib.cpp b/Android/app/src/main/cpp/native-lib.cpp index 838d540d..12e95eb6 100644 --- a/Android/app/src/main/cpp/native-lib.cpp +++ b/Android/app/src/main/cpp/native-lib.cpp @@ -203,6 +203,7 @@ JNI_API(jlong,createMediaPlayer,jstring url,jobject callback){ emitEvent((jobject)globalWeakRef,"onShutdown","(ILjava/lang/String;)V",(jint)ex.getErrCode(),env->NewStringUTF(ex.what())); }); + (*player)[Client::kRtpType] = Rtsp::RTP_UDP; player->play(stringFromJstring(env,url)); return (jlong)(ret);