Skip to content

Commit

Permalink
[player-4170]
Browse files Browse the repository at this point in the history
-updated skin schema
-renamed a few keys
  • Loading branch information
aeng7 committed Sep 12, 2018
1 parent 4005481 commit 8b670b3
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
38 changes: 35 additions & 3 deletions skin-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
"skipControls": {
"description": "Toolbar which contains buttons that allow skipping back or forward and switching to the previous or next videos.",
"type": "object",
"required": [ "enabled", "skipBackwardTime", "skipForwardTime", "buttons" ],
"required": [ "enabled", "skipBackwardTime", "skipForwardTime", "buttons", "controlBarButtons" ],
"properties": {
"enabled": {
"description": "Show the \"Skip Controls\" toolbar if set to true, hide if set to false.",
Expand Down Expand Up @@ -574,6 +574,32 @@
"$ref": "#/definitions/skipControlsButton"
}
}
},
"controlBarButtons": {
"description": "The collection of skip controls buttons that can be displayed in the control bar.",
"type": "object",
"properties": {
"previousVideo": {
"description": "Button that allows switching to the last video that was played or to the previous video in a playlist.",
"$ref": "#/definitions/skipControlsButton"
},
"skipBackward": {
"description": "Button that allows skipping the video backward the amount of seconds defined in \"skipBackwardTime\".",
"$ref": "#/definitions/skipControlsButton"
},
"skipForward": {
"description": "Button that allows skipping the video forward the amount of seconds defined in \"skipForwardTime\".",
"$ref": "#/definitions/skipControlsButton"
},
"nextVideo": {
"description": "Button that allows switching to the next video recommendation or to the next video in a playlist.",
"$ref": "#/definitions/skipControlsButton"
},
"playPause": {
"description": "Button that allows playback or pausing of the video.",
"$ref": "#/definitions/skipControlsButton"
}
}
}
}
},
Expand Down Expand Up @@ -805,6 +831,11 @@
"description": "Set the default audio language. This is a string of the form \"en\" for English, \"fr\" for French, etc.",
"type": "string",
"default": "en"
},
"audioOnly": {
"description": "Set to true to enable the audio only player",
"type": "boolean",
"default": "false"
}
}
},
Expand All @@ -826,12 +857,13 @@
"description": "Defines the buttons that can appear on the controlBar and/or the moreOptions panel. Desktop and Mobile platforms can be configured individually.",
"type": "object",
"additionalProperties": false,
"required": ["desktopContent", "mobileContent"],
"required": ["desktopContent", "mobileContent", "audioOnly"],
"properties": {
"desktopContent": { "$ref": "#/definitions/buttonArray" },
"desktopAd": { "$ref": "#/definitions/buttonArray" },
"mobileContent": { "$ref": "#/definitions/buttonArray" },
"mobileAd": { "$ref": "#/definitions/buttonArray" }
"mobileAd": { "$ref": "#/definitions/buttonArray" },
"audioOnly": { "$ref": "#/definitions/buttonArray" }
}
},
"icons": {
Expand Down
6 changes: 3 additions & 3 deletions skin.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
},
"responsive": {
"breakpoints": {
"audioOnly": {"id": "audioOnly", "name": "oo-xsmall", "multiplier": 0.7},
"audio-only-xs": {"id": "audio-only-xs", "name": "oo-xsmall", "multiplier": 0.7},
"xs": {"id": "xs", "name": "oo-xsmall", "maxWidth": 559, "multiplier": 0.7},
"sm": {"id": "sm", "name": "oo-small", "minWidth": 560, "maxWidth": 839, "multiplier": 1},
"md": {"id": "md", "name": "oo-medium", "minWidth": 840, "maxWidth": 1279, "multiplier": 1},
Expand Down Expand Up @@ -201,7 +201,7 @@
"index": 4
}
},
"buttonsWithPlayPause": {
"controlBarButtons": {
"previousVideo": {
"enabled": true,
"index": 1
Expand Down Expand Up @@ -278,7 +278,7 @@
},
"audio": {
"audioLanguage": "none",
"audioOnly": false
"audioOnly": true
},
"animationDurations": {
"vrNotification": 5,
Expand Down

0 comments on commit 8b670b3

Please sign in to comment.