General
This document aims to briefly explain and then provide examples of how AnyClip’s embedded Player can quickly be customized from a UI perspective. The instructions and examples here assume the Player in question has been embedded using a Content Management System (CMS) on a particular web page and that this page is visible to you in a standard web browser such as Chrome.
This document also assumes the person performing the customization procedures outlined below has basic CSS knowledge. A knowledgeable CSS coder will have numerous customization possibilities.
AnyClip Player CSS Design Basics
The objective of the following instructions is to introduce some of the main CSS classes that control how AnyClip’s Player looks on a page. Once an embedded AnyClip Player is before you in a browser, the Player CSS classes are accessed by clicking CTRL+ SHIFT+ I or FN+F12 in Windows or in Chrome choose the Controls menu → More Tools→Developer Tools. Choose Options + ⌘ + J if you have a Mac.
The Player-specific classes are usually identified by the attribute data-lrecss
We will cover the CSS classes that control the following visual elements of the Player as shown in the image below
The video’s title that appears on the player
The Playback slider
The Player button
Please note that there are other classes whose attributes can be changed and which govern the Player’s look & feel. This document presents only a few examples. An experienced CSS coder can implement a multitude of other styling options on a page where AnyClip is embedded.
It goes without saying that once all changes have been made to the CSS stylesheet you must copy and then paste the new CSS code in the relevant css style sheet linked to the page where AnyClip’s Player is embedded
Customizing the Video Title
The relevant class to change the video title is LRE-TITLE-TEXT CONTENT. Once Chrome’s Developer Tools are before you, use Chrome’s Inspector Tool by clicking it (or choose CTRL + SHIFT+C) and hover over the Video title as shown in the Player. Alternatively, search for class LRE-TITLE-TEXT CONTENT in the Elements pane of the browser.
Once the class has been selected, click the + symbol in the Developer Tools pane (New Style Rule) in order to create a new rule i.e. edit the rules of the class: color, font, font size or any other available rule.
Important
you need to use the CSS attribute “!Important” at the end of each line to make sure the new CSS code is not overridden by other CSS code with higher specificity.
AnyClip Player, Element Pane and New Rule View
Example 1- Change the Title’s Font & Color
In this example, we change the font and size of the title with the following code (which you can copy/paste to the Style Pane:
lre-title-text-content {
font-size: 25px;
font-family: cursive;
}
The result appears below. Here we changed the font to 25 pixels and changed the font to cursive.
Customizing the Player Slider
The class governing the Player playback slider is VJS-PROGRESS-HOLDER VJS-SLIDER. Similarly to the section above, choose CTRL + SHIFT+C and hover over the Player slider shown below in purple to locate the relevant class. Alternatively, search for the class VJS-PROGRESS-HOLDER VJS-SLIDER in the Elements pane of the browser.
Once the class has been selected, click the + symbol in the Developer Tools pane (New Style Rule) in order to create a new rule or edit the rules of the class: color, height (thickness) etc.
Make sure to end any new code with the attribute “!Important”.
To change the rules governing the section of the Player slider showing how much of the video has been played back, edit the rule of class VJS-PLAY-PROGRESS VJS SLIDER-BAR.
Player / Elements / New Rule View
Example 2 - Customizing the Progress Slider
Here we change the Playback slider to make it a bit thicker (10px) and then change its color to black. The code is shown below:
.vjs-progress-holder.vjs-slider {
height: 10px;
background-color: black !important;
}
The result is as follows:
Example 3 - Customize the Progress Bar
Here we change the color of the slider showing the portion of the video already played back (shown above in purple) to the color “aqua”. The code and the result are shown below.
.vjs-play-progress.vjs-slider-bar {
background-color: aqua !important;
}
Customizing the Play/Pause Button
The class governing the Play button on the Playback slider is VJS PLAY CONTROL VJS CONTROL VJS BUTTON. Depending on the state of the Player, selecting the Play button with the Inspector Tool will scroll to the aforementioned class or the Class VJS-PLAY-CONTROL VJS-CONTROL VJS-BUTTON VJS-PAUSED (when the video is paused).
Proceed to make styling changes as described above. Once all your coding changes have been completed, click the Inspector Stylsheet link on the right-hand side in the Styles pane, copy all the changes you’ve made and paste onto your CMS.
Player / Elements / New Rule View
Example 4 - Changing the height of the Play/Pause button
In this example we change the height of the Player’s Play/Pause button to 25px. The code and result are shown below.
button.vjs-play-control.vjs-control.vjs-button.vjs-paused {
height: 25px !important;
}
Further Customization Options
As described above there are almost endless possibilities that allow you to change AnyClip’s Player using simple CSS code. Here are a few more classes and options you can use to customize the Player’s look and feel:
Make Volume button customization, customize the class
.vjs-mute-control .vjs-control .vjs-button
Make the title disappear, use the code
.lre-title-text-content {
display:none !important;
}
Make the Volume button/Slider changes, customize the class
}
Button - - .vjs-mute-control .vjs-control .vjs-button
Slider - .vjs-volume-level
Customize the carousel padding customize the class -
.ac-lre-playlist-slide
Make the full-screen disappear
.vjs-fullscreen-control{
Display: none;
}
Change/Customize the Colors of the Intelligent Player
1. Play Progress Bar
.ac-lre-wrapper.luminous-theme .ac-player-wrapper .ac-lre-player .video-js .vjs-play-progress{
background-color: Color Hex;
}
2. Volume Level
.ac-lre-wrapper.luminous-theme .ac-player-wrapper .ac-lre-player .video-js .vjs-volume-level {
background-color: Color Hex;
}
3. Time Tooltip
.ac-lre-wrapper.luminous-theme .ac-player-wrapper .ac-lre-player .video-js .vjs-progress-control .vjs-progress-holder .vjs-mouse-display .vjs-time-tooltip {
background-color: Color Hex;
box-shadow: inset -2px -2px 3px 0px Color Hex;
}
Customize the Stories Player
1. Half Line
.ac-lre-wrapper.luminous-theme .ac-player-wrapper .ac-lre-player .video-js.trending-articles-mode .trending-articles-container .nav-item-hit-area .navigation-item.currently-playing::before {
background-color: #B80000 !important;
}
2. Full Progress Bar
.ac-lre-wrapper.luminous-theme .ac-player-wrapper .ac-lre-player .video-js.trending-articles-mode .trending-articles-container .nav-item-hit-area .navigation-item.played {
background-color: #B80000 !important;
}
3. Read More Link
.ac-lre-wrapper.luminous-theme .ac-player-wrapper .ac-lre-player .video-js.trending-articles-mode .lre-vjs-video-title-block .lre-landing-page-link .read-more {
color: #B80000 !important;
}
4. Arrow & Border
.ac-lre-wrapper.luminous-theme .ac-player-wrapper .ac-lre-player .video-js.trending-articles-mode .lre-vjs-video-title-block .lre-landing-page-link .lre-landing-page-icon {
border: 2px solid #b80000 !important;
}
.ac-lre-wrapper.luminous-theme .ac-player-wrapper .ac-lre-player .video-js.trending-articles-mode .lre-vjs-video-title-block .lre-landing-page-link .lre-landing-page-icon::before {
border-bottom: 3px solid #b80000 !important;
border-right: 3px solid #b80000 !important;
}
Customize the Player’s Margin
ac-reset{
Margin-bottom: Xpx;
Margin-top: Xpx;}