Lab #24 Custom Video Player
The name of this lab was "Custom Video Player". Within this lab, I used JavaScript, CSS, and HTML to create a custom video player. As for the video used in the demonstration, I was at comic-con and one of my friends wanted to record me unsheathing my sword. In the end, it didn't really turn out the way we planned... ANYWAYS DON'T WORRY ABOU THAT! It's just a demonstration that the video player controls work.
In order to create this beauty of a video player, I used many divs that had classes related to what their function was, like the player itself, player controls, player button, etc. I also used input sliders for the sounds and speed of the video. The CSS on the webpage was made to center the video and adjust it so that it was displayed as flex and wouldn't interfere with other elements on the page, like my heading. The main part was the JavaScript which added the functionality to all of these controls. I created functions for toggling the play and pause button for the video, skip functions to go forward or backward a certain amount, and also functions to handle the progress of the video.
Web designers can use this to replace the default video controls that HTML allows you to use. It can be to fully customize the viewer experience on your webpage. For example, you could be selling a product on your webpage and have an advertisement video with it including custom controls which would make it stand out from other videos from competitors.
In order to create this beauty of a video player, I used many divs that had classes related to what their function was, like the player itself, player controls, player button, etc. I also used input sliders for the sounds and speed of the video. The CSS on the webpage was made to center the video and adjust it so that it was displayed as flex and wouldn't interfere with other elements on the page, like my heading. The main part was the JavaScript which added the functionality to all of these controls. I created functions for toggling the play and pause button for the video, skip functions to go forward or backward a certain amount, and also functions to handle the progress of the video.
Web designers can use this to replace the default video controls that HTML allows you to use. It can be to fully customize the viewer experience on your webpage. For example, you could be selling a product on your webpage and have an advertisement video with it including custom controls which would make it stand out from other videos from competitors.

Comments
Post a Comment