Commit 36e8dcfa by xiongziliang

rtsp拉流改成udp方式

parent 35734f9e
...@@ -203,6 +203,7 @@ JNI_API(jlong,createMediaPlayer,jstring url,jobject callback){ ...@@ -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())); 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)); player->play(stringFromJstring(env,url));
return (jlong)(ret); return (jlong)(ret);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论