Repository navigation
Lock Screen Controls and Metadata Support for Windows, Android, IOS and Mac Catalyst #1782
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
Merged
Merged
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
69df1c4
The most significant changes involve the addition of new metadata pro…
ne0rrmatrix e366a71
Merge branch 'CommunityToolkit:main' into MetaData
ne0rrmatrix 0c86c02
The most significant changes involve updates to various project files…
ne0rrmatrix a30fc2e
Merge branch 'MetaData' of https://github.com/ne0rrmatrix/MauiOld int…
ne0rrmatrix 0c583dd
Merge branch 'CommunityToolkit:main' into MetaData
ne0rrmatrix 71b2cc5
The most significant changes involve the refactoring of the `MediaCon…
ne0rrmatrix 70cf495
Merge branch 'MetaData' of https://github.com/ne0rrmatrix/MauiOld int…
ne0rrmatrix e65e46d
The most significant changes involve the addition of a new parameter …
ne0rrmatrix 5d4a163
The most significant changes were made to the `MediaControlsService.a…
ne0rrmatrix c941467
The most significant changes involve the addition of new media contro…
ne0rrmatrix 663917e
Add permissions and background modes for MacCatalyst app
ne0rrmatrix c546305
Fix playback rate type conversion in MetaDataExtensions.macios.cs and…
ne0rrmatrix 753ea1b
The most significant changes involve the removal of the `MetaDataExte…
ne0rrmatrix 0bd376a
The most significant changes were made to the `MediaControlsService.a…
ne0rrmatrix 5201496
Merge branch 'main' into MetaData
ne0rrmatrix 57d334f
The most significant changes to the `MediaControlsService` class invo…
ne0rrmatrix ddcb23d
minor cosmetic fixes
ne0rrmatrix 8cb93a4
Merge branch 'main' into MetaData
ne0rrmatrix 1480655
Merge branch 'main' into MetaData
ne0rrmatrix d9f97f2
The most significant changes involve renaming and redefining certain …
ne0rrmatrix 82c2adc
Merge branch 'MetaData' of https://github.com/ne0rrmatrix/MauiOld int…
ne0rrmatrix 8500178
The most significant changes involve renaming and redefining certain …
ne0rrmatrix 6bfff10
The most significant change is the removal of a line of code from the…
ne0rrmatrix 35076a2
The most significant change is the modification of the `Dispose` meth…
ne0rrmatrix a756d20
The most significant changes in the code involve the refactoring of t…
ne0rrmatrix 8fb824b
The most significant changes in the code include the removal of unuse…
ne0rrmatrix 5ddea49
The `LaunchMode` attribute in `MainActivity.cs` was changed from `Sin…
ne0rrmatrix 5757d3a
The most significant changes involve the `MediaControlsService` and `…
ne0rrmatrix b33b1e4
The most significant changes involve the addition of new actions to t…
ne0rrmatrix bcd62cc
The most significant changes involve the refactoring of the `MetaData…
ne0rrmatrix 6c67206
The most significant changes involve the display of album name and ar…
ne0rrmatrix d1940dd
The most significant changes involve the removal of the `SourceType` …
ne0rrmatrix cc69920
The most significant change is the reorganization of services related…
ne0rrmatrix 770836f
Merge branch 'main' into MetaData
ne0rrmatrix cd8f9b7
The most significant changes include the conditional inclusion of per…
ne0rrmatrix 1a37aaf
The most significant changes involve modifications to the `MediaContr…
ne0rrmatrix 7b07ace
The most significant changes involve the `MetaDataExtensions` class i…
ne0rrmatrix d899312
The most significant changes in the code are the refactoring of condi…
ne0rrmatrix a404dbe
Fix potential security issue with having `android:exported` by not ex…
ne0rrmatrix 39a90a0
Update src/CommunityToolkit.Maui.MediaElement/Extensions/MetaDataExte…
ne0rrmatrix 140a9e6
Update src/CommunityToolkit.Maui.MediaElement/Extensions/MetaDataExte…
ne0rrmatrix 346afd3
Update src/CommunityToolkit.Maui.MediaElement/Views/MediaManager.andr…
ne0rrmatrix e3abfa1
Update src/CommunityToolkit.Maui.MediaElement/Views/MediaManager.andr…
ne0rrmatrix 31c5fbe
The most significant changes are in the `MetaDataExtensions.macios.cs…
ne0rrmatrix 48a3ebb
The most significant changes involve the addition of four new fields …
ne0rrmatrix 29efe47
The `Dispose(bool disposing)` method has been updated to remove the e…
ne0rrmatrix f6bce0b
reverting last change. Outside scope of PR. Change is needed but is n…
ne0rrmatrix 6958df6
cache the android permissions
pictos badf750
adjust player to work better with async code
pictos 1208c99
removed cast
pictos d0d675e
updated tokens to be optional and add a timeout on TCS
pictos b5cc156
adjust async call with ContinueWith
pictos a17e076
inline action since will be used just once
pictos fc2229e
update event name
pictos 8d4d33e
use string instead of String
pictos 3269bed
fix build error
pictos f66023d
Fix build error - class name was changed but filename was not.
ne0rrmatrix 29efd2e
The most significant changes involve the refactoring of the `GetBitma…
ne0rrmatrix ac98b64
The most significant changes involve the update of the URL for the `M…
ne0rrmatrix 6239c5f
Merge branch 'main' into MetaData
ne0rrmatrix bb62898
Merge branch 'main' into MetaData
ne0rrmatrix 16e930f
The most significant change is the renaming of the service in the And…
ne0rrmatrix 4de39e0
Merge branch 'main' into MetaData
ne0rrmatrix 828633d
Merge branch 'main' into MetaData
ne0rrmatrix a143587
Merge branch 'main' into MetaData
ne0rrmatrix 10798a5
Merge branch 'main' into MetaData
TheCodeTraveler a150b84
Update Naming + Formatting
TheCodeTraveler 98cafe2
Fix naming violation
TheCodeTraveler 5ec1c20
`dotnet format`
TheCodeTraveler 339e97d
Remove `NSAppTransportSecurity`
TheCodeTraveler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
samples/CommunityToolkit.Maui.Sample/CommunityToolkit.Maui.Sample.csproj
This file contains hidden or 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 hidden or 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 hidden or 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
25 changes: 19 additions & 6 deletions
25
samples/CommunityToolkit.Maui.Sample/Platforms/Android/AndroidManifest.xml
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
27 changes: 27 additions & 0 deletions
27
src/CommunityToolkit.Maui.MediaElement/Primitives/AndroidMediaPermissions.android.cs
This file contains hidden or 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,27 @@ | ||
| using static Microsoft.Maui.ApplicationModel.Permissions; | ||
|
|
||
| namespace CommunityToolkit.Maui.ApplicationModel.Permissions; | ||
|
|
||
| sealed class AndroidMediaPermissions : BasePlatformPermission | ||
| { | ||
| static readonly Lazy<(string androidPermission, bool isRuntime)[]> permissionsHolder = new(CreatePermissions); | ||
|
|
||
| public override (string androidPermission, bool isRuntime)[] RequiredPermissions => permissionsHolder.Value; | ||
|
|
||
| static (string androidPermission, bool isRuntime)[] CreatePermissions() | ||
| { | ||
| List<(string androidPermission, bool isRuntime)> requiredPermissionsList = new(); | ||
|
|
||
| if (OperatingSystem.IsAndroidVersionAtLeast(28)) | ||
| { | ||
| requiredPermissionsList.Add((global::Android.Manifest.Permission.ForegroundService, true)); | ||
| } | ||
|
|
||
| if (OperatingSystem.IsAndroidVersionAtLeast(33)) | ||
| { | ||
| requiredPermissionsList.Add((global::Android.Manifest.Permission.PostNotifications, true)); | ||
| } | ||
|
|
||
| return [.. requiredPermissionsList]; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.