{
  "$schema": "https://schemas.wp.org/trunk/block.json",
  "apiVersion": 3,
  "name": "html5-player/video",
  "title": "HTML5 Video Player",
  "version": "2.9.1",
  "description": "Embed Video anywhere in your website ",
  "category": "media",
  "icon": "video-alt2",
  "keywords": [
    "HTML5 Video Player",
    "Media Player",
    "Video"
  ],
  "textdomain": "h5vp",
  "attributes": {
    "provider": {
      "type": "string",
      "default": "self-hosted"
    },
    "presetId": {
      "type": [
        "string",
        "number"
      ],
      "default": null
    },
    "imported": {
      "type": "boolean",
      "default": false
    },
    "clientId": {
      "type": "string"
    },
    "uniqueId": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "default": ""
    },
    "poster": {
      "type": "string",
      "default": ""
    },
    "options": {
      "type": "object",
      "default": {
        "controls": [
          "play-large",
          "play",
          "progress",
          "current-time",
          "mute",
          "volume",
          "captions",
          "settings",
          "airplay",
          "fullscreen"
        ],
        "settings": [
          "captions",
          "quality",
          "speed",
          "loop"
        ],
        "loadSprite": true,
        "autoplay": false,
        "playsinline": true,
        "seekTime": 10,
        "volume": 1,
        "muted": false,
        "hideControls": true,
        "resetOnEnd": false,
        "tooltips": {
          "controls": true,
          "seek": true
        },
        "captions": {
          "active": true,
          "language": "auto",
          "update": true
        },
        "ratio": null,
        "storage": {
          "enabled": true,
          "key": "plyr"
        },
        "speed": {
          "options": [
            0.5,
            0.75,
            1,
            1.25,
            1.5,
            1.75,
            2,
            4
          ]
        },
        "loop": {
          "active": false
        },
        "ads": {
          "enabled": true,
          "tagUrl": null
        },
        "urls": {
          "enabled": false,
          "download": null
        },
        "markers": {
          "enabled": false,
          "points": []
        },
        "preload": "metadata"
      }
    },
    "features": {
      "type": "object",
      "default": {
        "popup": {
          "enabled": false,
          "selector": null,
          "hasBtn": false,
          "type": "button",
          "btnText": "Watch Video",
          "align": "center",
          "btnStyle": {},
          "isTrigger": false
        },
        "overlay": {
          "enabled": false,
          "items": [
            {
              "color": "#fff",
              "backgroundColor": "#333",
              "fontSize": "16px",
              "link": "",
              "logo": "",
              "text": "Simple Text",
              "position": "top_right",
              "type": "text",
              "opacity": 1
            }
          ]
        },
        "endScreen": {
          "enabled": false,
          "text": "Simple Text",
          "btnText": "Visit",
          "btnLink": "",
          "btnStyle": {}
        },
        "thumbInPause": {
          "enabled": false,
          "type": "default"
        },
        "watermark": {
          "enabled": false,
          "type": "email",
          "text": "",
          "color": "#f00"
        },
        "passwordProtected": {
          "enabled": false,
          "errorMessage": "Password didn't matched",
          "heading": "Please Entire the password to access the video",
          "button": {
            "text": "Access",
            "color": "#222",
            "backgroundColor": "#ffffffe3"
          }
        },
        "sticky": {
          "enabled": false,
          "position": "top_right"
        },
        "playWhenVisible": false,
        "disablePause": false,
        "hideYoutubeUI": false,
        "startTime": null,
        "hideLoadingPlaceholder": false
      }
    },
    "onlyLoggedIn": {
      "type": "object",
      "default": {
        "whoCanSeeThisVideo": "everyone",
        "allowedRoles": [],
        "message": "This video is only for registered users. Please login to watch the video."
      }
    },
    "seo": {
      "type": "object",
      "default": {
        "title": "",
        "description": "",
        "duration": ""
      }
    },
    "quality": {
      "type": "array",
      "default": []
    },
    "subtitle": {
      "type": "array",
      "default": [
        {
          "label": "English/en",
          "caption_file": ""
        }
      ]
    },
    "thumbInPause": {
      "type": "boolean",
      "default": false
    },
    "hideYoutubeUI": {
      "type": "boolean",
      "default": false
    },
    "additionalCSS": {
      "type": "string"
    },
    "additionalID": {
      "type": "string"
    },
    "autoplayWhenVisible": {
      "type": "boolean",
      "default": false
    },
    "styles": {
      "type": "object",
      "default": {
        "plyr_wrapper": {
          "width": "100%",
          "borderRadius": "0px",
          "overflow": "hidden"
        }
      }
    },
    "CSS": {
      "type": "string",
      "default": ""
    },
    "ratio": {
      "type": "string",
      "default": null
    },
    "isCDURL": {
      "type": "boolean",
      "default": false
    },
    "CDURL": {
      "type": "string"
    },
    "posterTime": {
      "type": "number",
      "default": 20
    },
    "chapters": {
      "type": "array",
      "default": []
    },
    "controls": {
      "type": "object",
      "default": {
        "play-large": true,
        "restart": false,
        "rewind": false,
        "play": true,
        "fast-forward": false,
        "progress": true,
        "current-time": true,
        "duration": false,
        "mute": true,
        "volume": true,
        "pip": false,
        "airplay": false,
        "settings": true,
        "downlaod": false,
        "fullscreen": true
      }
    },
    "brandColor": {
      "type": "string",
      "default": "#00B3FF"
    },
    "width": {
      "type": "object",
      "default": {
        "deprecated": true,
        "number": 100,
        "unit": "%"
      }
    },
    "radius": {
      "type": "object",
      "default": {
        "number": 0,
        "unit": "px"
      }
    },
    "repeat": {
      "type": "boolean",
      "default": false
    },
    "autoplay": {
      "type": "boolean",
      "default": false
    },
    "muted": {
      "type": "boolean",
      "default": false
    },
    "sticky": {
      "type": "boolean",
      "default": false
    },
    "stickyPosition": {
      "type": "string",
      "default": "top-right"
    },
    "popup": {
      "type": "boolean",
      "default": false
    },
    "popupType": {
      "type": "string",
      "default": "button"
    },
    "playsinline": {
      "type": "boolean",
      "default": false
    },
    "popupBtnStyle": {
      "type": "object",
      "default": {}
    },
    "popupBtnText": {
      "type": "string",
      "default": "Watch Video"
    },
    "popupBtnExists": {
      "type": "boolean"
    },
    "popupBtnClass": {
      "type": "string"
    },
    "disablePause": {
      "type": "boolean",
      "default": false
    },
    "thumbStyle": {
      "type": "string",
      "default": "default"
    },
    "resetOnEnd": {
      "type": "boolean",
      "default": false
    },
    "autoHideControl": {
      "type": "boolean",
      "default": true
    },
    "protected": {
      "type": "boolean",
      "default": false
    },
    "password": {
      "type": "string"
    },
    "protectedText": {
      "type": "string",
      "default": "Please enter password to wath the video"
    },
    "seekTime": {
      "type": "number",
      "default": 10
    },
    "startTime": {
      "type": "number",
      "default": 0
    },
    "preload": {
      "type": "string",
      "default": "metadata"
    },
    "overlay": {
      "type": "boolean",
      "default": false
    },
    "overlayType": {
      "type": "string",
      "default": "text"
    },
    "overlayText": {
      "type": "string",
      "default": "Simple Text"
    },
    "overlayPosition": {
      "type": "string",
      "default": "top_right"
    },
    "overlayBackground": {
      "type": "string",
      "default": "#333"
    },
    "overlayOpacity": {
      "type": "number",
      "default": 0.8
    },
    "overlayLogo": {
      "type": "string"
    },
    "overlayLink": {
      "type": "string"
    },
    "overlayTextColor": {
      "type": "string",
      "default": "#ffffff"
    },
    "overlayFontSize": {
      "type": "object",
      "default": {
        "number": 20,
        "unit": "px"
      }
    },
    "overlayTextHoverColor": {
      "type": "string",
      "default": "#ffffff"
    },
    "endScreen": {
      "type": "object",
      "default": {
        "enabled": false,
        "text": "Simple Text",
        "btnText": "Click Here",
        "btnLink": "",
        "btnStyle": {}
      }
    },
    "endscreen": {
      "type": "boolean",
      "default": false
    },
    "endscreenText": {
      "type": "string",
      "default": "Endscreen text"
    },
    "endscreenTextLink": {
      "type": "string",
      "default": "#"
    },
    "streaming": {
      "type": "boolean",
      "default": false
    },
    "streamingType": {
      "type": "string",
      "default": "hls"
    },
    "speed": {
      "type": "object",
      "default": {
        "1": true,
        "2": true,
        "3": true,
        "0.5": true,
        "0.75": true,
        "1.25": true,
        "1.5": true,
        "1.75": true,
        "2.5": true
      }
    },
    "captionEnabled": {
      "type": "boolean",
      "default": false
    },
    "vastTag": {
      "type": "string"
    },
    "saveState": {
      "type": "boolean",
      "default": false
    }
  },
  "supports": {
    "html": false,
    "lock": false,
    "reusable": false
  },
  "example": {
    "attributes": {
      "preview": true
    }
  },
  "viewStyle": "file:./../view.css",
  "editorStyle": [
    "file:../blocks.css",
    "bplugins-plyrio"
  ],
  "editorScript": [
    "file:../blocks.js",
    "bplugins-plyrio",
    "wp-util",
    "wp-data",
    "wp-block-editor"
  ],
  "render": "file:./../render.php",
  "viewScript": [
    "react",
    "react-dom",
    "wp-util",
    "bplugins-plyrio",
    "file:./../view.js"
  ]
}