如何在网页中播放视频?
假设我在我的网站上,并且我想要流式传输实时视频,该视频应该可供所有查看该网页的用户使用。在 Java 中如何做到这一点?任何帮助表示赞赏。
提前致谢 :)
Say suppose i am on my website and i want to stream live video which should be available to all users who view the webpage. How can this be done in Java? Any help is appreciated.
Thanks in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我无法向您提供具体信息(因为我没有任何使用它的机会),但您应该看一下 Java Media Framework(简称 JMF)http://java.sun.com/javase/technologies/desktop/media/jmf/ 它
通过RTP 和 RTSP 协议(RFC 2326:实时流协议)
也许其他人可以为您提供更多详细信息,但这似乎是最好的起点。
I can't give you specifics (since i didn't have any opportunities to work with it), but you should take a look at Java Media Framework (JMF for short) http://java.sun.com/javase/technologies/desktop/media/jmf/
It offers streaming support over the RTP and RTSP protocol (RFC 2326: Real Time Streaming Protocol)
Maybe somebody else can give you more details, but this seems to be the best place to start.
您还可以查看 Xuggler,它支持比 JMF 更多的编解码器进行解码和编码。
You can also look at Xuggler which supports a lot more codecs for decoding and encoding than JMF does.