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

Audio Won't play on iOS v17.1 #174

Open
netconstructor opened this issue Oct 23, 2023 · 8 comments
Open

Audio Won't play on iOS v17.1 #174

netconstructor opened this issue Oct 23, 2023 · 8 comments

Comments

@netconstructor
Copy link

I have been spending hours over here attempting to get the audio narration plugin working but I simply can't figure out why this won't function on my iPhone. Please note that I have only tested this with iOS version 17.1.

I am aware that iOS apparently requires an on click event to actually play the audio but my understanding is that this is actually in place for your plugin.

Thinking it might be related to my code I can confirm the same behavior is happening on the demo you have provided as well (after tapping the play button of course and testing different slides). What's interesting is that it makes a very brief sound (like you are unplugging an audio cable from a speaker system) but no audio is played even though the page seems to think it's playing and auto-transitions to the next side after the audio file seems to be done playing.

It's really strange behavior and I can't seem to figure it out.

Could someone please confirm this as well and/or a fix.

@netconstructor
Copy link
Author

I thought I should also note I have also tested this with the "modernized demo" mentioned in a closed issue from someone else (https://rajgoel.github.io/reveal.js-demos/#1/1/?topic=audio-slideshow)

... same problem

Please advise

@rajgoel
Copy link
Owner

rajgoel commented Oct 24, 2023

Please note that on https://rajgoel.github.io/reveal.js-demos/#1/1/?topic=audio-slideshow the audio only plays after the first fragment. Apart from that I cannot help with iOS.

@netconstructor
Copy link
Author

netconstructor commented Nov 15, 2023

Please note that on https://rajgoel.github.io/reveal.js-demos/#1/1/?topic=audio-slideshow the audio only plays after the first fragment. Apart from that I cannot help with iOS.

I’m not sure what you mean. If one visits the URL: https://rajgoel.github.io/reveal.js-demos/#1/1/?topic=audio-slideshow

and you tap the play button on the bottom left hand side then I am not hearing any audio playing however it does switch to the next side which also has an audio file and that seems to be triggered to play as well which it seems to do and again switches to the next slide after the audio file is done… the issue in all of these situations however is that there is no audio actually playing through the speaker.

I have run multiple tests and it’s always the same behavior. I love this plugin and the features implemented but of course it needs to actually play 🤓

Are their any known limitations of this plugin presenting it from working on certain browsers or OS…would love to use it but I’m confused on what is preventing the sound from actually playing.

@rajgoel
Copy link
Owner

rajgoel commented Nov 15, 2023

In the demo, the only audio file that you can hear is the tweeting of birds when you see "Listen to the birds". All other slides have a silent audio of 5 seconds, that is automatically generated as fallback when no audio file is provided.

@netconstructor
Copy link
Author

netconstructor commented Nov 16, 2023

@rajgoel I don't mean to sound repetitive but I have now tested this a few different times on iOS by navigating directly to that slide and pressing play as well as pressing play from the start of the slideshow, pressing play and letting it automatically switch to that specific slide you referenced... in all cases I simply hear no audio.

What I do here on that slide is a very brief faint sound which sounds similar to when you have a stereo amp with an AUX input and you plug something in/out.

Can you either confirm the same behavior or clarify if there is a reasons for this?

@netconstructor
Copy link
Author

netconstructor commented Nov 16, 2023

@rajgoel following up on my past reply; I wanted to confirm that when using a desktop (windows running newest chrome browser) I'm not experiencing any issues at all. It seems like the problem just applies to iOS (using the chrome browser at least). Will test with safari in a bit.

Seems very strange to me and I can't figure out why this is happening

@rajgoel
Copy link
Owner

rajgoel commented Nov 17, 2023

Can you either confirm the same behavior or clarify if there is a reasons for this?

Well, as I said I cannot help with iOS as I don't have it. How do you expect me to answer?

@netconstructor
Copy link
Author

@rajgoel I haven't run any further tests but my assumption is that maybe you were using an approach for media playback which isn't supported or needs additional settings for iOS playback.

I was just informing you about the issue as it seems you are maintaining the repository, it's a great set of plugins and I'm sure it's used by many others.

I'd be more than happy to help if so desired

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