feat: add {stream} opt to custom protocol registry to configure media player (#22955)

This commit is contained in:
Paul Frazee 2020-06-08 11:49:36 -05:00 committed by GitHub
parent 261f385b5e
commit c6c022dc46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 719 additions and 4 deletions

14
spec/fixtures/pages/video.html vendored Normal file
View file

@ -0,0 +1,14 @@
<html>
<body>
<video id="videoPlayer" src="/video.webm" autoplay muted></video>
<script>
const { ipcRenderer } = require('electron');
videoPlayer.addEventListener('play', e => {
ipcRenderer.send('result', 'play');
});
videoPlayer.addEventListener('error', e => {
ipcRenderer.send('result', 'error');
});
</script>
</body>
</html>

BIN
spec/fixtures/video-source-image.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB