Skip to content

jfcameron/Multimedia-Share-Static-Site-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static hosting media interface

alt tag

Description:

refreshless web app that allows browsing, streaming and downloading of multimedia content hosted on a static server

Features

  • content directory browsing
  • audio & video streaming,
  • image viewing,
  • document viewing (pdf, txt, md)
  • file download links.

Explanation

The project is made of two separate programs: 1) a Java program meant to be run as a cron job, whose output is then uploaded to the server and 2) a JS program, uploaded once to the static site. The Java program creates a JSON representation of your content directories. The JS program fetches these JSON files and uses them to retrieve the content.

Setup:

  • Build the Java application & modify the settings.json file (it is inside the jar).
  • Put content and JS app on a static hosting site (github pages, dropbox + updog.co)
  • setup a job to occasionally regenerate the json files

Example Settings.json:

{
    "PathToDropboxPublicDirectoryRoot": "../Apps/updog/myname/Public/",
    "DirectoryMapOutputPath": "../Apps/updog/myname/PublicInterface/",
    "DropboxPublicRootURL": "https://myname.updog.co/Public/"
}

Libraries used:

  • json-simple - json parser, used by the Java program
  • Pure.css - used to style the js directory browser
  • VideoJS - html5 video streaming lib

About

static site generator for serving/streaming multimedia files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published