-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Unable to play mp4 files stored in local file system using<video> tag #153
Unable to play mp4 files stored in local file system using<video> tag #153
Comments
@sierrodc Can you provide the code that you are using to load the video files. I believe /cc @paulcbetts ^^ thoughts |
Hi, I've uploaded sample source code here: You need to change mp4 file url in the index.html page. Thanks. |
I think @MarshallOfSound has the right idea, we should probably provide an opt-in escape hatch for this in electron-compile, something like a |
Got it. Do you know if there's a workaround for this? I've also tried (after adding the video during compilation time) to overwrite using fs the video in output but in this case always the "compiled" video is used. Is this a problem related to electron-forge or electron? Is there a workaround? what about electron-packager/electron-builder? I really need this functionality. Do you have any suggestions? |
@sierrodc The easiest workaround is to register a custom protocol yourself and bypass |
I'm gonna have a look at this tomorrow, I want to make this a bit harder for people because I don't want there to be a super easy "Copy paste this to disable security" line |
Hi, a feedback:
Thank you again. |
@sierrodc
but the filepath is any file served from the application (including the .ts), or external to it. It seems hardcoding the extension is the best way for now, but interested if others have ideas. |
I'm trying to create a video player using electron.
Video files (mp4) are stored locally in the filesystem.
It is working correctly if I run
But the video is not loaded if I run the generated executable created by
I'm using the latest version of packages (electron-forge 2.8.2 that still uses electron 1.4.15)
How to reproduce:
The text was updated successfully, but these errors were encountered: