最佳做法是在网站上拥有在慢速连接中流畅播放的大视频 [英] Best practice to have big video in website that play smoothly in slow connection

查看:23
本文介绍了最佳做法是在网站上拥有在慢速连接中流畅播放的大视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个网站,我想添加长视频(1.5 小时),目前视频格式为 mp4.但是可以将其转换为任何其他格式.我发现了大约 3 种放置视频、嵌入视频或将其制作为流媒体或渐进式下载的方法.我不知道哪一种在我的国家/地区运行良好,但连接速度较慢(平均只有 1.5 mbps).我通过互联网进行了研究,许多人实际上说渐进式下载是最好的.但是这里的一些朋友建议嵌入视频.任何人都可以帮助我做出这个决定吗?并告诉我原因.谢谢你.

解决方案

对于慢速连接,渐进式下载总是更好的主意.生活在一个互联网连接速度从不可靠且永远不会超过 2 mbps(印度)的国家,我发现人们更喜欢在播放器中开始下载视频,然后暂停它直到它完全加载.渐进式下载允许这样做,并让他们一次又一次地重播下载的视频,而无需重新下载.这在流式下载中是不可能的,它依赖于根据连接提供最佳编码的文件.

嵌入视频是一个不同的概念,您可以在视频流网站(如 youtube 或 vimeo)上上传视频并使用一段代码,以便用户在访问您的网站时可以在他们的浏览器上播放视频,并且永远不会跳到 vimeo/youtube,除非他们想明确地做到这一点.此处视频请求由 youtube/vimeo 提供,而不是您的服务器.

如果您想节省 Web 服务器的负载,嵌入会更好.但如果这不是问题,请在您的网络服务器上进行渐进式下载.

根据 W3C 定义,

<块引用>

"嵌入内容是将另一个资源导入到文档,或插入到其他词汇表中的内容文档."http://www.w3.org/html/wg/drafts/html/master/dom.html#embedded-content-2

基本上,任何能让您看到内容 HTML 的多媒体网站在技术上都是可嵌入的"http://embed.ly/embed>

I'm working on a website and I want to add long videos (1.5 hours), for now the video format is in mp4. But it's okay to convert it to any other format. I found about 3 ways to put video, embed it or make it as streaming or progressive download. I don't know which one works good in my country with slow connection (only 1.5 mbps on average). I've researched through internet and many actually said that progressive download is best. But some friends here suggest to embed the video. Can anyone help me on making this decision? and give me the reason as well. Thank you.

解决方案

It's always a better idea to go for progressive download for slow connections. Living in a country where internet connection speed is never reliable and never over 2 mbps(India), I find that people prefer to start the video download in the player and then pause it till it loads fully. Progressive downloads allows this and lets them replay the downloaded video again and again without the need of a re-download. This is not possible in a streaming download, which relies on providing optimally encoded file depending on connection.

Embedding video is a different concept where you upload video on video streaming site like youtube or vimeo and use a piece of code so that users can play it on their browsers while they are on your site and never skip to vimeo/youtube unless they want to do that explicitly. Here the video request is served by youtube/vimeo and not your server.

Embedding is better if you want to save load on your web server. But if that is not a problem go for progressive download on your web server.

EDIT: As per W3C definition,

"Embedded content is content that imports another resource into the document, or content from another vocabulary that is inserted into the document." http://www.w3.org/html/wg/drafts/html/master/dom.html#embedded-content-2

Essentially, any multimedia website that enables you to see the HTML of the content is technically "embeddable" One site that allows you to embed almost anything from anywhere on web is http://embed.ly/embed

这篇关于最佳做法是在网站上拥有在慢速连接中流畅播放的大视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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