Last updated

List of Documented Args

  • Watermark Settings

You can add a watermark to your video using the following arguments:

gallery.args.watermark_on_off = true; // true/false
gallery.args.watermark_position = "top_left"; // top_left, top_right, bottom_left, bottom_right
gallery.args.watermark = "https://wwwcdn.cincopa.com/_cms/design15/images/Smiling_Emoji_with_Smiling_Eyes.png";
gallery.args.watermark_link = "https://www.cincopa.com/video-hosting";
gallery.args.new_page = true;
  • Share options

Enable and customize sharing options:

gallery.args.share = true;
gallery.args.share_url = "https://www.cincopa.com/video-hosting";
  • Embed options

Control how the player is embedded:

gallery.args.embed_code = "<iframe .... add your customized embed code here />";
gallery.args.embed_url = "https://www.cincopa.com/video-hosting";
  • Preroll and Postroll

Add videos to play before (preroll) or after (postroll) the main video:

gallery.args.prerollAssetID="AQJDeYiYFKhg"; //  Pre roll video  asset ID
gallery.args.postrollAssetID ="AQJDeYiYFKhg"; // Post roll video asset ID
gallery.args.prepostroll="true";// turn on 'Pre/Post Roll Video' option
gallery.args.rollFrequency="on_each";// Role Frequency on_each, on_first, on_first_last
  • Dynamic lead generation

See example: How to add lead generation form to a video

  • Download button

Allow users to download the video:

gallery.args.download_button = true; // true/false

  • Auto start a video

Set the video to play automatically when loaded:

gallery.args.autostart = "true"; // true/false

  • Override theme colors

Change the main theme color using a hex value:

gallery.args.theme_color_main ="DD5AD9" ;// hex value

  • Other useful args

Here are other helpful options:

gallery.args.allow_search = "yes"; // yes/no
gallery.args.force_ratio = 1.78; // force the player ratio, this is useful to make sure player will always be same size even if video is portrait