Youtube Widget
This type of widget belongs to the Social category in the widget library. It enables you to integrate a video posted on YouTube in the app without accessing the video hosting and sharing website, YouTube.
Notes
See General remarks on widgets.
- You integrate the video using a unique ID.
See the procedure.
- The default size of a YouTube video is 400px (width) by 225px (height).
Example
You want to integrate an YouTube video in your app
List of properties
Content
YouTube Code: String of characters that identify each video in a unique way on the YouTube website. It is available in the video. See the procedure.
Video Width: Width of the video in pixels (by default, 400px) or percentage (by default, 100%).
Video Height: Height of the video in pixels (by default, 225px) or percentage (by default, 100%).
Auto Play: Used to indicate if the video should play automatically (box is checked) or if users should start it manually using the icon.
Loop: Used to indicate if the video should play in a continuous loop (box is checked) or if it should stop once it reaches the end (box is not checked). If you want to the video to loop, it will replay automatically once it reaches the end.
Theme
See the description of properties.
Procedure: How to retrieve the YouTube code of a video
1. Go to the page displaying the YouTube video you want.
2. In the URL bar of your Web browser, copy the code that is displayed after the following text: http://youtube.com/.
http://youtube.com/kbrUGdWyZkQ
==> YouTube Code = kbrUGdWyZkQ