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);