forked from EXT/VR180-Web-Player
Fix poster display issue on VR exit
- Added video.load() to resetToOriginalState() function - Forces video element to reload and show poster image instead of first frame - Ensures proper reset to original state after exiting VR
This commit is contained in:
@@ -879,6 +879,9 @@ function resetToOriginalState() {
|
|||||||
video.pause();
|
video.pause();
|
||||||
video.currentTime = 0;
|
video.currentTime = 0;
|
||||||
video.controls = false; // Disable native controls
|
video.controls = false; // Disable native controls
|
||||||
|
|
||||||
|
// Force video back to poster state by reloading
|
||||||
|
video.load();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show the play button in center position
|
// Show the play button in center position
|
||||||
|
|||||||
Reference in New Issue
Block a user