Please enable JavaScript to view this site.

CWT User Interface Design Handbook

Navigation: TFT Controls

Video popup (TFT)

Scroll Prev Top Next More

This Control allow to play back videos for e.g. help or advertising

Videos will only be played in full screen mode regardless of size and the location properties of the popup set in Video and Popup components in ui.xaml

When the video popup is displayed the video will start and when the popup is closed the video will stop.

Note:
When the video is shorter than the popup display time the popup will grow black. We recommend to set the popup time equaly long as the videos play time

The video path is configured with the VideoPath parameter in the <TFT:Video> tag. We recommend strongly to use the special folder \Storage Card\Media\Video\. Videos in the folder \Storage Card\Media\Video\ are copied to the RAM memory at start up. Since RAM memory is limited the smallest videos are copied first up to a total size of 50MB. Videos load faster from RAM memory than from the Storage Card.

Videos not stored in the \Storage Card\Media\Video\ folder will be loaded on request when the popup opens.

We Recommend to place these folders also in the \Storage Card\Media\ but with a different name

 

Limitation

Do not use videos outside the normal purchase flow on solar operated terminals

The video format is *.wmv using the WMV 9 compression        

It is not recommended to use videos in panels

It is not recommended to use videos in ExternalPayUnit Popups since the two external pay unit controlled popups are common for the dll. The dll reuses the popups and changes only the text. If a video is configured in these popups all popups will play the video every time the popup is called for.

Videos are played in full screen mode

Videos shorter  than 3 seconds are not recommended

Videos longer than the activity timer (default 60s) in sleep mode are not recommended

 

Configuration

Playing a video at button press:

<TFT:Button/PiezoButton ... Click="OnPopupPanelOpen" KeyValue="VideoPopup">
 
<TFT:PopupPanel Name="VideoPopup" MxStyle="{PanelStyle3}" Timeout="22" TimeoutEvent="OnPopupPanelClose">
<Controls>
  <TFT:Video Name="Video" VideoPath="\Storage Card\Media\Video\myvideo.wmv" />
</Controls>
</TFT:PopupPanel>

Playing a video in a popup (instead of the popup content)

<TFT:PopupPanel Name=" PurchaseCancelledPopup" ... Timeout="8">
<Controls>
  <TFT:Video Name="Video"
    VideoPath="\Storage Card\Media\Video\myvideo.wmv" />
  </Controls>
</TFT:PopupPanel>