new buffer implementation

This commit is contained in:
kKaskak 2023-10-04 12:10:32 +03:00
parent ef03292eb2
commit 1662abea20
2 changed files with 16 additions and 4 deletions

View file

@ -7,7 +7,19 @@
.buffering-loader {
flex: none;
width: 10rem;
height: 10rem;
max-width: 15rem;
max-height: 15rem;
animation: fadeInOut 2s infinite;
display: block;
width: auto;
height: auto;
}
}
}
@keyframes fadeInOut {
0% { opacity: 0.2; }
50% { opacity: 1; }
100% { opacity: 0.2; }
}

View file

@ -631,7 +631,7 @@ const Player = ({ urlParams, queryParams }) => {
/>
{
videoState.buffering ?
<BufferingLoader className={styles['layer']} />
<BufferingLoader className={styles['layer']} logo={player?.metaItem?.content?.logo} />
:
null
}