Well try this:
<video controls id="video" x-webkit-airplay="allow" width="720">
<source src="movie.mp4" type="video/mp4">
</video>
Important: iOS 8+ have the airplay in the control center. not the video
If that not work, we can call the airplay function using Javascript.
HTML:
<video controls id="video" x-webkit-airplay="allow" width="720">
<source src="movie.mp4" type="video/mp4">
</video>
<button type="button" id="airplay"><i class="fa fa-apple fa-lg">Airplay</i></button>
Javascript:
var video = document.getElementById('video');
var airPlay = document.getElementById('airplay');
// Airplay
if (window.WebKitPlaybackTargetAvailabilityEvent) {
video.addEventListener('webkitplaybacktargetavailabilitychanged', function(event) {
switch (event.availability) {
case "available":
airPlay.style.display = 'block';
break;
default:
airPlay.style.display = 'none';
}
airPlay.addEventListener('click', function() {
video.webkitShowPlaybackTargetPicker();
});
});
}else {
airPlay.style.display = 'none';
}
NOTE: Remember the HTML5 Airplay only work in Safari 9+