[Webkit-unassigned] [Bug 229485] New: HTMLVideoElement.currentTime keeps zero for audio source if HTMLVideoElement.muted is true
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 24 18:11:47 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=229485
Bug ID: 229485
Summary: HTMLVideoElement.currentTime keeps zero for audio
source if HTMLVideoElement.muted is true
Product: WebKit
Version: Safari 14
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: taoyagi at mozilla.com
HTMLVideoElement.currentTime keeps zero for audio source if HTMLVideoElement.muted is true. It can't reproducible in Chrome of Firefox.
Example code:
<script>
const video = document.createElement('video');
video.src = 'your_audio_file.mp3';
video.loop = true;
video.muted = true;
const check = () => {
setTimeout(check, 1000);
console.log(video.currentTime);
};
check();
</script>
Another example:
You can also confirm the problem in
https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_audio_all
by replacing the code with the following.
<video muted controls>
<source src="your_audio_file.mp3" type="audio/mpeg">
</video>
You will see zero duration time on the control panel.
OS: macOS Big Sur 11.5.2
Browser: Safari 14.1.2
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210825/45ee43ed/attachment.htm>
More information about the webkit-unassigned
mailing list