Video and IMML¶
What does VastPark support?¶
Below is a list of Video formats VastPark Supports:
- .wmv
- .avi
- .mp4 - Windows 7 only
- .asf
Using Video in IMML¶
Video is added to the MaterialGroup of an Element in IMML.
<Primitive Name="box" Type="Box" Complexity="VeryLow" Position="0,1,8" Size="1,1,1">
<MaterialGroup Id="-1">
<Material Ambient="#4c4c4c" Diffuse="#cccccc" Emissive="#000000" Specular="#000000" EnableTextures="True"/>
<Video Seek="00:00:00" Enabled="False" Stream="False" Source="http://id.vastpark.com/VastParkWS/get.vpws?publisher=julian&name=3&domain=vastpark&context=park"/>
</MaterialGroup>
<Physics Enabled="False" Movable="False"/>
</Primitive>
Video can be sourced in IMML in two different ways.
- Published as a Metaforik item by the VastPark Publisher
- Streamed from an online location.
Published Video¶
Once you've published your Video as a Metaforik item it will be available for use.
The easiest way to add your Video to the IMML file is by using the VastPark Creator and add it from the Library.
Select the object you want to display the video on in the Design Viewport. Then under the objects Appearance select the added video from the dropdown.
Streamed Video¶
Videos can also be streamed from an online source.
<Video Seek="00:00:00" Enabled="True" Stream="True" Source=""/>
To stream a video you must set the Stream tag to true and input a URI for inside the Source tag.
For live streaming you must use the .asf file type.