Skip to content
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

[Bug]: Using net.fetch with bypassCustomProtocolHandlers fails to load local mp4 files #40447

Open
3 tasks done
BrandonXLF opened this issue Nov 3, 2023 · 6 comments
Open
3 tasks done

Comments

@BrandonXLF
Copy link
Contributor

Preflight Checklist

Electron Version

27.0.3

What operating system are you using?

Windows

Operating System Version

Windows 11 22H2

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

The mp4 file should load just as it would without the protocol handle set.mp4

Actual Behavior

The document for the mp4 files loads but the video itself does not.

Testcase Gist URL

https://gist.github.com/BrandonXLF/465e91ee96fe29514d4e9d998e590d76

Additional Information

No response

@BrandonXLF BrandonXLF closed this as not planned Won't fix, can't repro, duplicate, stale Nov 3, 2023
@BrandonXLF BrandonXLF changed the title [Bug]: Using net.fetch with bypassCustomProtocolHandlers fails to load mp4 files [Bug]: Using net.fetch with bypassCustomProtocolHandlers fails to load local mp4 files Nov 3, 2023
@BrandonXLF BrandonXLF reopened this Nov 3, 2023
@electron-issue-triage
Copy link

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

@BrandonXLF
Copy link
Contributor Author

Reproducible in v29.1.0

@wangf1978
Copy link

same issue with me

1 similar comment
@liuxini
Copy link

liuxini commented May 11, 2024

same issue with me

@Matt95
Copy link

Matt95 commented May 14, 2024

I am getting the same issue even with bypassCustomProtocolHandlers: false

@Matt95
Copy link

Matt95 commented May 22, 2024

I am getting the same issue even with bypassCustomProtocolHandlers: false

Resolved, adding stream privilege on the protocol was required for correctly loading mp4 file types:

protocol.registerSchemesAsPrivileged([
     {
       scheme: 'scheme-name',
       privileges: {
         stream: true,
       }
     }
  ])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants