{
    "additionalProperties": false,
    "description": "Context Schema for a youtube player event",
    "properties": {
        "autoPlay": {
            "description": "This specifies whether the initial video will automatically start to play when the player loads.",
            "type": "boolean"
        },
        "avaliablePlaybackRates": {
            "description": "An array of playback rates in which the current video is available",
            "items": {
                "maximum": 128,
                "minimum": 0,
                "type": "number"
            },
            "type": "array"
        },
        "avaliableQualityLevels": {
            "description": "An array of quality levels in which the current video is available",
            "items": {
                "maxLength": 128,
                "type": "string"
            },
            "type": [
                "array",
                "null"
            ]
        },
        "buffering": {
            "description": "If the player is buffering",
            "type": "boolean"
        },
        "controls": {
            "description": "Whether the video player controls are displayed",
            "type": "boolean"
        },
        "cued": {
            "description": "If the video is cued",
            "type": "boolean"
        },
        "error": {
            "description": "A string of the latest error to occur, or null if no errors",
            "enum": [
                "INVALID_PARAMETER",
                "HTML5_PLAYER_ERROR",
                "NOT_FOUND",
                "EMBED_DISALLOWED"
            ],
            "type": [
                "string",
                "null"
            ]
        },
        "fov": {
            "description": "The field-of-view of the view in degrees, as measured along the longer edge of the viewport",
            "maximum": 120,
            "minimum": 30,
            "type": [
                "number",
                "null"
            ]
        },
        "loaded": {
            "description": "The percentage of the video that the player shows as buffered",
            "maximum": 100,
            "minimum": 0,
            "type": "integer"
        },
        "origin": {
            "description": "The origin domain of the embed",
            "maxLength": 65535,
            "type": [
                "string",
                "null"
            ]
        },
        "pitch": {
            "description": "The vertical angle of the view in degrees",
            "maximum": 90,
            "minimum": -90,
            "type": [
                "number",
                "null"
            ]
        },
        "playbackQuality": {
            "description": "The quality level of the current video",
            "maxLength": 128,
            "type": "string"
        },
        "playerId": {
            "description": "The HTML id of the video element",
            "maxLength": 65535,
            "type": "string"
        },
        "playlist": {
            "description": "An array of the video IDs in the playlist as they are currently ordered.",
            "type": [
                "array",
                "null"
            ]
        },
        "playlistIndex": {
            "description": "The index of the playlist video that is currently playing",
            "maximum": 65535,
            "minimum": 0,
            "type": [
                "number",
                "null"
            ]
        },
        "roll": {
            "description": "The clockwise or counterclockwise rotational angle of the view in degrees",
            "maximum": 180,
            "minimum": -180,
            "type": [
                "number",
                "null"
            ]
        },
        "unstarted": {
            "description": "If the player hasn't started",
            "type": "boolean"
        },
        "url": {
            "_format": "uri",
            "description": "The YouTube embed URL of the media resource",
            "maxLength": 65535,
            "type": "string"
        },
        "yaw": {
            "description": "The horizontal angle of the view in degrees",
            "maximum": 360,
            "minimum": 0,
            "type": [
                "number",
                "null"
            ]
        }
    },
    "required": [
        "avaliablePlaybackRates",
        "autoPlay",
        "buffering",
        "controls",
        "cued",
        "loaded",
        "playbackQuality",
        "playerId",
        "unstarted",
        "url"
    ],
    "self": {
        "format": "jsonschema",
        "name": "youtube",
        "vendor": "com.youtube",
        "version": "1-0-0"
    },
    "type": "object"
}