0

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. Does Anyone know how to solve this problem? If JMF cannot solve it, someone can recommend me a different framework?

Alberto
  • 1,569
  • 1
  • 22
  • 41

1 Answers1

2

You could register a protocol handler, and then use this special URL within JMF. Registering protocol handlers is a bit complicated in my view, but there are a many examples on the internet.

Thomas Mueller
  • 48,905
  • 14
  • 116
  • 132
  • Really interesting, I create my protocol and I can read from the stream. Unfortunately JMF can't read MP4, but your answer was very useful. – Alberto May 23 '12 at 09:50