{
    "repositoryUrl": "repository",
    "manifestFileName": "data.json",

    "defaultLayout": "presenter-presentation",


    "progressIndicator": {
        "showTotal": true,
        "parentContainer": "buttonArea",
        "side": "left",
        "visible": true,
        "showHandler": true,
        "hideHandlerOnMouseOut": true,
        "showRemainingProgress": true
    },

    "videoContainer": {
        "overPlaybackBar": true,

        "restorePlaybackRate": true,
        "restoreVolume": true,
        "restoreLastTime": {
            "enabled": true,
            "remainingSeconds": 5
        },

        "cookieConsentType": "necessary"
    },

    "cookieConsent": [
        {
            "type": "necessary",
            "title": "Necessary",
            "description": "Cookies required for proper operation.",
            "required": true
        },
        {
            "type": "preferences",
            "title": "Preferences",
            "description": "Cookies used to store user preferences that can be configured in the application. If disabled, some of these features may not work properly.",
            "required": false
        },
        {
            "type": "analytical",
            "title": "Analytical",
            "description": "Cookies used to analyze user behavior and thus provide clues about future improvements in the application.",
            "required": false
        },
        {
            "type": "marketing",
            "title": "Marketing",
            "description": "Cookies used to better tailor ads to user preferences.",
            "required": false
        }
    ],
    
    "plugins": {
        "es.upv.paella.testPlugin": {
            "enabled": true,
            "side": "left",
            "order": 3
        },
        "es.upv.paella.testPlugin2": {
            "enabled": true,
            "side": "right"
        },
        "es.upv.paella.singleVideo": {
            "enabled": true,
            "validContent": [
                { "id": "presenter", "content": ["presenter"], "icon": "present-mode-2.svg", "title": "Presenter" },
                { "id": "presentation", "content": ["presentation"], "icon": "present-mode-1.svg", "title": "Presentation" },
                { "id": "presenter-2", "content": ["presenter-2"], "icon": "present-mode-1.svg", "title": "Presentation" }
            ]
        },
        "es.upv.paella.dualVideo": {
            "enabled": true,
            "validContent": [
                { "id": "presenter-presentation", "content": ["presenter","presentation"], "icon": "present-mode-3.svg", "title": "Presenter and presentation" },
                { "id": "presenter-2-presentation", "content": ["presenter-2","presentation"], "icon": "present-mode-3.svg", "title": "Presenter and presentation" },
                { "id": "presenter-presenter-2", "content": ["presenter","presenter-2"], "icon": "present-mode-3.svg", "title": "Presenter and presentation" }
            ]
        },
        "es.upv.paella.tripleVideo": {
            "enabled": true,
            "validContent": [
                { "id": "presenter-presenter-2-presentation", "content": ["presenter","presenter-2","presentation"], "icon": "present-mode-4.svg", "title": "Presenter and presentation" },
                { "id": "presenter-2-presenter-3-presentation", "content": ["presenter-2","presenter-3","presentation"], "icon": "present-mode-4.svg", "title": "Presenter and presentation" }
            ]
        },

        "es.upv.paella.hlsVideoFormat": {
            "enabled": true,
            "order": 0,
            "hlsConfig": {
                "maxBufferLength": 40
            },
            "corsConfig": {
                "withCredentials": false,
                "requestHeaders": {
                    "Access-Control-Allow-Credentials": false
                }
            }
        },

        "es.upv.paella.hlsLiveVideoFormat": {
            "enabled": true,
            "order": 0,
            "enableCache": true,
            "hlsConfig": {
                "enableWorker": true,
                "maxBufferLength": 1,
                "liveBackBufferLength": 0,
                "liveSyncDuration": 0,
                "liveMaxLatencyDuration": 5,
                "liveDurationInfinity": true,
                "highBufferWatchdogPeriod": 1
            },
            "corsConfig": {
                "withCredentials": false,
                "requestHeaders": {
                    "Access-Control-Allow-Credentials": false
                }
            }
        },

        "es.upv.paella.mp4VideoFormat": {
            "enabled": true,
            "order": 1
        },

        "es.upv.paella.videoCanvas": {
            "enabled": true,
            "order": 1
        },
        
        "es.upv.paella.playPauseButton": {
            "enabled": true,
            "order": 0,
            "description": "Play/pause"
        },
        "es.upv.paella.fullscreenButton": {
            "enabled": true,
            "side": "right",
            "order": 2
        },
        "es.upv.paella.downloadsPlugin": {
            "enabled": true,
            "side": "right",
            "order": 3,
            "description": "Downloads"
        },

        "es.upv.paella.volumeButtonPlugin": {
            "enabled": true,
            "side": "left",
            "order": 3,
            "volumeAlwaysVisible": true,
            "showVolumeOnFocus": true
        },
        
        "es.upv.paella.forwardButtonPlugin": {
            "enabled": true,
            "side": "left",
            "order": 2,
            "time": 30,
            "suffix": true
        },

        "es.upv.paella.backwardButtonPlugin": {
            "enabled": true,
            "side": "left",
            "order": 1,
            "time": 30,
            "suffix": true
        },

        "es.upv.paella.layoutSelector": {
            "enabled": true,
            "side": "right",
            "parentContainer": "videoContainer",
            "menuTitle": "Layout selector",
            "showIcons": false
        },

        "es.upv.paella.playbackRateButton": {
            "enabled": true,
            "side": "right",
            "parentContainer_": "videoContainer",
            "rates": [0.75, 1, 1.5, 2],
            "menuTitle": "Playback Rate",
            "showIcon": false
        },

        "es.upv.paella.vttManifestCaptionsPlugin": {
            "enabled": true
        },

        "es.upv.paella.captionsSelectorPlugin": {
            "enabled": true,
            "side": "right"
        },

        "es.upv.paella.hlsCaptionsSelectorPlugin": {
            "enabled": true,
            "side": "right"
        },

        "es.upv.paella.qualitySelector": {
            "enabled": true,
            "side": "right",
            "parentContainer": "videoContainer",
            "showIcon": false
        },

        "es.upv.paella.audioSelector": {
            "enabled": true,
            "side": "right",
            "menuTitle": "Audio track",
            "showIcon": false
        },

        "es.upv.paella.defaultShortcuts": {
            "enabled": true
        },

        "es.upv.paella.keyboardShortcutsHelp": {
            "enabled": true,
            "parentContainer": "videoContainer",
            "order": 80,
            "description": "Keyboard shortcuts",
            "resizeable": true,
            "popUpType": "no-modal"
        },

        "es.upv.paella.findCaptionsPlugin": {
            "enabled": true,
            "side": "right",
            "description": "Search in captions",
            "resizeable": true,
            "moveable": true,
            "menuTitle": "Search in captions",
            "closeActions": {
                "clickOutside": false,
                "closeButton": true
            }
        },

        "es.upv.paella.customTimeProgressIndicator": {
            "enabled": true,
            "textSize": "large",
            "showTotal": false
        },

        "es.upv.paella.liveStreamingProgressIndicator": {
            "enabled": true,
            "layer": "foreground",
            "side": "left",
            "margin": 10,
            "textColor": "#AA0000",
            "circleColor": "#FF0000"
        }
    }
}

