Video playback performance not equivalent to chromium-browser
See original GitHub issueDescribe the bug I am using electron from this vue-cli-plugin-electron-builder to play some local video files on a Raspberry Pi 3 b+. I set webSecurity to false, so playing local files is not a problem. I am trying to play the video file (mp4, 720p) via html video tag. It works.
Now something is odd about the video performance, when playing in fullscreen. Via the electron app the video slightly lags/stutters. However, playing the same file directly via the chromium-browser it runs fluent and smooth. I wonder why this could be, I thought they both use the same engine somehow ?
Are they any special settings in electron, electron-builder to enable a missing feature ?
To Reproduce Playing a local video file on a Raspberry Pi 3b+ via Electron, vs playing in Chromium-Browser .
Expected behavior Same video performance as in chromium-browser
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
- OS and version: Raspbian Buster
- node version: 10.15.2
- npm version: 6.14.2
- yarn version (if used):
- vue-cli-plugin-electron-builder version : 1.4.6
- electron version: 6.0.0
- other vue plugins used:
- custom config for vcp-electron-builder:
- (if possible) link to your repo:
Additional context
I built the app vie npm run electron:build -- --linux deb --armv7l
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
All you need to do is change the electron version and run npm install. Just beware of electron breaking changes.
I don’t know of any settings that could affect video playback performance. Try using the latest version of electron as that will use a more recent version of chromium which could be faster. Also, try playing the video in a vanilla electron app and see if it is still slow there.