Skip to content

Disable audio features when media unavailable#91

Draft
seer-by-sentry[bot] wants to merge 1 commit intomasterfrom
autofix/disable-audio-if-unavailable
Draft

Disable audio features when media unavailable#91
seer-by-sentry[bot] wants to merge 1 commit intomasterfrom
autofix/disable-audio-if-unavailable

Conversation

@seer-by-sentry
Copy link

@seer-by-sentry seer-by-sentry bot commented May 7, 2025

👋 Hi there! This PR was automatically generated by Autofix 🤖

This fix was triggered by Abdelrahman Bayoumi.

Fixes AZKAR-VK. The issue was that: JavaFX media native initialization failed due to system audio issues, triggered by MediaPlayer creation in settings screen.

  • Added MediaAvailabilityUtil to check if media playback is available.
  • Disabled media controls and display a tooltip explaining why when media is unavailable.
  • Added a check in the play function to display an alert if media is unavailable.
  • Added a check in NotificationAudio.play() to prevent playing audio if media is unavailable or the selected audio is "بدون صوت".
  • Added CSS class unavailable-feature to visually indicate disabled media controls.

If you have any questions or feedback for the Sentry team about this fix, please email autofix@sentry.io with the Run ID: 38881.

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.

0 participants