Videos & Animated Images

We can now play mp4 and webm videos from either disk or URL. Sound can be played from a position in the world or locally.

Because the video is just a texture, they can be used anywhere a texture can be used - such as light cookies.
attribute 'blocktype' not allowedattribute 'contenteditable' not allowed

We can also render videos on UI panels with video controls.
attribute 'blocktype' not allowedattribute 'contenteditable' not allowed
Video decoding is done in background threads so you should be able to handle as many videos as you need.
attribute 'blocktype' not allowedattribute 'contenteditable' not allowed
We can render the videos in Qt widgets in the editor too.

attribute 'contenteditable' not allowedattribute 'blocktype' not allowed
Anything that accepts an image, like background-image, border-image, etc... all just work with videos and animated images.
background-image: url( 'cool.mp4' );attribute 'data-code' not allowedattribute 'data-language' not allowedattribute 'blocktype' not allowedattribute 'contenteditable' not allowed
attribute 'blocktype' not allowedattribute 'contenteditable' not allowed
background-image: url( 'monkey.gif' );attribute 'data-code' not allowedattribute 'data-language' not allowedattribute 'blocktype' not allowedattribute 'contenteditable' not allowed
attribute 'blocktype' not allowedattribute 'contenteditable' not allowed
UI Images can now load and display animated gif or webp files from either disk or URL. We're using this for Steam animated avatars.
attribute 'blocktype' not allowedattribute 'contenteditable' not allowed
This means that existing avatar images in games will use animated ones by default. This can be turned off by specifying the size of the avatar (avatarbig, avatarsmall)

Comments