标签,属性
<!doctype html>
<html>
<head>
</head>
<body>
<div class="items">
<button type="button" onClick="stop()">停止播放</button>
</div>
<script async type="text/javascript" src="Decoder.js"></script>
<script>
var pauseInput=0;
function readLocalFile () {
var localFile = document.getElementById("uploadFile").files[0];
var reader = new FileReader();
const _this = this;
reader.readAsArrayBuffer(localFile);
reader.onload = function() {
var bytes = new Uint8Array(this.result);
// 头信息
const fileHead1 = bytes.slice(0, 40);
const bodyData = bytes.slice(40, bytes.length);
//fileHead1 即为前40个字节
//bodyData为除40个字节剩下的码流数据
}
console.log("3");
}
</script>
<s