aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Artplayer.js50
1 files changed, 0 insertions, 50 deletions
diff --git a/lib/Artplayer.js b/lib/Artplayer.js
index 0a00135..de454bb 100644
--- a/lib/Artplayer.js
+++ b/lib/Artplayer.js
@@ -6,8 +6,6 @@ export default function Player({
option,
res,
quality,
- subSize,
- subtitles,
getInstance,
...rest
}) {
@@ -47,54 +45,6 @@ export default function Player({
theme: "#f97316",
settings: [
{
- html: "Subtitle",
- width: 300,
- tooltip: "English",
- selector: [
- {
- html: "Font Size",
- selector: subSize,
- onSelect: function (item) {
- if (item.html === "Small") {
- art.subtitle.style({ fontSize: "16px" });
- localStorage.setItem(
- "subSize",
- JSON.stringify({
- size: "16px",
- html: "Small",
- })
- );
- } else if (item.html === "Medium") {
- art.subtitle.style({ fontSize: "36px" });
- localStorage.setItem(
- "subSize",
- JSON.stringify({
- size: "36px",
- html: "Medium",
- })
- );
- } else if (item.html === "Large") {
- art.subtitle.style({ fontSize: "56px" });
- localStorage.setItem(
- "subSize",
- JSON.stringify({
- size: "56px",
- html: "Large",
- })
- );
- }
- },
- },
- ...subtitles,
- ],
- onSelect: function (item) {
- art.subtitle.switch(item.url, {
- name: item.html,
- });
- return item.html;
- },
- },
- {
html: "Quality",
width: 150,
tooltip: `${res}`,