{
    "additionalProperties": false,
    "description": "Common Context Schema for a media player event",
    "properties": {
        "currentTime": {
            "description": "The current playback time",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "number"
        },
        "duration": {
            "description": "A double-precision floating-point value indicating the duration of the media in seconds",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": [
                "number",
                "null"
            ]
        },
        "ended": {
            "description": "If playback of the media has ended",
            "type": "boolean"
        },
        "isLive": {
            "description": "If the media is live",
            "type": "boolean"
        },
        "loop": {
            "description": "If the video should restart after ending",
            "type": "boolean"
        },
        "muted": {
            "description": "If the media element is muted",
            "type": "boolean"
        },
        "paused": {
            "description": "If the media element is paused",
            "type": "boolean"
        },
        "percentProgress": {
            "description": "The percent of the way through the media",
            "maximum": 100,
            "minimum": 0,
            "type": [
                "integer",
                "null"
            ]
        },
        "playbackRate": {
            "description": "Playback rate (1 is normal)",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "number"
        },
        "volume": {
            "description": "Volume percent",
            "maximum": 100,
            "minimum": 0,
            "type": "integer"
        }
    },
    "required": [
        "currentTime",
        "duration",
        "ended",
        "loop",
        "muted",
        "paused",
        "playbackRate",
        "volume"
    ],
    "self": {
        "format": "jsonschema",
        "name": "media_player",
        "vendor": "com.snowplowanalytics.snowplow",
        "version": "1-0-0"
    },
    "type": "object"
}