-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v2,linux] video tag doesn't fire event 'ended' in app, but works in browser on debian 11 #1729
Comments
@lyimmi - is this the same as your bug? |
Could be, I'll check it out tonight! |
Okay, it seems to be a codec issue of some sort. If I change the video source to webm it works just fine. webem video It looks like chromium had this issue as well, but they fixed it, can't find anything on WebKitGTK though. However, one of the suggestion works from the bug report. Not as nice, but its a fix. videoTag.addEventListener("timeupdate", (event) => {
if(event.target.duration - event.target.currentTime < 0.2) {
let ended = new Event("ended");
event.target.dispatchEvent(ended);
}
}) |
Thanks for checking @lyimmi 🙏 I was hoping this might help you with your issue. @kspiridonov looks like there's a workaround for this. WebkitGTK appears to have a few issues around video tags. |
@leaanthony not a problem, seems like we have to jump through some hoops with WebkitGTK, otherwise it would be boring. 😅 |
If you don't want boring, try compiling WebKit 😜 |
@leaanthony @lyimmi thank you for quick response :). It seems workaround works. As about compiling WebKitGTK - may be i'll try...next time :)) |
Added docs here: https://wails.io/docs/next/guides/linux#video-tag-doesnt-fire-ended-event |
Description
Operating System: Debian GNU/Linux 11 (bullseye)
Kernel: Linux 5.10.0-16-amd64
Architecture: x86-64
Wails CLI v2.0.0-beta.43
go version go1.18.4 linux/amd64
videoTag.addEventListener('ended', (event) => { console.info('ended'); });
doesn't fired when video finished in my simple test app, but in browser it works ok.To Reproduce
Expected behaviour
video in app should repeated in cycle
Screenshots
No response
Attempted Fixes
No response
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: