I am currently using Azure media player to stream Office 365 videos, but I am encountering an issue where the videos do not play on iOS devices. I attempted to implement a solution from the provided link, but unfortunately it did not resolve the problem.
Is there anyone who can provide guidance on how to fix this issue?
Below is the code snippet that I have been working with:
$.when(
tokenPromise,
urlPromise
)
.done(function (tokenRes, urlRes) {
var token = tokenRes.GetStreamingKeyAccessToken;
var url = urlRes.GetPlaybackUrl;
$("#modal-"+index).attr("token", token);
$("#modal-"+index).attr("token-acquired", new Date().toISOString());
$("#modal-"+index).attr("player-url", url);
$("#modal-" + index + " .vjs-loading-spinner").hide();
player.poster(poster);
player.src([{
src: url,
type: "application/vnd.ms-sstr+xml",
protectionInfo:
[{
type: "AES",
authenticationToken: token }]
}]);
})