mirror of
https://git.waldn.net/git/knotteye/satyr.git
synced 2025-09-07 15:52:44 +00:00
Add play button functionality for web player
This commit is contained in:
@ -196,6 +196,12 @@ async function initPlayer(usr) {
|
||||
// Listen for error events.
|
||||
player.addEventListener('error', onErrorEvent);
|
||||
|
||||
video.addEventListener('play', () => {
|
||||
document.getElementById('playbtn').style.visibility = 'hidden';
|
||||
});
|
||||
video.addEventListener('pause', () => {
|
||||
document.getElementById('playbtn').style.visibility = 'visible';
|
||||
});
|
||||
// Try to load a manifest.
|
||||
// This is an asynchronous process.
|
||||
try {
|
||||
|
Reference in New Issue
Block a user