TelegramMessenger / Telegram-iOS

Telegram-iOS
5.51k stars 1.49k forks source link

Videos in the `<video>` tag are not shown in web apps for bots #823

Open VlaDrozd opened 1 year ago

VlaDrozd commented 1 year ago

Checklist

Description

Videos in the <video> tag are not shown in web applications for bots. I need to display video for users of my web app, but it is not shown in web apps on iPhone. Telegram apps on Android, Windows and macOS don't have such problems, as well as Safari browser on iPhone when opening web app by url. My web app is react.js application, and I'm using a simple <video> HTML tag for displaying the video. Also, I'm using autoplay muted and playsinline attributes. I have tried it with simple HTML document with video tag. Tried .mp4 and .mov videos. Tried to make XMLHttpRequest to preload video and use blob URL. Don't know what about iPads.

Expected Behavior

Video must be visible in web app using telegram on Iphone.

Actual Behavior

Video is not visible in web app using telegran on Iphone.

Steps to Reproduce

  1. Create web app with <video> tag and correct src in it.
  2. Attach the web application to the bot.
  3. Open web app.
  4. Check if video is visible.

Screenshots and Videos

Image from Android Screenshot_20220825-172933_Telegram

Image from windows image

Image from Iphone 12 Pro File

Environment

Device: iPhone 12 Pro, iPhone Xs

iOS version: 15.6.1, 15.0.2

App version: 8.9.1

krowker commented 11 months ago

Удалось как-то решить проблему? Есть изменения?

gradus0 commented 9 months ago

yes, it's bug telegram web app. How fix ?

kloktunov commented 9 months ago

any updates?