Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
@use '../../../styles/mixins' as *;
.player {
width: 100%;
position: relative;
overflow: hidden;
@media (hover: hover) and (pointer: fine) {
:global(.vjs-control-bar .vjs-control:hover .vjs-control-text) {
/* This ensures the text isn't hidden by default VJS accessibility rules */
display: block !important;
visibility: visible !important;
width: auto !important;
height: auto !important;
/* stylelint-disable-next-line property-no-deprecated */
clip: auto !important; /* necessary to make the control text visible */
margin: 0 !important;
/* Base tooltip styles */
position: absolute;
bottom: 45px;
left: 50%;
transform: translateX(-50%);
white-space: nowrap;
z-index: 1000;
padding: 5px 10px;
background: rgb(20 20 20 / 90%);
color: #fff;
border-radius: 4px;
font-size: 12px;
line-height: 1.2;
pointer-events: none; /* Prevents tooltip from flickering when mouse hits it */
/* If there's no text content, it stays invisible */
&:empty {
display: none !important;
}
}
/* Prevent the "Mute"/"Unmute" tooltip from showing when interacting with the volume slider.
* Since the slider is part of the volume panel container, hovering it technically
* counts as hovering the mute control context. We force-hide the tooltip
* unless the cursor is explicitly over the mute button icon itself.
*/
:global(.vjs-volume-panel:hover .vjs-mute-control:not(:hover) .vjs-control-text) {
display: none !important;
}
/* Move the first and last element slightly right and left to prevent them from overflowing respectively */
:global(.vjs-control:first-child:hover .vjs-control-text) {
left: 0;
transform: translateX(6px);
&::after {
left: 15%;
}
}
:global(.vjs-control:last-child:hover .vjs-control-text) {
left: auto;
right: 0;
transform: translateX(-6px);
&::after {
left: auto;
right: 15%;
transform: translateX(50%);
}
}
/* Disables the tooltip for the bitrate selector */
:global(.vjs-control-bar .vjs-control:hover .vjs-menu .vjs-control-text) {
display: none !important;
}
}
}