Gathering detailed insights and metrics for w-howler
Gathering detailed insights and metrics for w-howler
Gathering detailed insights and metrics for w-howler
Gathering detailed insights and metrics for w-howler
npm install w-howler
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
29 Commits
2 Watching
2 Branches
1 Contributors
Updated on 06 Feb 2024
JavaScript (64.13%)
HTML (35.87%)
Cumulative downloads
Total Downloads
Last day
0%
6
Compared to previous day
Last week
-10.7%
25
Compared to previous week
Last month
4%
129
Compared to previous month
Last year
-96.8%
2,991
Compared to previous year
3
1
A wrapper howler for audio player.
To view documentation or get support, visit docs.
To view some examples for more understanding, visit examples:
audio play: web [source code]
Note: w-howler is not dependent on any package, has included
howler
andeventemitter3
.
Note: umd file includes with
lodash-es
, by using tree-shaking for dead-code elimination.
[Necessary] Add script for w-howler.
1<script src="https://cdn.jsdelivr.net/npm/w-howler@1.0.22/dist/w-howler.umd.js"></script>
Link: [dev source code]
1<body> 2 3 <script> 4 let WHowler = window['w-howler'] 5 </script> 6 7 <div style="margin:20px; padding-bottom:10px;"> 8 <div style="font-size:1.5rem; padding-bottom:5px;">1. Normal play</div> 9 <input type="file" onchange="whPlay1(this)"> 10 <pre id="msg1"></pre> 11 <button onclick="whStop1()">stop</button> 12 </div> 13 14 <script> 15 let wh1 = new WHowler() 16 17 function whPlay1(ele){ 18 let files=ele.files 19 let file=files[0] 20 let src=URL.createObjectURL(file) 21 22 //play 23 wh1.play(src) 24 25 //getSeek 26 setInterval(function(){ 27 document.querySelector('#msg1').innerHTML=JSON.stringify(wh1.getSeek()) 28 },1000) 29 30 } 31 32 function whStop1(){ 33 wh1.stop() 34 } 35 36 </script> 37 38 <div style="margin:20px; padding-bottom:10px;"> 39 <div style="font-size:1.5rem; padding-bottom:5px;">2. Function play</div> 40 <input type="file" onchange="whPlay2(this)"> 41 <pre id="msg2"></pre> 42 <button onclick="whStop2()">stop</button> 43 </div> 44 45 <script> 46 let wh2 = new WHowler() 47 48 function whPlay2(ele){ 49 let files=ele.files 50 let file=files[0] 51 let src=URL.createObjectURL(file) 52 53 //play 54 wh2.play(src) 55 56 //getSeek 57 setInterval(function(){ 58 document.querySelector('#msg2').innerHTML=JSON.stringify(wh2.getSeek()) 59 },1000) 60 61 //seek to 50% in 6 sec. 62 setTimeout(function(){ 63 wh2.seek(0.5) 64 },6000) 65 66 //pause in 9 sec. 67 setTimeout(function(){ 68 wh2.pause() 69 },9000) 70 71 //resume in 12 sec. 72 setTimeout(function(){ 73 wh2.resume() 74 },12000) 75 76 } 77 78 function whStop2(){ 79 wh2.stop() 80 } 81 82 </script> 83 84</body>
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 0/29 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
16 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More