浏览代码

Update Player.html

MoeClub 5 年之前
父节点
当前提交
e427c7cb56
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      ffmpeg/Player/Player.html

+ 3 - 3
ffmpeg/Player/Player.html

@@ -7,8 +7,8 @@
   <link rel="stylesheet" type="text/css" href="{{ escape(SubPath) }}{{ static_url("css/video-js.min.css") }}">
   <style type="text/css">
     * {margin: 0; padding: 0;}
-  	html, body {height: 100%; overflow: hidden;}
-  	body {text-align: center; background: black;}
+    html, body {height: 100%; overflow: hidden;}
+    body {text-align: center; background: black;}
     video:focus {outline: none;}
     .wrapper {width: 100%; margin: auto; height: 100%; text-align: center;}
     .video-js {width: 100% !important; height: 100% !important; position: relative !important;}
@@ -51,7 +51,7 @@ player.ready(function () {
     volumeStep: 0.1,
     enableModifiersForNumbers: false
   });
-  if (checkExists(vtt)) {
+  if (checkExists(webvtt)) {
 	  player.addRemoteTextTrack({kind: "captions", label: "subtitles on", mode: "showing", src: webvtt});
     textSetting = player.textTrackSettings.getValues();
     textSetting.backgroundOpacity = "0";