Skip to main content
Known Participant
November 22, 2022
Question

problem video html5 canvas with Apple devices

  • November 22, 2022
  • 1 reply
  • 1717 views

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 has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    November 22, 2022

    use a start button to play your video.

    Known Participant
    November 22, 2022

    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?

    kglad
    Community Expert
    Community Expert
    November 22, 2022

    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.