mirror of https://github.com/electron/electron
15 lines
348 B
HTML
15 lines
348 B
HTML
<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>
|