electron/spec/fixtures/pages/video.html

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
348 B
HTML
Raw Normal View History

<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>