rtsp拉流改成udp方式

This commit is contained in:
xiongziliang 2019-05-13 14:26:20 +08:00
parent 35734f9e27
commit 36e8dcfac1

View File

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