搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

webm video loop javascript canvas

  • 2 回覆
  • 0 有這個問題
  • 3 次檢視
  • 最近回覆由 k.m

more options

Hi Firefox-Team,

I am writing a sidescroller game with Visual Studio Code using javascript canvas. The source for the "player" is a .webm video file with transparencies. The video is 13 seconds long, i want the video at the start to play the first 10 seconds and then loop from second 3 to 10 indefinately (until key is presst but this does not matter here) the issue is as follows and it seems to be a Firefox issue:

The Video plays to the 10 seconds and jumps back to second 3 and loops BUT each time the loops starts over there is a flickering / empty frames before the loop starts. This does not happen in edge or chrome.

any suggestions? or research on this topic? any plans on fixing this or can I open a ticket?

I am looking forward to your reply. regards Konrad Mostert

Hi Firefox-Team, I am writing a sidescroller game with Visual Studio Code using javascript canvas. The source for the "player" is a .webm video file with transparencies. The video is 13 seconds long, i want the video at the start to play the first 10 seconds and then loop from second 3 to 10 indefinately (until key is presst but this does not matter here) the issue is as follows and it seems to be a Firefox issue: The Video plays to the 10 seconds and jumps back to second 3 and loops BUT each time the loops starts over there is a flickering / empty frames before the loop starts. This does not happen in edge or chrome. any suggestions? or research on this topic? any plans on fixing this or can I open a ticket? I am looking forward to your reply. regards Konrad Mostert

所有回覆 (2)

more options

Try to ask advice on a web development oriented forum.

more options

Hi Thanks for your reply, if I go to your link provided there is a post stating: "Do not use this forum to ask for help or to report issues with Mozilla software"

https://support.mozilla.org/en-US/kb/where-go-developer-support/discuss/8512