fix(web): resolve 'any' warning

This commit is contained in:
djbravo06 2026-07-22 16:33:46 +00:00
parent 3b9c25c626
commit 0c67c297aa

View file

@ -242,8 +242,9 @@
$effect(() => {
// reactive on `assetFileUrl` changes
if (videoPlayer && assetFileUrl) {
if (!(videoPlayer as any)._logVolumeApplied) {
(videoPlayer as any)._logVolumeApplied = true;
const player = videoPlayer as HTMLVideoElement & { _logVolumeApplied?: boolean };
if (!player._logVolumeApplied) {
player._logVolumeApplied = true;
const originalDesc = Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'volume')!;
let currentUiVolume = videoPlayer.volume;
Object.defineProperty(videoPlayer, 'volume', {