简体   繁体   中英

Call JavaScript code from file in HTML

I'm currently trying to play a FLAC audio file in HTML and come across this website: https://www.wakamoleguy.com/2014/flac-over-webrtc-with-sipjs/

It wanted me to go download some JavaScript code and add this to the top of the html:

<script src="aurora.js"></script>
<script src="flac.js"></script>
<script src="sip.js"></script>

After that, I downloaded flac.js , aurora.js and sip.js . But the problem is that only sip.js came as a file, while the rest came as folders. I don't know if it is possible to call a folder called flac.js or if I can call the index.js inside maybe?

flac.js and aurora.js linked me to a GitHub link, and I'm not sure if I'm meant to be using the code that way they posted it. I have nearly no clue about JavaScript but only want this to work.

You have to go to "releases" page on github:
Aurora.js: https://github.com/audiocogs/aurora.js/releases
Flac.js: https://github.com/audiocogs/flac.js/releases

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM