// to mute
hplayer.mute();
// to unmute
hplayer.unmute();
Some advanced hplayer function’s to manage the player on fly.
You can directly mute and unmute the video player using following function.
// to mute
hplayer.mute();
// to unmute
hplayer.unmute();
You can change the resolution of the video on fly to lowest, highest and auto using following methods.
// To set the lowest quality resolution.
hplayer.setLowQualityResolution();
// To set the highest quality resolution.
hplayer.setHighQualityResolution();
// To set auto quality
hplayer.setAutoQuality()
Note
|
You can set/select your preferred resolution using hplayer.setLowQualityResolution(); or hplayer.setHighQualityResolution(); by passing argument qualityVariantIndex (you get from the hplayer.player_.getVariantTracks();) |
You can hide and display controls UI of the player.
// Display UI all controls panel
hplayer.showUiControls();
// Hide UI all controls panel
hplayer.hideUiControls();
You can change the button tooltips dynamically in your own language.
// Change tooltip
hplayer.changeButtonTooltipContext('YourButtonClassName', 'YourContext');
Applies playRangeStart and playRangeEnd to the given timeline. This will only affect non-live content.
// Apply the setting's
const options = {
player_configurations: {
playRangeStart: 20,
playRangeEnd: 80
}
}