https://github.com/h5sh/audioaccess-js
How to Access Audio in JavaScript
https://github.com/h5sh/audioaccess-js
Last synced: about 1 year ago
JSON representation
How to Access Audio in JavaScript
- Host: GitHub
- URL: https://github.com/h5sh/audioaccess-js
- Owner: H5SH
- Created: 2024-02-12T20:26:41.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-16T16:12:10.000Z (over 2 years ago)
- Last Synced: 2025-05-19T13:16:36.894Z (about 1 year ago)
- Language: JavaScript
- Size: 227 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Audio Controls in Java Script
By default browsers like google chrome does not allow media play before user interaction with the page, use can fake an interaction using fireEvent or userEvent librarires (which I failed to do) or get access to users mediaDevices (you can also get access to video but that was not required)
# AudioContext
AudioContext class is used to genrate audio
# VisibilityState
document.visibility tells that wahether user is on the page or not