Skip to main content
Known Participant
Nov 22, 2022 1:14 PM UTC
Question

problem video html5 canvas with Apple devices

Hello,

I just saw that I have a big problem regarding videos with Apple devices (smatphone, tablett...) while everything works fine on windows and android device.

 

In image 1 I have a simple button that allows you to go to image 2. I have a simple video with a loop in frame 2. I cut the video sound by checking mute in component settings.

 

this.stop();

canvas.style.zIndex = "1"

this.button1.addEventListener("click", fl_ClickToGoToAndStopAtFrame_49.bind(this));

function fl_ClickToGoToAndStopAtFrame_49()
{
	this.gotoAndStop(1);
}

 

Either the video appears but is blocked without being played or it does not appear at all and we only see a black background.

 

While searching, I came across this video, many have this problem in html :

https://developer.apple.com/forums/thread/690523?page=2 

but it's only for html not JS.

 

Has anyone encountered this problem before?

Thank you for your answers.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    28 replies

    kglad
    Community Expert
    Community Expert
    Nov 22, 2022 4:12 PM UTC

    use a start button to play your video.

    Translate
    Known Participant
    Nov 22, 2022 6:22 PM UTC

    Hi,
    You mean i have to add a button in the video image just to start playback ?

     

    Video can't play automatically when you click the button of Frame 1 to switch to Frame 2 like Windows and Android devices?

    Translate
    kglad
    Community Expert
    Community Expert
    Nov 22, 2022 6:34 PM UTC

    clicking any button should be sufficient to trigger the video, but because of apple's finickiness and the problems you report, (imo) it's worth testing.

    Translate