1 受“Ruffle 2022.02.08 用于替代 adobe flash player 的插件。 - 『精品软件区』 - 吾爱破解 - LCG - LSG |安卓破解|病毒分析|[url]www.52pojie.cn[/url]”启发,测试web版ruffle2 官方(https://ruffle.rs/)的案例:Ruffle Web Demo
3 其js库:https://cdn.jsdelivr.net/npm/@ruffle-rs/ruffle
4 自己搭建web服务器,网页这样色的:
[HTML] 纯文本查看 复制代码 <!DOCTYPE html>
<html style="height: 100%">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Ruffle</title>
<script src="https://cdn.jsdelivr.net/npm/@ruffle-rs/ruffle"></script>
<script>
window.RufflePlayer = window.RufflePlayer || {};
window.addEventListener("load", (event) => {
const ruffle = window.RufflePlayer.newest();
const player = ruffle.createPlayer();
const container = document.getElementById("container");
container.appendChild(player);
player.load("Gold.swf");
});
</script>
</head>
<body style="height: 100%; margin: 0">
<div id="container" style="height: 100%"> </div>
</body>
</html>
5 运行结果,实测能用:
|