Flash 已经被淘汰,并且不再受到大多数现代浏览器的支持。Adobe 也在 2020 年底停止了对 Flash Player 的支持。因此,不建议在 Linux 系统中安装 Flash。如果你需要在 Linux 中运行类似 Flash 的功能,可以考虑以下替代方案:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Video Example</title>
</head>
<body>
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</body>
</html>
// main.js
const { app, BrowserWindow } = require('electron');
function createWindow () {
const win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true
}
});
win.loadFile('index.html');
}
app.whenReady().then(createWindow);
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit();
}
});
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();
}
});
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Electron App</title>
</head>
<body>
<h1>Hello, Electron!</h1>
</body>
</html>
由于 Flash 已经被淘汰,建议使用现代的多媒体技术和框架来替代 Flash 的功能。HTML5、WebAssembly 和 Electron 都是很好的选择,它们提供了更好的性能和安全性,并且得到了广泛的支持。
领取专属 10元无门槛券
手把手带您无忧上云