如何在网站上为多个人同时播放视频 [英] How do I play a video at the same time for multiple people on a website

查看:469
本文介绍了如何在网站上为多个人同时播放视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何实现诸如一起观看功能之类的功能,其中来自不同计算机的人可以同时播放相同的视频文件,或者说时间在某个时间被锁定并且像您正在观看一样前进这部电影让两个人的电影播放完全相同



该网站由github托管,并且在线,所以不应该有问题将两台计算机连接在同一网站上。



如果有任何帮助,我也会托管从谷歌驱动器嵌入的视频文件
(谷歌驱动器嵌入视频,万一你需要它...



以下是谷歌驱动器使用的iframe类型。



< b>我尝试过:< / b>



< iframe frameBorder =0 id =vvideosrc =https://drive.google.com/file/d/1RJ_-a_7UZvSTBpNui8pVExgKGk7w4tlI/previewallowfullscreen>

解决方案

这超出了快速回答论坛的范围。



如果我理解正确你说你的网站是由github托管的,你想直接分享视频来自谷歌驱动器。



首先,你的网站托管在github上对你没有任何帮助,据我所知,github只允许你托管一个基本的HTML esque网站。



您需要服务器端处理视频文件以获得流媒体功能,您需要研究如何流式传输视频(不在iframe中),如何缓冲视频,这样你就不需要他们在观看之前下载700mb视频等。我不确定你的技术能力如何,所以要么上面的内容都有意义,或者你已经有几年才能建立这个,因为你需要从基础开始。



这里有很多需要考虑的问题,这就是为什么我说这个问题超出了本论坛的目的范围。我们基本上会为你提供抽搐和youtube之间的交叉。


How would I implement a feature such as a "Watch together" feature where people from different computers can play the same video file at the same time, or say the time is locked at a certain time and advances as if you were watching the movie, so that the movie is playing the exact same for both people

The website is hosted by github, and is online, so there shouldn't be a problem with linking the two computers together as they are on the same website.

If it is any help, I am also hosting the video files embedded from google drive
(Google drive embeds videos with in case you need it...

Below is the type of iframe that google drive uses.

<b>What I have tried:</b>

<iframe frameBorder="0" id="vvideo" src="https://drive.google.com/file/d/1RJ_-a_7UZvSTBpNui8pVExgKGk7w4tlI/preview" allowfullscreen>

解决方案

This is beyond the scope of quick answer forum.

If i understand you correctly you are saying your website is hosted by github and you want to share the video directly from google drive.

For one, your site being hosted on github won't help you any, as far as I know, github only allows you to host a basic html esque website.

Your going to need server side handling of the video file for streaming capabilities, you'll need to look into how to stream video (not in an iframe), how to buffer the video so you don't require them to download a 700mb video before viewing...etc. I'm not sure how technically capable you are so either the above will make sense or you've got a few years before you'll be able to build this since you'll need to start with the basics.

There is a lot to consider here which is why i say this question is beyond the scope of what the purpose of this forum is. We'd essentially be spec'ing out for you a cross between twitch and youtube.


这篇关于如何在网站上为多个人同时播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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