-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Recording options and Bug Fixes #108
Conversation
…ing session. EnableRate on iOS to ensure speed value can be changed.
Wow great work @borrmann I will review asap! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor things for the first pass!
samples/Plugin.Maui.Audio.Sample/Plugin.Maui.Audio.Sample.csproj
Outdated
Show resolved
Hide resolved
samples/Plugin.Maui.Audio.Sample/ViewModels/AudioRecorderPageViewModel.cs
Outdated
Show resolved
Hide resolved
This is going to conflict with #101 in some areas. I would personally prefer to get 101 in first and then that solves the recording bug. I'll be happy to assist with whatever merge conflicts arise from that. |
Co-authored-by: Gerald Versluis <[email protected]>
Co-authored-by: Gerald Versluis <[email protected]>
Co-authored-by: Gerald Versluis <[email protected]>
Co-authored-by: Gerald Versluis <[email protected]>
Co-authored-by: Gerald Versluis <[email protected]>
Co-authored-by: Gerald Versluis <[email protected]>
Co-authored-by: Gerald Versluis <[email protected]>
Co-authored-by: Gerald Versluis <[email protected]>
Co-authored-by: Gerald Versluis <[email protected]>
….Maui.Audio into RecordingOptions
I added support for windows and added two more encodings: Alac (Apple Lossless) and Flac. Those work on iOS and Windows, but not Android. |
OK so some conflicts here because I merged the other one, but I'd really love to have this! Can we work these out? @borrmann are you still interested? Else we'll just take it from here and get this over the finish line :) |
Considering my PR caused the conflicts in more than happy to help out if required |
@jfversluis @bijington no worries. I'll look into it asap. Unless you prefer to take control, no issue with that either. |
I'd love for you to take it home as its your brain child! But if you feel it's going to take too long (whatever that is) or you don't have the time right now please just let us know and we'll take it! |
@bijington I merged your changes into my PR. When starting a Recording session, the app crashes on iOS with:
I don't think line 15 in ActiveSessionHelper should throw an error, and rather trace a warning |
@borrmann Sorry I hope I haven't left things in a state for you. Let me know if I can assist with any merging, etc. |
no problem, I replaced it with Trace (for now) to ensure there is no app crash so I could test my changes. I think it makes sense you take it from there, since the error could mean, that the options are not always applied as intended, but that should not effect this PR. I saw you were planning to add some features to the sample to play around with the different options anyways, so that should help to figure out if the error does effect the behavior. Aside from that, I did quick tests on Windows, iOS and Android (Emulator). I think the changes from this PR work as inteded. @bijington @jfversluis let me know if anything else is needed for this. I did notice Windows does not reliably play the audio file. If it does, position and duration are not updated. I don't think that has something to do with my changes here, since this shoul not have effected the Windows Audio player at all. If windows works as expected on your main, please let me know. However, I think I might have worked on these issues in my other PR, so I will update that and check whether the changes there resolved these issues already. |
Thanks. I'll have to investigate the issue as I suspect something must be wrong there. I can do that outside of this PR as you suggested |
I have fixed the issue here: #111 |
Thank you so much for this and seeing this through @borrmann! |
Adds support for RecordingOptions and addresses the following issues
Fixes #103
Fixes #104
Fixes #73 (for iOS)
Fixes #49
Fixes #32 (for Android, iOS seemed to have worked already, did not look into windows)
I have added the fix to set the speed on iOS, but I think an API change could be considered for setting the speed in the future.
On android setting the speed is via a method and not a setter, so I think it should be changed to a method instead a setter as well.