在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:vinarmani/AgoraTube开源软件地址:https://github.com/vinarmani/AgoraTube开源编程语言:JavaScript 66.7%开源软件介绍:AgoraTubeFully Decentralized, Censorship-Resistant, Browser-Based Video Sharing Javascript Add-On For js-ipfsAgoraTube is an add-on to js-ipfs which allows a user to run an IPFS node in their browser and leverage that node to upload, download, and play media files. It's free, no centralized server (or database) is needed and the resulting files have all of the censorship resistance that The Interplanetary File System brings to the party. The ChallengeThe world is facing a challenge. Free speech is being stifled by the new gatekeepers of media. The big sites and social media networks, in concert with governments, are censoring thoughts and speech that challenges the status quo. IPFS presents a free, uncensorable alternative, but it currently lacks ease-of-use for those without a technical background. If we really want mass adoption of these new, censorship-resistant technologies, our challenge is to make uploading and viewing of content easy for end users. AgoraTube allows content to be uploaded to IPFS in the browser. The virtual machine in the browser, while running the IPFS node, has limitations on the size of file that can be uploaded. AgoraTube solves this by cutting the file into chunks and creating a playlist pointer file. This process is similar to the idea behind HLS streaming. On the other side: AgoraTube, when given the hash of the pointer, downloads the chunks and intelligently stitches them together in the media player or enables a download of the whole file to the user's local disk. UsageAgoraTube is easy to implement. It was built using the js-ipfs example located here. First, include js-ipfs and the agoratube.js in this repository in your html file.
You can also pull agoratube.js from RawGit.
Then define and create a new AgoraTube object and tell it to initialize the IPFS node when it is ready
Then start up the IPFS node
This repository includes simple examples for upload, download, and video playing. Limitations - PLEASE READ!Because AgoraTube uses the native HTML5 video element, it is limited in what file types it can play. Currently, only MP4 files encoded with H.264 video and AAC audio are compatible with AgoraTube. Eventually, all files compatible with the HTML5 Video and Audio elements will be supported. All file types are supported for upload and straight download. Video files also must be MPEG DASH compliant this means that content creators will need to take an additional step before uploading their content if they want it to play in the video player. First you must have MP4Box, which can be downloaded here. Then, from the command line, you must run this command on your file:
This will generate a new file with 1 second DASH segmentation. That file will be compatible with AgoraTube. I hope, in the future, to find a way to provide this functionality without the user having to do this additional step. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论