**This is an old revision of the document!**

Video object

A video object display a video on the screen. It's perfect for cut-scenes in a game.

Video files can be very heavy, even for short videos, making your game longer to download and launch. Make sure to use a good compression and limit the length of the video as possible.
Before a video can be played, you have to ensure that the player interacted first with your game (a simple click/touch on the screen is ok to unlock videos)

Videos can be controlled using events: timing, state (play/paused), audio volume….

Add a video

When you create a new object, click on “Show Experimental Objects” button, then choose Video.

When the object is created, the editor is shown:

Choose a video file

Click on the field “Video resource”, and then “Choose a new video file”. For compatibility with most browsers, follow these advices for the video format:

File must be a .mp4 format encoded as:
  • H264 for the video,
  • AAC for the audio.

You can also choose:

  • Loop the video: If video is looped when it reaches the end.
  • Opacity : From 0 (fully transparent) to 255 (opaque - default).
  • Volume : From 0 (silent) to 100 (maximum volume - default)