简体   繁体   English

视频播放解决方案

[英]Video playback solution

I need to implement video playback capabilities within a CMS on a html5 liferay portal application. 我需要在html5 liferay门户应用程序的CMS内实现视频播放功能。 I have tried my hand with google and I am a little confused. 我已经尝试过与Google合作,但我有些困惑。

  1. I dont have a streaming server, so progressive downloading is the way to go? 我没有流服务器,因此渐进式下载是路要走吗?
  2. The and properties have different support in different browsers. 和属性在不同的浏览器中具有不同的支持。 How do I implement a solution that is consistent across all the browsers? 如何实现在所有浏览器中都一致的解决方案?
  3. Would I need to implement a JS video player - Open Video player or JWPlayer or Flow player? 我是否需要实现JS视频播放器-Open Video Player或JWPlayer或Flow播放器? Any suggestions? 有什么建议么?
  4. What about performance? 性能如何? And which file types are supported across the browsers. 以及浏览器支持哪些文件类型。 I am mainly looking at IE here. 我主要在这里查看IE。
  5. Basically need a few pointers regarding where to get started. 基本上需要一些有关从哪里开始的指针。

Any help would be appreciated. 任何帮助,将不胜感激。 Thanks. 谢谢。

* I dont have a streaming server, so progressive downloading is the way to go? * 我没有流服务器,因此渐进式下载是路要走吗? You could either host the videos yourself and deliver as progressive download, or there are 3rd party solutions (eg Wowza) that you can use to deliver various streaming formats if that's important/viable 您可以自己托管视频并进行渐进式下载,也可以使用第三方解决方案(例如Wowza)来交付各种流格式(如果重要/可行)

* The and properties have different support in different browsers. * 和属性在不同的浏览器中具有不同的支持。 How do I implement a solution that is consistent across all the browsers? 如何实现在所有浏览器中都一致的解决方案? If you are targeting modern browsers then the tag in HTML5 is very flexible (though only supports progressive video in most cases). 如果您以现代浏览器为目标,则HTML5中的标记非常灵活(尽管在大多数情况下仅支持渐进式视频)。 Different browsers support different containers/codecs (.mp4, .webm, .ogg) so you will need multiple source files 不同的浏览器支持不同的容器/编解码器(.mp4,.webm,.ogg),因此您将需要多个源文件

* Would I need to implement a JS video player - Open Video player or JWPlayer or Flow player? * 我是否需要实现JS视频播放器-Open Video Player或JWPlayer或Flow播放器? Any suggestions? 有什么建议么? You don't need to use anything other than the basic tag, however most of the open source player libraries for HTML5 do include a lot of the logic for you, and provide fall-back Flash players which can help with cross-platform and older browsers 您不需要使用基本标记以外的任何东西,但是HTML5的大多数开源播放器库确实为您提供了很多逻辑,并提供了可用于跨平台或更老版本的后备Flash播放器。浏览器

* What about performance? * 性能如何? And which file types are supported across the browsers. 以及浏览器支持哪些文件类型。 I am mainly looking at IE here. 我主要在这里查看IE。 Any of the modern browsers are pretty comparable for playback performance so you shouldn't have too many issues unless you're trying to send very high bitrate video to lower spec machines. 任何现代浏览器在回放性能上都相当可比,因此除非您试图将高比特率的视频发送到规格较低的机器,否则您应该不会出现太多问题。 This article - http://www.html5rocks.com/en/tutorials/video/basics/ - is a great starting point 本文-http: //www.html5rocks.com/zh-CN/tutorials/video/basics/-是一个很好的起点

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

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