Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 1963

disable-gesture-requirement-for-media-playback

$
0
0

Hello,

When trying to playback a video or audio from the component TWebBrowser on Android devices the media file is not played automatically even if I set that specific option on the HTML file:

[audio controls autoplay id="player"]
  [source src="http://community.embarcadero.com/???????." type="audio/mp3"]
[/audio]

This is because Google Chrome has disabled that feature and the user must push the playback button in order to reproduce the media file, even if the 'AUTOPLAY' clause has been used on the HTML.

You can avoid this problem if the user manually opens this link in Chrome:

chrome://flags/#disable-gesture-requirement-for-media-playback

But this does not work using the method TWebBrowser.Navigate.

Does anybody knows a workaround for this. TIA.

Regards,


Viewing all articles
Browse latest Browse all 1963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>