Youtube Video not playing RocketWeb

After buying RocketWeb from CodeCanyon I configure and everything working fine. But The youtube video is not playing.

Solution:

  • For youtube, video testing uses a real device.
  • If you have youtube videos then don’t use AdMob it violates youtube policy.
  • Add below setting to your code,
mBinding.webView.settings.apply {
mediaPlaybackRequiresUserGesture = false
setSupportMultipleWindows(true)
allowFileAccessFromFileURLs = true
allowUniversalAccessFromFileURLs = true
}

Leave a Reply