gigascience / gigadb-website

Source code for running GigaDB
http://gigadb.org
GNU General Public License v3.0
10 stars 15 forks source link

video player E613 #244

Open only1chunts opened 6 years ago

only1chunts commented 6 years ago

User Story

As a website user I want to view video files associated with the datasets So that I can access the video from the website

Acceptance Criteria

Given When Then

Additional Info

Can we add an additional viewer to the set of tabbed views on a dataset page. We would like the option to add a "video player" to the tabs for datasets that have video files listed. e.g. if a dataset contains files of data_type=video I had hoped this would be simply as case of using the HTML5 ‘

This Story is part of Epic #613

only1chunts commented 6 years ago

this site may or maynot be helpful?! http://www.tuxxin.com/php-mp4-streaming/

ScottBGI commented 3 years ago

Big problem for every platform that needs to embed video (journal, database, blog, etc.) is that youtube and vimeo are blocked in China. One option is we deploy a peertube instance:

https://joinpeertube.org/#what-is-peertube

It is also possible to just host video ourselves and use HTML5 video embedding, but this lacks a lot of the functionality of third party video platforms (social media sharing, discoverability from the platform, sharing and widget code buttons) and more importantly doesn't allow load balancing. If we get a very popular video that goes viral it'll crash the server. RiverValley used to host their own videos for zeeba.tv and they got 20K hits in one day for a talk by Knuth that killed their platform so they moved everything to youtube. Using PeerTube we'd still have to host it, but in theory it should be more stable as they claim it can use a peer-to-peer protocol (P2P) to broadcast viral videos. It also uses federating protocol that in theory can link to social media and other platforms. So could be a good compromise.