summaryrefslogtreecommitdiff
path: root/libretube-theme/static/js/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'libretube-theme/static/js/play.js')
-rw-r--r--libretube-theme/static/js/play.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/libretube-theme/static/js/play.js b/libretube-theme/static/js/play.js
new file mode 100644
index 0000000..6655e8a
--- /dev/null
+++ b/libretube-theme/static/js/play.js
@@ -0,0 +1,21 @@
+// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
+const player = new Plyr('#player-ply', {
+ captions: { active: true, language: 'es' },
+ controls: [
+ 'play-large',
+ 'play',
+ 'progress',
+ 'current-time',
+ 'duration',
+ 'mute',
+ 'volume',
+ 'captions',
+ 'settings',
+ 'download',
+ 'fullscreen'
+ ],
+ iconUrl: "/theme/modules/plyr/plyr.svg",
+ blankVideo: "/theme/modules/plyr/blank.webm",
+ debug: false,
+});
+// @license-end