Skip to main content

Video-js Custom Skin Implement ( City , Fantasy , Forest , Sea )

Video-js Custom Skin Implement ( City , Fantasy , Forest , Sea )


Firstly See How to integrate Video.Js Video Player in Simple HTML5 Video Player View->


Customize

Using Video.js straight out of the box is fine, but we think it's better if you make it your own. Plugins and skins make it possible to completely customize your player.

Skinning

The player skin is completely built from HTML and CSS, including when Flash and other players like YouTube are used.

Skin changes can be as simple as centering the play button (you can just add the 'vjs-big-play-centered' class to your video tag), or as complex as creating entirely new layouts. We've built a codepen project where you can explore different changes.

Home Page Themes

The themes in the home page come from the Videojs Themes library. To use them in your player, import the CSS, then add the relevant class to your video tag. For example, if you want to use the City theme, you could set up your HTML like so:

<!-- In the head of your document with your other CSS includes... -->
<!-- Video.js base CSS -->
<link
  href="https://cdnjs.cloudflare.com/ajax/libs/video.js/7.0.0/video-js.min.css"
  rel="stylesheet"
/>

<!-- City -->
<link
  href="https://unpkg.com/@videojs/themes@1/dist/city/index.css"
  rel="stylesheet"
/>

<!-- Then, in the player -->
<video class="video-js vjs-theme-city" ...></video>

Designing your own

A great place to start is the Video.js Skin Designer, but at the end of the day we suggest using the cascading aspect of CSS to simply override the parts of the design you want to customize.

At Last add Javascript CDN Just Before </body> Tag.

  <script src="https://cdnjs.cloudflare.com/ajax/libs/video.js/7.0.0/video.min.js"></script>

1. City Theme 



 

Add Class :- vjs-theme-city 

<!-- City CDN -->
<link
  href="https://unpkg.com/@videojs/themes@1.0.1/dist/city/index.css"
  rel="stylesheet"
/>

2. Fantasy Theme 




Add Class :- vjs-theme-fantasy 

<!-- Fantasy CDN -->
<link
  href="https://unpkg.com/@videojs/themes@1.0.1/dist/fantasy/index.css"
  rel="stylesheet"
/>

3. Forest Theme 





See Video Documentation :- https://youtu.be/dOK_5w4b0vI

Add Class :- vjs-theme-forest
 
<!-- Forest CDN -->
<link
  href="https://unpkg.com/@videojs/themes@1.0.1/dist/forest/index.css"
  rel="stylesheet"
/>

4. Sea Theme 





Add Class :- vjs-theme-sea 

<!-- Sea CDN -->
<link
  href="https://unpkg.com/@videojs/themes@1.0.1/dist/sea/index.css"
  rel="stylesheet"
/>

Sample Video :- BigBuckBunny.mp4

Comments

Popular posts from this blog

How to Get Free Unlimited Bandwidth and Storage Using jsDelivr and GitHub

How to Get Free Unlimited Bandwidth and Storage Using jsDelivr and GitHub Are you tired of paying for expensive content delivery networks (CDNs) and storage solutions for your web projects? Look no further! In this guide, we'll show you how to leverage jsDelivr and GitHub to get free unlimited bandwidth and storage. Whether you're a seasoned developer or just getting started, this solution will save you money and improve the performance of your web projects. What is jsDelivr? jsDelivr is a free, fast, and reliable CDN for open-source files. It provides a convenient way to serve your static assets (like JavaScript, CSS, images, and more) with the benefits of a global CDN, including faster load times and unlimited bandwidth. What is GitHub? GitHub is a popular platform for version control and collaboration. It allows you to host your code repositories and manage your projects with ease. By combining GitHub with jsD...

Best VS Code extensions for developers in 2024

Here are some of the best VS Code extensions for developers in 2024, including a range of productivity tools, debuggers, and visual enhancements to streamline your coding workflow. Additionally, you'll find some popular themes to customize your editor's appearance. Top VS Code Extensions for Developers in 2024 Shade Theme by SH20RAJ Enhance your code readability with this well-designed theme, perfect for long coding sessions. Shade Theme Prettier A widely used code formatter that ensures your code is styled consistently across your projects. Prettier GitLens Provides rich visualizations and insights into your Git repository, helping you understand code changes and history. GitLens Auto Rename Tag Automatically renames paired HTML/XML tags, reducing errors and saving time. Auto Rename Tag Bracket Pair Colorizer Colors matching brackets to improve code readability, especially useful for complex nested structures. Bracket Pair Colorizer CSS Peek...

100+ Innovative Ideas for Telegram Bots

Title: 100+ Innovative Ideas for Telegram Bots: Exploring the Boundaries of Automation In the realm of instant messaging, Telegram stands out as a versatile platform offering a plethora of features for communication and automation. Among its most intriguing aspects are Telegram bots – automated programs designed to assist, entertain, or streamline various tasks within the platform. With the power of bot creation accessible to developers and enthusiasts alike, the possibilities for innovation are virtually limitless. Here, we present over 100 ideas for Telegram bots spanning diverse categories, from productivity to entertainment and beyond. 1. Productivity Bots: 1.1. Task Manager Bot: Helps users organize their tasks, set reminders, and manage deadlines. 1.2. Note Taking Bot: Allows users to jot down quick notes and access them later. 1.3. Calendar Integration Bot: Syncs Telegram with users' calendars, facilitating scheduling and event management. 1.4. Expense Tracker Bot: ...

Random Posts