feat: add {stream} opt to custom protocol registry to configure media player (#22955)
This commit is contained in:
parent
261f385b5e
commit
c6c022dc46
15 changed files with 719 additions and 4 deletions
14
spec/fixtures/pages/video.html
vendored
Normal file
14
spec/fixtures/pages/video.html
vendored
Normal 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
BIN
spec/fixtures/video-source-image.webp
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
Loading…
Add table
Add a link
Reference in a new issue