简体   繁体   English

使用Java从数据库中流式传输视频

[英]Stream video from a database in Java

I have to stream some videos from a database. 我必须从数据库中流式传输一些视频。 I planned to use Java Media Framework, because I get the Blob objects from the result of a query, but apparently JMF cannot play videos from streams, but only from URLs. 我计划使用Java Media Framework,因为我从查询结果中获取Blob对象,但显然JMF不能从流中播放视频,而只能从URL播放。 Does Anyone know how to solve this problem? 有谁知道如何解决这个问题? If JMF cannot solve it, someone can recommend me a different framework? 如果JMF无法解决它,有人可以推荐我一个不同的框架吗?

You could register a protocol handler , and then use this special URL within JMF. 您可以注册协议处理程序 ,然后在JMF中使用此特殊URL。 Registering protocol handlers is a bit complicated in my view, but there are a many examples on the internet. 在我看来,注册协议处理程序有点复杂,但互联网上有很多例子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM