Electron

升级Chrome核对清单 | Upgrading Chrome Checklist

Upgrading Chrome Checklist

本文档旨在概述Electron中每次Chrome升级所需的步骤。

除了更新用于任何Chrome / Node API更改的Electron代码之外,还需要执行这些操作。

验证ffmpeg支持

电子版本ffmpeg默认包含专有编解码器。没有这些编解码器的版本也随每个发行版一起构建和分发。每次Chrome升级都应验证切换此版本是否仍受支持。

您可以ffmpeg通过加载以下页面来验证Electron对多个版本的支持。它应该ffmpeg与Electron分发的默认库一起工作,ffmpeg而不适用于没有专有编解码器的库。

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Proprietary Codec Check</title> </head> <body> <p>Checking if Electron is using proprietary codecs by loading video from http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4</p> <p id="outcome"></p> <video style="display:none" src="http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4" autoplay></video> <script> const video = document.querySelector('video') video.addEventListener('error', {target}) => { if (target.error.code === target.error.MEDIA_ERR_SRC_NOT_SUPPORTED) { document.querySelector('#outcome').textContent = 'Not using proprietary codecs, video emitted source not supported error event.' } else { document.querySelector('#outcome').textContent = `Unexpected error: ${target.error.code}` } }) video.addEventListener('playing', () => { document.querySelector('#outcome').textContent = 'Using proprietary codecs, video started playing.' }) </script> </body> </html>