-
Notifications
You must be signed in to change notification settings - Fork 0
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
Any plan to add a pause() function ? #1
Comments
Hi @maximilien0405! S3 means that you probably want to access these audio files by their urls, in which case this is the only solution I know of. I have tried to make all other plugins work, in vain, because in reality they can only play audio that is shipped with the app as resource. It is a nice idea to add a togglePause and/or a stop! As for implementing it, if you search for play, you'll see where the pause can be added. If you do it, I'm more than ready/happy to merge it. Good luck, |
Okay thanks ! I know nothing about plugin developpemnt, or Swift or Java, but i'll try ! It's probably not that complicated |
Awesome! 🤩 If you get stuck, just let me know 🙌 I also didn't know much about plugin dev, Swift or Java, just used copilot, some online documentation, some trial and error and some banging my head against the wall because copilot is not that strong in this area. Frankly, most of the code is just boilerplate it does nothing. The difficult part was figuring out where the play functions go and which objects to use to make the playback actually work without crashing randomly XD. The swift and java classes probably use a concept called separation of interface and implementation, not sure why. It was an awesome trick for c++ but imho it has no value in java. It is what it is. This may or may not help, probably you have seen it already: https://capacitorjs.com/docs/plugins/ios |
Hello there ! I just saw your plugin, i haven't tested it yet but if it works this will solve a problem i've been having on my application (i can't play large voice messages on IOS with HTML audio, i get this error : https://forums.developer.apple.com/forums/thread/740354).
My app needs to play small to large voice messages (maybe up to 5-10 MB) that are going to be uploaded to a S3. Theses messages will be played back, however i just saw that there is no pause function :/
Is there any plan to implement it one day ? It would be very useful for my project !
The text was updated successfully, but these errors were encountered: