用gwt播放媒体 [英] Playing media with gwt

查看:211
本文介绍了用gwt播放媒体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用G.W.T开发的简单邮件系统,我正在尝试添加一个功能来播放音频和视频文件,如果有视频或音频文件作为附件。

I have a simple mail system developed with G.W.T and i am trying add a feature to play audio and video files if there is a video or audio file comes as an attachment.

我一直在尝试使用bst播放器和HTML视频标签来工作,但我不能播放一些视频格式,如.avi,.mpeg,.mpg等等。

I have been trying bst player and HTML video tag to get work , but i can not play some video formats such as .avi, .mpeg ,.mpg and so on.

播放这些视频格式还能做些什么?

What else can be done to play those kind of video formats?

另一方面,我我想在java servlet中转换视频文件,然后将该url提供给播放器,但我不知道这是否有意义。那应该是这样吗?

On the other hand, i am thinking of converting the video file in a java servlet then giving that url to player, but i do not know if that makes sense.Is that should be the way?

最后一件事是;是否有一种通用格式(可能是.flv?)首先必须将视频文件转换为可以由VlcPlayerPlugin或其他视频播放器播放?任何其他提示都会有所帮助。

Last thing is; is there a general format (maybe .flv?) that a video file first have to be converted into so it can be playable by VlcPlayerPlugin or another video player? Any other tip will be helpful.

感谢您的帮助。

推荐答案

抱歉延迟,没有机会回复。因为VlcPlayer表现很奇怪并且在Ubuntu和Windows上显示不同的控制按钮,我决定使用BstPlayer的FlashPlayerPlugin。我首先使用 jave ,然后它将转换后的视频提供给FlashPlayer ,它现在没有问题,谢谢大家的帮助。

Sorry for the delay, did not have the chance to reply.Because of VlcPlayer was behaving strange and showing different control buttons on Ubuntu and Windows, i decided to use FlashPlayerPlugin of BstPlayer.I first convert file to flv by using jave is described here in documentation, then it serves the converted video to FlashPlayer, it works without problem now , thank you all for your helps.

这篇关于用gwt播放媒体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆