mirror of https://bitbucket.org/ausocean/av.git
audio-player: removed unused elements
This commit is contained in:
parent
99acedb343
commit
f0b198b612
|
@ -12,7 +12,6 @@
|
||||||
<div class="jumbotron">
|
<div class="jumbotron">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<input type="file" id="input">
|
<input type="file" id="input">
|
||||||
<textarea id="content"></textarea>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -6,9 +6,9 @@ function playFile() {
|
||||||
const input = event.target.files[0]
|
const input = event.target.files[0]
|
||||||
|
|
||||||
const reader = new FileReader()
|
const reader = new FileReader()
|
||||||
reader.onload = event => playData(event.target.result) // desired file content
|
reader.onload = event => playData(event.target.result)
|
||||||
reader.onerror = error => reject(error)
|
reader.onerror = error => reject(error)
|
||||||
reader.readAsArrayBuffer(input) // you could also read images and other binaries
|
reader.readAsArrayBuffer(input)
|
||||||
}
|
}
|
||||||
|
|
||||||
function playData(array){
|
function playData(array){
|
||||||
|
|
Loading…
Reference in New Issue