aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFactiven <[email protected]>2023-05-22 13:11:45 +0700
committerFactiven <[email protected]>2023-05-22 13:11:45 +0700
commit7c6274d46fd4285ebcd0f1c1dd3d229df30fbb44 (patch)
tree1c019797234eccb636fc09537035b3da8d786a51 /lib
parentSmall changes (diff)
downloadmoopa-7c6274d46fd4285ebcd0f1c1dd3d229df30fbb44.tar.xz
moopa-7c6274d46fd4285ebcd0f1c1dd3d229df30fbb44.zip
Update v3.6.0
> We switch back to gogo as a source and this will fix the video won't play on iOS devices > Removed subtitle function since gogo doesn't provide external subtitle
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}`,