Media
The Media category contains two elements to display an image or a video player. Before adding these elements, configure Resources to make the image and/or video available to the element.
To add and configure an element, drag and drop the element from the Toolbox, and then configure the element's Properties.
Note: For more information about configuring the various parameters of the element's
Properties to a tag, please see the
Binding Properties topic.
| Control |
Description |
| Image |
Displays an image from the Resources or from an Image file.
How to use it with Resources:
- Provide the image file as a resource. See the Resources and Using the Resource topics.
- Place an Image control on your page and select it by clicking on it.
- In the Properties section, select your resource from the Source (Resource) drop-down list.
How to use it with an image file directly:
- Place an Image control on your page to select it by clicking on it.
- In the Properties section, provide the path to the image file in the Source (File) field.
|
| Video Player |
Allow users to embed video files inside the application.
How to use it with Resources:
- Provide the video file as a resource. See the Resources and Using the Resource topics.
- Place a Video control on your page and select it by clicking on it.
- In the Properties section, select your resource from the Source (Resource) drop-down list.
- Optional: Place a Button on your Page and in the Properties section, assign the following click command to it: Pages.Page.VideoPlayer.Play. This button can start the video when you Run.
How to use it with a video file directly:
- Place a Video control on your page and select it by clicking on it.
- In the Properties section, provide the path to the video file in the Source (File) field.
- Optional: Place a Button on your Page and in the Properties section, assign the following click command to it: Pages.Page.VideoPlayer.Play. This button can start the video when you Run.
|