简体   繁体   English

用于播放视频流/文件的applet的Java框架(mjpeg / divx / h.264)

[英]Java Framework for applet that plays video streams/files (mjpeg/divx/h.264)

Can you tell me the best solution today to make an applet that plays mjpeg/divx/h.264. 您能告诉我今天制作播放mjpeg / divx / h.264的applet的最佳解决方案。 I need it to work on systems without installing any additional software (like jmf). 我需要它在系统上工作而无需安装任何其他软件(如jmf)。

The client simply goes to a web page, loads the applet and sees the video stream/file. 客户端只需转到网页,加载小程序并查看视频流/文件。

Thanks for any help. 谢谢你的帮助。

Are you looking to just serve content or have something like a player in a web browser where the user can select their files (or something along those lines?) Because if you're just serving the content, the best way would be to convert it to FLV on the server side using something like ffmpeg and then just use a flash player. 您是要提供内容还是要在网络浏览器中拥有播放器之类的功能,以便用户可以选择文件(或类似方式的内容?)因为如果您仅提供内容,最好的方法是将其转换在服务器端使用ffmpeg之类的FLV,然后仅使用Flash Player。 If you don't want to use flash, HTML5 video would also be an option. 如果您不想使用Flash,也可以选择HTML5视频。

If you definitely want to go down the applet route, then you could wrap up something like VLCj in an applet and use that. 如果您确实想沿Applet路线走,则可以将诸如VLCj之类的内容包装在applet中并使用它。 You'll need to include libvlc.dll/so, and you'll need to make sure it's signed, but if you do that it should work. 您需要包括libvlc.dll / so,并且需要确保它已签名,但是如果这样做,它应该可以工作。

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

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