Skip to content

Video


  • Use: To create a Video element from an external weblink

  • Definition: createVideoFromLink(String link, long x, long y, long w, long h, bool enable_controls, bool mute_audio, bool enable_autoplay, bool loop_video, String id)

  • Parameters:

    • String link : The external link of the Video to load from
    • long x : The position of the Video from its top-left corner along x-axis (horizontal) of the screen in px
    • long y : The position of the Video from its top-left corner along y-axis (vertical) of the screen in px
    • long w : The width of the Video in px
    • long h : The height of the Video in px
    • bool enable_controls : Set this flag to true in order to show the video controls to the user
    • bool mute_audio : Set this flag to true in order to mute the video
    • bool enable_autoplay : Set this flag to true in order to autoplay the video onve loaded
    • bool loop_video : Set this flag to true in order to loop the video continuously
    • String id : The ID of the Video element
  • Returns: ID of the Video element as a String


createVideoFromFile

  • Use: To create a Video element using an internal/local video file

  • Definition: createVideoFromFile(String file_name, long x, long y, long w, long h, bool enable_controls, bool mute_audio, bool enable_autoplay, bool loop_video, String id)

  • Parameters:

    • String file_name : The external link of the Video to load from
    • long x : The position of the Video from its top-left corner along x-axis (horizontal) of the screen in px
    • long y : The position of the Video from its top-left corner along y-axis (vertical) of the screen in px
    • long w : The width of the Video in px
    • long h : The height of the Video in px
    • bool enable_controls : Set this flag to true in order to show the video controls to the user
    • bool mute_audio : Set this flag to true in order to mute the audio of the video
    • bool enable_autoplay : Set this flag to true in order to autoplay the video onve loaded
    • bool loop_video : Set this flag to true in order to loop the video continuously
    • String id : The ID of the Video element
  • Returns: ID of the Video element as a String


Note

Before using this feature, make sure the videos are copied in the videos folder of EmbedUI

Info

You can click the Assets icon in the menu bar of the application to open the Assets folder. You can find the EmbedUI folder in My Documents > EmbedUi