I want to disable airPlay button on iPhone, it seems that to do this I need to add x-webkit-airplay=“deny” attribute to the video tag https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/AirPlayGuide/OptingInorOutofAirPlay/OptingInorOutofAirPlay.html
I tried adding it on wowza player load with onLoad callback, but it did not help, air play button is still present.
I also tried MutationObserver with no success.
I think there are two possible solutions:
- disable native iOS html5 video player (have not found how to do that)
- add x-webkit-airplay=“deny” when video element is created
How can I disable it?