Skip to content
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

fix(camera): resolve black screen issue in Telegram WebView by adding 'muted' attribute #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VyacheslavZemko
Copy link

Description:

This pull request addresses the issue where the video feed appears as a black screen when accessing the camera stream inside Telegram WebView. The problem was caused by WebView autoplay policies that prevent videos from playing unless they are muted.

Changes Made:

  • Added the muted attribute to the <video> element to ensure that the camera stream plays correctly in Telegram WebView.

Related Issue:

Steps to Test:

  1. Open the app inside Telegram WebView.
  2. Access the camera stream.
  3. Verify that the video feed is displayed correctly and not as a black screen.

Additional Information:

  • The muted attribute is required due to WebView's autoplay restrictions, which affect video playback.
  • This fix ensures compatibility with Telegram WebView and improves the overall user experience.

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