Eyal Klein
Member
Hey,
I've tested FlashPhoner server, with this URL: https://demo.flashphoner.com:8888/dashboard.xhtml with Safari IOS and it works great!
I have same server installed on my side, and also it works on IOS great!
I've tried to copy same code for a website i'm building, and on IOS it doesn't work.
I've noticed the following error when playing on IOS User Agent:
Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.
Which falles here in flashphoner.js here:
var playFirstVideo = function (display, isLocal, src) {
if (!getCacheInstance(display)) {
var video = document.createElement('video');
video.setAttribute("playsinline", "");
video.setAttribute("webkit-playsinline", "");
display.appendChild(video);
video.id = uuid_v1() + (isLocal ? LOCAL_CACHED_VIDEO : REMOTE_CACHED_VIDEO);
if (src) {
video.src = src;
} else {
video.src = "/flashphoner/dependencies/media/preloader.mp4";
}
video.play();
}
};
on the line video.play();
Do you have an idea why if it's the same code?
10x,
Eyal
I've tested FlashPhoner server, with this URL: https://demo.flashphoner.com:8888/dashboard.xhtml with Safari IOS and it works great!
I have same server installed on my side, and also it works on IOS great!
I've tried to copy same code for a website i'm building, and on IOS it doesn't work.
I've noticed the following error when playing on IOS User Agent:
Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first.
Which falles here in flashphoner.js here:
var playFirstVideo = function (display, isLocal, src) {
if (!getCacheInstance(display)) {
var video = document.createElement('video');
video.setAttribute("playsinline", "");
video.setAttribute("webkit-playsinline", "");
display.appendChild(video);
video.id = uuid_v1() + (isLocal ? LOCAL_CACHED_VIDEO : REMOTE_CACHED_VIDEO);
if (src) {
video.src = src;
} else {
video.src = "/flashphoner/dependencies/media/preloader.mp4";
}
video.play();
}
};
on the line video.play();
Do you have an idea why if it's the same code?
10x,
Eyal
Attachments
-
20.2 KB Views: 234
-
27.9 KB Views: 254