Skip to content

Document how MediaElement reports a refused foreground service on Android (CommunityToolkit.Maui #3433) - #681

Draft
Brandon Minnick (TheCodeTraveler) wants to merge 3 commits into
MicrosoftDocs:mainfrom
TheCodeTraveler:docs/pr-3433-mediaelement-fgs
Draft

Brandon Minnick (TheCodeTraveler) wants to merge 3 commits into
MicrosoftDocs:mainfrom
TheCodeTraveler:docs/pr-3433-mediaelement-fgs

Conversation

@TheCodeTraveler

Copy link
Copy Markdown
Contributor

This PR coincides with the work done in CommunityToolkit.Maui PR CommunityToolkit/Maui#3433.

  • MediaElement.md, "Foreground service on Android": if Android refuses to start the foreground service while a Source is applied (for example on Android 12+ while the app is in the background), MediaFailed reports it once and CurrentState isn't set to Failed.
  • Notes that the media keeps playing without the notification, and the next Source change retries the service.
  • Links the "Handle exceptions thrown while the source changes" section, which uses the same report.
  • Updates ms.date.

This stays a draft until the CommunityToolkit.Maui release that ships CommunityToolkit/Maui#3433 is published.

🤖 Generated with Claude Code

…roid

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… applied

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit ef1e9d2:

✅ Validation status: passed

File Status Preview URL Details
docs/maui/views/MediaElement.md ✅Succeeded View

For more details, please refer to the build report.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

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

Successfully merging this pull request may close these issues.

1 participant