1

I have an app that worked well with all versions, all devices and simulator lower than iOS 12.2.
Since that new version, it doesn't work on the iPhone with iOS 12.2 without any error message ( I don't see that message occuring: nhandled Promise Rejection: NotAllowedError: ). I precise that it works on the simulator, on the ipad in iOS 12.2 but not the iphone. I check that ticket but it doesn't resolve the situation.

I added that fonctions to true with no success:

    webView.mediaPlaybackRequiresUserAction = true
    webView.allowsInlineMediaPlayback = true
    webView.mediaPlaybackAllowsAirPlay = true

I added that keys with no success:
enter image description here

   <div class="col-md-12"><p class="ttl">'+tab_bloctitre[1]+'</p><video   controls style="width:100%;" poster="'+key+'/img/fondvideo.png"><source src="'+tab_videobloc[1].replace("https://gmp2.newtelapps.fr/uploads/R1550158082/img/",lien)+'" type="video/mp4"></video></div>'

Any ideas?

ΩlostA
  • 2,501
  • 5
  • 27
  • 63

2 Answers2

2
webView.mediaPlaybackRequiresUserAction = false;

from this answer: https://stackoverflow.com/a/56074115/279180

If you don't want auto-play, make sure you don't have "autoplay" in your HTML.

Ernie Thomason
  • 1,579
  • 17
  • 20
0

indexWeb.keyboardDisplayRequiresUserAction = NO; This setup solves my problem。

Jayxiang
  • 71
  • 3