Coder Social home page Coder Social logo

video-editor's Introduction

Video Editor

Video editor is a web application that allows a user to slice up a video into clips.

Features

  • Custom video player.
  • Easy to use interface to add new clips to the list by specifying a name, start time, and end time.
  • The ability to delete clips from the list.
  • The ability to edit existing clips in the list.
  • The ability to play clips in the video player.

Installation guide

Follow this instructions to run this project on your local machine.

Prerequisites

To run this project all you need to have installed is node.js. It was created using this version:

node --version
v8.11.2

Install & Local development

git clone https://github.com/fcor/video-editor.git  # Clone the repository.
cd video-editor && npm install  # Install dependencies.
npm run prebuild # Prepare static files for further usage
npm start  # Start the local development server.

Production Mode

After installation, you are able to run the project on production mode running this command.

npm run build 

Then, go to your browser http:localhost:3000/ and see the application alive.

You can visualize and analyze the Webpack bundle via http://localhost:3000/statistics.html.

Built with

Other dependencies used in this project:

I used this custom boilerplate to generate the scaffolding for this app.

Discussion

Mandatory Features

  • An HTML5 video player that utilizes media fragments
  • A list of clips to be played in the video player
  • The first item in the list should be the full video
  • An interface to add new clips to the list by specifying a name, start time, and end time
  • The ability to delete clips from the list (excluding the full video item )
  • The ability to edit existing clips in the list
  • The ability to play clips in the video player

All this requirements were met thanks to the power of media fragments for playing and editing capabilities. In terms of video handling (Play/Pause, duration, custom controls etc.) everything is based on HTMLMediaElement API.

Thumbnails preview on playlist component are dummy images, they were added as a proof of concept.

Bonus Features

  • The ability to automatically jump to the next clip after it finishes, with a 3 second waiting period and appropriate loading animation.
  • The ability to ‘save’ clips for persistent use.
  • The ability to add arbitrary ‘tags’ to clips so that they can be filtered by the tag name.
  • Hotkeys to jump between the current clip and next and previous clips (if there are any).
  • Markers on the video player timeline that denote where a clip starts (full video only).
  • Clicking the marker chooses that clip and plays it from that point.
  • The ability to reuse the the player and playlist on another page without the editing capabilities.

Hotkeys feature was met using some eventListeners and taking advantage of custom control methods created for video handling. Also, playlist and video player components are totally reusable without editing capabilities as you can see when running the application.

I was so excited about "Jump to the next clip feature", animations and microinteractions are my stuff! Unfortunately time was against me. However, this would be 'easy' to implement taking advantage of nextClip action created for Hotkeys.

Hope you like it!

video-editor's People

Contributors

fcor avatar

Stargazers

Piyush Pandey avatar Niranjan Anandkumar avatar Matvey Sudomoykin avatar

Watchers

James Cloos avatar

video-editor's Issues

Code cannot be run

I cannot run your code if ever. It also needs env I think so? Please update README.md if ever possible

Thank you

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.