English 中文(简体)
利用录像机简化游戏框架中的录像
原标题:Streaming video in play framework using videojs

最近,我一直在与我的朋友合作,在游戏框架1.2.4中进行网络应用,我们在那里试图利用录像机播放在项目公共目录中储存的录像。 这一录像形式为4级,但我猜测,这一问题无关紧要。 我们没有使用任何服务器边的文字,就直接使用录像。 我们发现了在我们试验期间产生的2个问题。

  1. 录像从来未缓冲到底的一切。 以前只有几秒的储存在缓冲地带。

  2. 当拍摄录像时,如果我们施加压力,然后玩.,录像带就会完全消失。 有时,它会永远缓冲录像,而其他时候,它会视像它继续照相,但只显示一个黑色屏幕,没有声音。

当我们在所储存的档案上试用同一录像带时,不是在网络应用中,而是从其他一些服务器中服务时,它的工作是徒劳的。 即便其他服务器只是在同一台电脑上运行。 因此,我建议,这必须是一个问题,因为服务器在运行其应用方面发挥着作用。 我们正在使用“游戏运行”指挥和缺省配置进行申请。 谁能解释这种奇怪的行为? 是否需要在组合中确定什么,或者这只是一个ug? 感谢。

最佳回答

I think thats a problem with the range support in netty / the play controller handling public folder. ( http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35 )

You should be able to test this with curl.. e.g. like described in this post http://linuxandfriends.com/2008/11/01/curl-split-a-file-and-download-simultaneously-from-multiple-locations/

However, in production, you re usually fronting play with lighttpd/nginx (to allow to bind port 80) so the files from the public folder get served by something other than play... you shouldn t have a problem then.

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签