iiYO Community

Full Version: Video Asset
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm not sure if it's a long ways off, but I have a question or two about video assets.

Will we have control over playback? Will there be a way to set it to loop for instance? I was thinking it would be neat to be able to use a video for a background, like a beach where the water ebbs and flows.

Will these assets also have a Z "depth". Though, thinking about it, I'm not sure if I know any formats that have transparency. So, I guess I'm wondering if it would be possible to use the background idea and display other assets in front of it.

Thanks for all your hard work.

Guest

Hi @lykanthrope,

I guess there will be a video asset in version 0.4.

The videos will be loopable. I like your idea to use video as a background!

Yes, the video asset will have a Z depth, like all other displayable assets. I don't think it should be any problem to display other assets in front of the video. Having assets behind a transparent video is another thing altogether though.

As far as I know, none of the video formats support transparency, at least not in the browser. It is possible, though, to process video through the
Code:
<canvas>
element in HTML5 and make a specific color transparent (maybe with a threshold for smoother edges?). But I don't plan to do anything like that for version 0.4.

It would be a nice feature to have in later versions, though. With the combination of HTML5 Canvas and Video, you can directly manipulate pixels in the video, e.g. transform the video to grayscale on-the-fly like here:
http://html5doctor.com/demos/video-canva...demo2.html
I think that's really awesome!

Alternatively, you could use the
Code:
<animation>
asset to loop through a series of images. This should work with version 0.3 already. So if your "video" isn't anything long or complicated, your best bet right now is to use this option.

Guest

I'm very excited about that new asset. Did you have time to work on it ?

Guest

I didn't work on it yet, I'm afraid. Do you need that feature badly or is it just nice to have?

Guest

Not badly. But it would have been more simple to start a video opening before every chapter by example.