You want to host your own videos online to share with friends. You don't want to install a lot of dependancies, manage a database or install new modules on your web server.
You do want to be able to add videos by dropping them into a file tree, and give people a URL to look at your videos with no complications.
You want this.
A perlbrew setup is recommended!
$ git clone https://github.com/EatMoreCode/video_host.git
$ cd video_host
$ perl Makefile.PL
$ make
$ make test
$ make install
CPAN coming soon!
There are many ways to deploy Mojolicious apps. Suggested reading: http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#DEPLOYMENT
$ cp lib/VideoHost/video_host.conf SOMEDIR/video_host.conf
$ edit SOMEDIR/video_host.conf
$ MOJO_CONFIG=SOMEDIR/video_host.conf hypnotoad `which video_host`
Open your browser and enjoy.
Gotcha. Try this:
$ git clone https://github.com/EatMoreCode/video_host.git
$ cd video_host
$ morbo script/video_host --listen http://\*:2345
Hit http://localhost:2345
and kick the tires (well, tire).
To play some more, add your own videos under t/testdata (see the next section).
Under your video_directory
path (in the config) you need to have:
video.mp4
metadata.txt
poster.jpg
- an image shown before the video is loadedtracks.vtt
containing captioning informationThe metadata.txt
file should contain key: value pairs, thus:
title: My lovely video!
date: 2014-10-10
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。