-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial dump of things * Musings on how the recording could look * Hacked together sample to try and prove it works * Feature/add audio recording - tested on Windows, Mac, Android (#39) * Fix (#37) * Add Speed property (#26) * Add Speed property to AudioPlayer * Add Speed property to sample app and handle speed limitations on different Android devices * Add handling for exceptions, speed out of range and Android API level < 23 * Add SpeedOutOfRangeException handling in sample application * Add Speed property to NET6_0 definition * Add CanSetSpeed handing in Sample App * Fix bad merge whoops * Fix speed clamping on iOS and Android * Fix Windows Speed * PR Feedback * Update Sample * Update AudioPlayer.net.cs * Update MusicPlayerPageViewModel.cs * Update src/Plugin.Maui.Audio/AudioPlayer.android.cs * Update src/Plugin.Maui.Audio/AudioPlayer.net.cs Co-authored-by: Shaun Lawrence <[email protected]> Co-authored-by: Johan Svensson <[email protected]> Co-authored-by: Johan Svensson <[email protected]> Co-authored-by: Gerald Versluis <[email protected]> Co-authored-by: Shaun Lawrence <[email protected]> Co-authored-by: Gerald Versluis <[email protected]> * Update README with Speed related properties (#38) * Update README.md * Update README.md * Windows and Android recording tested. iOS not yet tested. * Add NSMicrophoneUsageDescription to Info.plist * loosen permission on mic for MacCatalyst * implemented LastDuration for recorder * try to get player to play again but CollectionView will not take 2nd click * duration working for both recorder and player * <ProvisioningType>automatic</ProvisioningType> * removed all warnings by dealing with nullability * build nuget package * Fix funky formatting and remove unnecessary audio player bits * Removed unnecessary recording bits * A bit more tidy up * Recorder page shows the time recording * Smoother audio recording experience on macOS * Recommended way to check for permissions * Make Android non blocking on StartAsync * XML comments and further tidy up * Fix windows compilation errors * Revert "Merge branch 'main' into pr/39" This reverts commit 415a6bd, reversing changes made to 2d00bbc. * Remove auto added bits * Apply suggestions from code review Co-authored-by: Gerald Versluis <[email protected]> * Some docs --------- Co-authored-by: Gerald Versluis <[email protected]> Co-authored-by: Johan Svensson <[email protected]> Co-authored-by: Johan Svensson <[email protected]> Co-authored-by: Johan Svensson <[email protected]> Co-authored-by: Shaun Lawrence <[email protected]> Co-authored-by: Gerald Versluis <[email protected]> * Merge Speed functionality * Update CI * Revert "Update CI" This reverts commit de9e99a. * Update CI * Update AudioPlayer.android.cs * Apply suggestions from code review --------- Co-authored-by: charles david young <[email protected]> Co-authored-by: Gerald Versluis <[email protected]> Co-authored-by: Johan Svensson <[email protected]> Co-authored-by: Johan Svensson <[email protected]> Co-authored-by: Johan Svensson <[email protected]> Co-authored-by: Gerald Versluis <[email protected]>
- Loading branch information
1 parent
b486393
commit 56346a1
Showing
41 changed files
with
1,327 additions
and
509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:viewmodels="clr-namespace:AudioPlayerSample.ViewModels" | ||
xmlns:converters="clr-namespace:AudioPlayerSample.Converters" | ||
x:Class="AudioPlayerSample.Pages.AudioRecorderPage" | ||
Title="Audio Recorder" | ||
x:DataType="viewmodels:AudioRecorderPageViewModel"> | ||
|
||
<ContentPage.Resources> | ||
<converters:SecondsToStringConverter x:Key="SecondsToStringConverter" /> | ||
</ContentPage.Resources> | ||
|
||
<Grid> | ||
<VerticalStackLayout | ||
HorizontalOptions="Center" | ||
VerticalOptions="Center"> | ||
|
||
<Button | ||
Text="Start" | ||
Command="{Binding StartCommand}" /> | ||
|
||
<Button | ||
Text="Stop" | ||
Command="{Binding StopCommand}" /> | ||
|
||
<Button | ||
Text="Play" | ||
Command="{Binding PlayCommand}" /> | ||
|
||
<Label | ||
Text="{Binding RecordingTime, Converter={StaticResource SecondsToStringConverter}}" /> | ||
</VerticalStackLayout> | ||
|
||
</Grid> | ||
|
||
</ContentPage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace AudioPlayerSample.Pages; | ||
|
||
public partial class AudioRecorderPage : ContentPage | ||
{ | ||
public AudioRecorderPage(ViewModels.AudioRecorderPageViewModel audioRecorderPageViewModel) | ||
{ | ||
InitializeComponent(); | ||
|
||
BindingContext = audioRecorderPageViewModel; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ protected override void OnDisappearing() | |
|
||
((MusicPlayerPageViewModel)BindingContext).TidyUp(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.