All Projects → feross → unmute-ios-audio

feross / unmute-ios-audio

Licence: MIT license
Enable/unmute WebAudio on iOS, even while mute switch is on

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to unmute-ios-audio

Lazy
Kule Lazy4 / CSS Framework
Stars: ✭ 147 (+53.13%)
Mutual labels:  safari
Tua Body Scroll Lock
🔐 Body scroll locking that just works with everything
Stars: ✭ 236 (+145.83%)
Mutual labels:  safari
Tonalhub
Make your GitHub repository sing. Tonalhub will take the last year's commit activity and play it with web audio.
Stars: ✭ 18 (-81.25%)
Mutual labels:  web-audio
Ultratabsaver
The open source Tab Manager Extension for Safari.
Stars: ✭ 178 (+85.42%)
Mutual labels:  safari
Ocaramba
C# Framework to automate tests using Selenium WebDriver
Stars: ✭ 234 (+143.75%)
Mutual labels:  safari
Extension Create
Create modern cross-browser extensions with no build configuration.
Stars: ✭ 167 (+73.96%)
Mutual labels:  safari
Bettersafariview
A better way to present a SFSafariViewController or start a ASWebAuthenticationSession in SwiftUI.
Stars: ✭ 105 (+9.38%)
Mutual labels:  safari
extendable-media-recorder
An extendable drop-in replacement for the native MediaRecorder.
Stars: ✭ 123 (+28.13%)
Mutual labels:  web-audio
Supercookie
💭 Inspiration
Stars: ✭ 3,630 (+3681.25%)
Mutual labels:  safari
voder
An emulation of the Voder Speech Synthesizer.
Stars: ✭ 19 (-80.21%)
Mutual labels:  web-audio
Remotedebug Ios Webkit Adapter
Debug Safari and WebViews on iOS from tools like VS Code and Chrome DevTools
Stars: ✭ 2,563 (+2569.79%)
Mutual labels:  safari
Wwdc
You don't have the time to watch all the WWDC session videos yourself? No problem me and many contributors extracted the gist for you 🥳
Stars: ✭ 2,561 (+2567.71%)
Mutual labels:  safari
Link Preview Js
Parse and/or extract web links meta information: title, description, images, videos, etc. [via OpenGraph], runs on mobiles and node.
Stars: ✭ 240 (+150%)
Mutual labels:  safari
Alfred Safari Assistant
Alfred 3+ workflow to search and use Safari bookmarks, history, reading list and tabs.
Stars: ✭ 169 (+76.04%)
Mutual labels:  safari
managed ml systems and iot
Managed Machine Learning Systems and Internet of Things Live Lesson
Stars: ✭ 35 (-63.54%)
Mutual labels:  safari
Safiler
Safari local file reader
Stars: ✭ 118 (+22.92%)
Mutual labels:  safari
Browser
The browser extension vault (Chrome, Firefox, Opera, Edge, Safari, & more).
Stars: ✭ 3,305 (+3342.71%)
Mutual labels:  safari
angular-audio-context
An Angular wrapper for the Web Audio API's AudioContext.
Stars: ✭ 20 (-79.17%)
Mutual labels:  web-audio
snoozz-tab-snoozing
A Web Extension to declutter windows by snoozing tabs for later
Stars: ✭ 105 (+9.38%)
Mutual labels:  safari
Safari Extensions
Awesome Safari extensions
Stars: ✭ 252 (+162.5%)
Mutual labels:  safari

unmute-ios-audio travis npm downloads javascript style guide

Enable/unmute WebAudio on iOS, even while mute switch is on

On Safari for iOS, audio is allowed to play when the device's mute switch is enabled, but only for HTML5 audio tags, and not for Web Audio. This module fixes that and adds consistency and reliability to web audio in Safari. Note that a "user activation" in the form of a click or touchstart event is still required to play audio. This package merely unmutes Web Audio even while the mute switch is enabled on the device.

This package works by playing a short, silent sound using an <audio> tag and an AudioContext whenever the user interacts with the page. That's it.

Built for and used on BitMidi, a free MIDI database. Works in the browser with browserify!

install

npm install unmute-ios-audio

usage

const unmuteAudio = require('unmute-ios-audio')

// Call once, as early as possible in the page lifecycle
unmuteAudio()

API

unmuteAudio()

Enable/unmute the WebAudio API on iOS, even while the mute switch is on.

Call this function as early as possible so that the user event handlers can be registered and you don't miss any user interactions which could have been used to unmnute the audio.

thanks

The techniques used within this package were inspired by:

license

MIT. Copyright (c) Feross Aboukhadijeh.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].