Youtube iframe player won't show videos in android 4.x WebView

后端 未结 1 1925
我在风中等你
我在风中等你 2020-12-19 08:03

I\'m trying to use the youtube iframe player inside an android WebView but it fails on android 4.x while on 5.x everything works great.
When I try it in 4.x the player l

相关标签:
1条回答
  • 2020-12-19 08:27

    I had the same problem, but after fighting with this long time, i didn't find a solution. I tested all the configurations with webview and did many different html changes to put the iframe.

    After my researching i only can add:

    • In Android 4 versions, can't autoplay. The user has to press play button into the iframe to start play the video. Particularly:

      • In Android 4.1 it reproduces the audio but not the image.
      • In Android 4.3 i tested in devices which can reproduce audio but no video and devices that can't reproduce anything.
      • In Android 4.4 don't reproduce anything
    • From Android 5 and + everything works fine.

    Good luck and I plus vote this question to know if anyone can put light into this question :)

    0 讨论(0)
提交回复
热议问题