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

After seeking and pausing, can't play with play button but tapping anywhere else on screen plays music #266

Open
digital-constructor opened this issue Feb 25, 2024 · 1 comment

Comments

@digital-constructor
Copy link

digital-constructor commented Feb 25, 2024

Hi, it looks like SoundManager2 is no longer developed. Am I missing an obvious alternative that looks as good?

I'm seeing a bug where on iOS Safari (not on Mac Safari) after seeking and pausing, the play button doesn't work but tapping anywhere else on the screen resumes the music (in the 360 player). This also happens on https://www.schillmania.com/projects/soundmanager2/demo/360-player/canvas-visualization.html

Is the Web Audio standard suitable to replace SoundManager2 now?

Thanks for any help or pointing me in the right direction. Apologies if this is all obvious.

@digital-constructor digital-constructor changed the title After seeking and pausing, can't play with p[lay button but tapping anywhere else on screen plays music After seeking and pausing, can't play with play button but tapping anywhere else on screen plays music Feb 25, 2024
@scottschiller
Copy link
Owner

Thanks for the note. The demo linked might be close to 15 years old - and I'm glad the basics work, but apologize that it has slipped a bit over time. I recall being quite happy just to have that working on early iOS devices back then, including some pretty wild canvas hacks for IE 8, or similar.

SM2 has been in stasis for a time at this point; I have not pushed a new version since 2017. Since the mid-2010s, the Web Audio API has become very well-supported on desktop and mobile browsers, both. I would absolutely recommend a modern library these days, that wraps the Web Audio API.

I had debated releasing an update for SM2 that uses the Web Audio API, but it may be best that SM2 keeps its Flash / HTML5 + JS roots as its legacy. It makes me happy to feel that SM2 delivered when it was needed, in the early days when audio playback was very inconsistent and/or damn-near impossible in a consistent way across browsers like IE 6, Netscape and so on.

In part, I have not updated the official SM2 site because I haven't made a definitive decision on the library's future. 😅 I have an idea in mind, and I may get to something this year. It feels like it's time.

In the meantime, if you would like to try an experimental Web Audio-based version of SM2 and you have prior experience with using it, I hacked together a version for one of my other side projects that performs decently.

Finally, thank you for using, and/or trying out SM2. My first take at this was between 2000/2001 or thereabouts, for my own site and projects. I realized that what I had built might be useful to others, and that became a long-term goal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants