Video loops can be used for page backgrounds instead of still images and animated transitions work the same with video as they do for images. This example shows several video loop backgrounds with different transitions.
The video option is used instead of the image option for the page commands in this example. Video names are required for this option, but these are not the complete file names. The file names must be defined by separate video commands which can either be on the same page where the videos are used, as shown here, or they can be on a preceding global command page. The global page method must be used if video were shown across more than one page and that is usually done when video is displayed on an object instead of a page background.
It is possible to combine both image and video options on a page to construct layered backgrounds, but the images would need to be PNG images with transparent regions and the page transitions that can be used for layered backgrounds is restricted to a basic set of transitions.
The video command requires the complete video file name with an extension. The extension defines the codec type of the video file used. Lightwing supports several specific codec formats which are optimized for digital signage and contain no audio. The most common video file formats can be easily converted to these formats using WinFF as detailed in the section titled Converting Videos in the online Content Development guide. The video files must be named with extensions that correspond to the video codec type that the file contains.
Since video is not implemented in the Windows version of Lightwing, a representative substitute image should be made for each video used. The Windows version of Lightwing will automatically display the substitute image in place of the video. The substitute images must have the same names, except that their extensions must be .pvr and they must be located in the images folder.
The loop option is required for the video command for videos that have shorter time durations than the page. It sets the video to automatically loop to he start and repeat if the end of the video file is reached. Otherwise, this option would default to off.
Lightwing supports two simultaneous video streams. The optional stream option defines which stream the video will be played on. It is not required for this example since only one video is played at a time. Also refer to the online Scripting Guide for more details about these commands.
// Scripting Tutorial - Video Loops version: 1.0 page: OvalCirclesWhite time: 1, 3 transition: Fade video: OvalCirclesWhiteLoop video: OvalCirclesWhiteLoop.lv2 loop: on page: Flarez time: 1, 3 transition: ZoomIn video: FlarezLoop video: FlarezLoop.lv2 loop: on page: StrokesBlackWhite time: 1, 3 transition: ZoomOut video: StrokesBlackWhiteLoop video: StrokesBlackWhiteLoop.lv2 loop: on page: ArrowCirclesBlue time: 1, 3 transition: Implode video: ArrowCirclesBlueLoop video: ArrowCirclesBlueLoop.lv2 loop: on page: GlowFish time: 1, 3 transition: Explode video: GlowFishLoop video: GlowFishLoop.lv2 loop: on page: Splurry time: 1, 3 transition: SpinIn video: SplurryLoop video: SplurryLoop.lv2 loop: on page: Blooker time: 1, 3 transition: Slide video: BlookerLoop video: BlookerLoop.lv2 loop: on page: EmeraldEye time: 1, 3 transition: Twist video: EmeraldEyeLoop video: EmeraldEyeLoop.lv2 loop: on page: Metaliq time: 1, 3 transition: Radar video: MetaliqLoop video: MetaliqLoop.lv2 loop: on jump: OvalCirclesWhite