Git Product home page Git Product logo

custom-html5-video-player's Introduction

Custom HTML5 Video Player Exercise

Description

This is a learning exercise using Wes Bos' 11th-day coding challenge called Custom HTML5 Video Player. This exercise is part of a larger 30-day coding challenge called JavaScript30.

Implemented features shown in the video (except one: progress bar click and move) and also added some of my own. HTML and most of the CSS was already written. I wrote all of the JS and edited some of the CSS using JS. The goal was to build my own version of the video player from scratch.

I don't use classes and I use the comment below to separate groups of code in JS file:

// ------------------------------------------

This was done purely for learning purposes to understand what variables belong together with which functions.

Video player

Image of an original video player:

Finished project:

Features

Built all of the original features and then added some.

Original video features:

  • Press play, the video starts playing and an icon of the button changes from play to pause. Same works for pause.
  • Volume scrubber to change the volume.
  • Playback rate scrubber to change the speed of the video playback.
  • Clickable progress bar to skip the video and to match the length of the video. Shows the user how far they are into watching the video.
  • Responsive video player.

My added features:

  • Press down on the space bar to play/pause the video.
  • Added fullscreen feature.
  • Material Design icons.
  • Added volume and playback rate icons.
  • Replaced 10 sec backward and 30 sec forward icons.
  • Changed the original skip video 25sec forward feature to 30sec.

custom-html5-video-player's People

Contributors

nadiaidris avatar nazmulidris avatar

Watchers

 avatar  avatar  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.