mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-25 20:27:34 +08:00
rtsp拉流改成udp方式
This commit is contained in:
parent
35734f9e27
commit
36e8dcfac1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user