Coder Social home page Coder Social logo

uche40 / video-archive-front Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blgrgjno/video-archive-front

0.0 2.0 0.0 464 KB

Video player based on popcorn.js for playing video synchronized with image slides

License: GNU General Public License v2.0

ApacheConf 53.88% HTML 10.90% JavaScript 31.09% CSS 4.13%

video-archive-front's Introduction

video-archive-front

Video player based on popcorn.js

For playing video synchronized with image slides using the footnote plugin. Requires a well-known file structure with a meta file located in the data folder in the root of the installed app.

Supports two different modes. One with slides and one without.

Will hide chapter selector if there are no chapters in file

Usage

Will load the video id given in the watch query parameter.

E.g.

http://video/index.html?watch=84db7c47-ee64-41b8-82e2-dcaf515d2cda

...should load the video in data/video/84db7c47-ee64-41b8-82e2-dcaf515d2cda

Build

Although it's possible to use another tool to convert sass -> css, it will require some changes to the build system, or a separate build process. The easiest is to get ruby and compass up and running according to the installation instructions.

Then you need to install gulp dependencies:

$ npm install

Then popcorn.js:

$ bower install

To build in the dist folder:

$ grunt build

Develop

You can start a local developer version with watch/livereload:

$ grunt watch

Filestructure

A list of directories placed in the data folder.

data
└── video
    ├── 84db7c47-ee64-41b8-82e2-dcaf515d2cda
    │   ├── 84db7c47-ee64-41b8-82e2-dcaf515d2cda_1.mp4
    │   ├── metadata.xml
    │   ├── meta.json
    │   └── timeline
    ├── 09ce8117-24d9-44f5-9b9c-44366553b541
    │   ├── 17214.mp4
    │   ├── metadata.xml
    │   ├── meta.json
    │   └── timeline
...and so on.

timeline folder contains a png slides that is listed in meta.json as slides/slideURL

metadata.xml the original metadata.xml from fluvi

Example meta.json

A modified JSON file converted from metadata.xml with some modifications.

{
 "itemID": [
  "84db7c47-ee64-41b8-82e2-dcaf515d2cda"
 ],
 "category": [
  "Finansdepartementet"
 ],
 "diID": [
  "71555419"
 ],
 "created": [
  "Mon Oct 1 09:15:55 GMT+0200 2012"
 ],
 "published": [
  "Mon Oct 1 12:16:00 GMT+0200 2012"
 ],
 "timestamp": [
  "Thu Oct 4 09:57:07 GMT+0200 2012"
 ],
 "title": [
  "Nett-TV: Pressekonferanse om samfunnsøkonomiske analyser"
 ],
 "videoIn": [
  "243"
 ],
 "videoOut": [
  "2597"
 ],
 "videoFile": [
  "84db7c47-ee64-41b8-82e2-dcaf515d2cda_1.mp4"
 ],
 "webPageID": [
  "700698"
 ],
 "slideScreenPosition": [
  "right"
 ],
 "slides": [
  {
   "title": [
    "page1"
   ],
   "isChapter": [
    "false"
   ],
   "isCued": [
    "true"
   ],
   "startTime": [
    "0"
   ],
   "slideURL": [
    "36022_d60d412e-b483-4307-a7ce-a631a44a080b.swf"
   ]
  },
  {
   "title": [
    "page2"
   ],
   "isChapter": [
    "false"
   ],
   "isCued": [
    "true"
   ],
   "startTime": [
    "269"
   ],
   "slideURL": [
    "36022_dda6c74b-74e3-40ce-a616-12a4048ac687.swf"
   ]
  },
  .... and so on
 ]
}

Testing

Nope :(

video-archive-front's People

Contributors

proev avatar blgrgjno avatar

Watchers

James Cloos avatar James Okeke avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.