效果演示
软件包下载 https://pan.baidu.com/s/1mQOPL5hF7h7tZsw5KbshnQ?pwd=7h2s
使用说明
部分源码如下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>QReader</title>
<script src="jslib/ruffle/ruffle.js"></script>
<style>
html,
body,
#swf-container {
margin: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
</style>
</head>
<body>
<div id="swf-container"></div>
<script>
(async function () {
var ruffle = window.RufflePlayer.newest();
var player = ruffle.createPlayer();
player.style.width = "360px";
player.style.height = "510px";
player.config = {
autoplay: "on",
unmuteOverlay: "hidden",
logLevel: "info"
};
var container = document.getElementById("swf-container");
container.appendChild(player);
player.load("bin/qreader.swf?data=data%2fdata.xml");
})();
</script>
</body>
</html>