Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use the AudioContext on all the browsers. webkitAudioContext is missing in decoder.js #3983

Open
phyohtetpaing opened this issue Jan 3, 2025 · 3 comments
Labels

Comments

@phyohtetpaing
Copy link

phyohtetpaing commented Jan 3, 2025

1st Bug description

Cannot use the AudioContext on all the browsers. webkitAudioContext is missing in decoder.js

2nd Bug description

Draggable seeking bar is missing drag and skip(speed for the skip, drag/skip position with % of width)

Environment

  • Browser: Safari, Chrome etc on some IOS devices not render without webkitAudioContext
var AudioContext = window.AudioContext // Default
    || window.webkitAudioContext // Safari and old versions of Chrome
    || false; 

if (AudioContext) {
    //ToDo
    var ctx = new AudioContext;
    // ...
} else {
    // Web Audio API is not supported
    // Alert the user
    alert("Sorry, but the Web Audio API is not supported by your browser. Please, consider upgrading to the latest version or downloading Google Chrome or Mozilla Firefox");
}
@katspaugh
Copy link
Owner

This is very edge-case (what browsers are we talking about?) but please feel free to submit a pull request.

@phyohtetpaing
Copy link
Author

On iOS devices, it will not work without webkitAudioContext.

@katspaugh
Copy link
Owner

Apparently only old versions, pre-2021.
Screenshot 2025-01-03 at 14 09 29

@phyohtetpaing phyohtetpaing changed the title cannot use the AudioContext on all the browsers. webkitAudioContext is missing in decoder.js Cannot use the AudioContext on all the browsers. webkitAudioContext is missing in decoder.js Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants