[英]Getting an RTMP stream from Java
I feel pretty stupid asking this, but I just couldn't find anything on the web that helped me. 我问这个问题很愚蠢,但是我在网上找不到任何对我有帮助的东西。
Is there a way to connect to an RTMP stream from within a Java application? 有没有办法从Java应用程序连接到RTMP流?
I just need to connect and read a few bytes. 我只需要连接并读取一些字节。 I even don't need to play a video or anything.
我什至不需要播放视频或其他任何内容。 It's only for monitoring the connection.
仅用于监视连接。
I tried using java.net.URL
and even red5's rtmpclient
and rtmpconnection
, but couldn't figure out how it could help me. 我尝试使用
java.net.URL
甚至red5的rtmpclient
和rtmpconnection
,但无法弄清楚它如何对我有所帮助。
i found JUV RTMP Client that allows connecting to a RTMP Server. 我找到了允许连接到RTMP服务器的JUV RTMP客户端。
it has the following highlights: 它具有以下亮点:
1.RTMP/RTMPT/RTMPS/RTMPE/RTMPTE protocols support (both AMF0 and AMF3 encodings) 1.RTMP / RTMPT / RTMPS / RTMPE / RTMPTE协议支持(AMF0和AMF3编码)
2.Remote method invocation 2.远程方法调用
3.Remote shared object management 3.远程共享对象管理
4.Play and publish audio/video streams (supported by the server) (!audio/video codec implementations are not included!) 4.播放和发布音频/视频流(服务器支持)(不包括音频/视频编解码器实现!)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.