Open dukeeagle opened 1 year ago
I tested on Windows and it worked just fine, did you encounter this issue on any platform other than macOS? also the linked vide is not very large in size but it worked fine on Windows.
Thanks for testing it! I've only tested on macOS yeah. The linked video is notable because it's <1 minute but nearly 0.5 gb. All my videos with this sort of high bitrate have had this error on Tauri for some reason. Can anyone with macOS confirm if this issue is happening on their end?
also if anyone on Linux experiencing the same issue, let us know
The weird thing is that all platforms are using the same logic under the hood to serve the file to the webview so I am actually clueless on what might be happening here, I will let this issue for someone with macOS to triage
This video can play with my macOS 13.4, but not as smoothly as safari, the video progressbar is keep going, but video frames stucked after play few seconds.
Thanks for confirming @wvq ! Very curious if Tauri's file server is patchable here or if the scope of fixing this is quite large
Still not resolved? I'm facing the exact same issue.
I'm facing this issue as well. I have an m2 mac mini with 8gb of ram. At first I thought it was an issue where I was running out of ram, but same as OP, smaller files with high bitrates lock up right out of the gate for me. If I compress the file with handbrake, it then plays fine.
Denjell recommended I try the Tauri v2 alpha because there are significant improvements to local file handling, but I'm having a heck of a time getting my project to work at all in v2 as there's no documentation. convertFileSrc results in "Failed to load resource: unsupported URL". I think I'm going to shelve video support in my app until v2 is stable.
Okay Fabian helped me fix that error, it turns out the assetScope was moved in tauri.conf for v2.
Unfortunately this issue is still very much present in v2, my video locks up exactly as it did in v1.5. I hope someone can take a good look at this issue soon!
You can always load this video on backend as the bytes array, split to bytes chunks and then connect to one part in JS - kind of work around. Or you can also put this video on kind of CDN like file server
I'm new to Tauri (& Rust) and also running into this issue on macOS. @dukeeagle did you ever find a good workaround to get this working in Tauri? Thank you!
Hello, I also have this problem, I need to play the local video, and I need to get the path, I started using the input element and URL.createObjectURL to play the video, it was smooth, but I couldn't get the path to the video, So I used the Open api and convertFileSrc to achieve the same effect, but the playback was very tight, anyone know how to solve it ? thank you!🙏
@amrbashir any updates on this?
There are no updates.
Can you compare the behavior with tauri dev --release
(if you use npm it needs another -- npm run tauri dev -- --release
)? If it is just as laggy then it's likely not our implementations fault but something with wkwebview's custom scheme implementation 🤔
Also, does someone have more example videos? The one from OP works fine for me.
Tried running tauri dev --release
and I am running macOS - it plays a couple of seconds then nothing happens. My video file is 50,4 mb.
@FabianLars what env did you test it on?
MacBook m2 pro 14.4.1 with OP's repro
Describe the bug
Hi everyone!
I'm trying to play a video in the front end like so
This works great in most cases, but it either produces random colors or completely fails to load for large h264 videos (11 GB, 60 minutes) or for short yet extremely uncompressed h264 videos (500 MB, 60 seconds)
Is this because the Tauri webserver isn't designed to handle such high throughput? Am I better off creating my own custom uri server for media files like @spacedriveapp?
I'd prefer to use Tauri's code if there's a way to make it work Very curious here.
Reproduction
View my full recreation of this bug here
Download one of the problematic videos here
I also served these same videos with a simple Node web server without any issue. I worry that the Tauri's custom file server may be causing issues here
Expected behavior
I should be able to play any video that the Safari can play when served from a local web server
Platform and versions
Stack trace
No response
Additional context
Originally discussed with @FabianLars in Discord!