From 441a5816c84361710f971af2b217e41f1105a5cd Mon Sep 17 00:00:00 2001 From: mrcou <38640086+mrcou@users.noreply.github.com> Date: Tue, 1 Jun 2021 19:12:07 +0800 Subject: [PATCH] Update StlVideo.cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当前播放是纯粹的video标签播放,没有载入video.js插件。修正video.js插件没有启用的问题。 --- src/SSCMS.Core/StlParser/StlElement/StlVideo.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/SSCMS.Core/StlParser/StlElement/StlVideo.cs b/src/SSCMS.Core/StlParser/StlElement/StlVideo.cs index 72476dc95..e99c52f04 100644 --- a/src/SSCMS.Core/StlParser/StlElement/StlVideo.cs +++ b/src/SSCMS.Core/StlParser/StlElement/StlVideo.cs @@ -16,7 +16,7 @@ public static class StlVideo [StlAttribute(Title = "指定视频的字段")] private const string Type = nameof(Type); - [StlAttribute(Title = "视频地址")] + [StlAttribute(Title = "视频地址")] private const string PlayUrl = nameof(PlayUrl); [StlAttribute(Title = "图片地址")] @@ -132,8 +132,10 @@ private static async Task ParseAsync(IParseManager parseManager, string var dict = new Dictionary { - {"class", "video-js vjs-default-skin"}, - {"src", videoUrl} + {"class", "video-js vjs-default-skin vjs-big-play-centered vjs-fluid"}, + {"id", contentId}, + {"src", videoUrl}, + {"data-setup", "{}"} }; if (isAutoPlay) { @@ -157,7 +159,7 @@ private static async Task ParseAsync(IParseManager parseManager, string } dict.Add("height", string.IsNullOrEmpty(height) ? "280" : height); - return $@""; + return $@""; } } }