HTML5 Video playing LAN

I use HTML5 <video> tag to play videos in my LAN from different computers. In my current setup, I have got a server, which provides the html page and all the videos I want to play. There are some computers which should play these videos by loading the html page. In general that works already. But sometimes after a while playing a video, the console says failed to load resource and the playing stops immediately. I thougt, this is maybe some sort of timeout in my LAN and I had the idea to play the videos locally, ie copy all videos to each computer and just provide the html on the server. The server html then, just links to file://.../ .

but when I tried this approach on the server, the video was stopping every few seconds and it did not buffer at all. It was completely impossible to watch the video. Videos are *.mp4; I run chrome on all win7 computers, Server is XAMPP.

Is there either a way to catch the failed to load resource error, or a way to play local videos in a reasonable quality?

Did none of you have problems like that yet?


A few thoughts:

  • does your config include 'AddType video/mp4 .mp4'?
  • is it possible that progressive loading has been disabled somehow?
  • how large are the videos? there are reports of > 30Mb files having playback issues in XAMPP
  • if you convert to another format ( .ogg, .avi, similar ) do they playback any better?
  • if you use a .php (or similar) file to provide progressive loading - any change? IE Stream from the app instead of directly.
  • 链接地址: http://www.djcxy.com/p/64348.html

    上一篇: 在android webview中全屏播放HTML5视频

    下一篇: HTML5视频播放局域网