mirror of
https://onedev.site.tesses.net/tytd2025
synced 2026-02-08 17:45:45 +00:00
Fix downloader bug, use plink and add icon to plugin template
This commit is contained in:
@@ -7,6 +7,7 @@ func Pages.VideoEmbed(id, name)
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
</style>";
|
</style>";
|
||||||
|
const srcTag = $"<source src=\"./api/v1/download?v={Net.Http.UrlEncode(id)}&inline=true\" type=\"video/mp4\"/>";
|
||||||
const html = <!DOCTYPE html>
|
const html = <!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
@@ -27,8 +28,8 @@ func Pages.VideoEmbed(id, name)
|
|||||||
preload="auto"
|
preload="auto"
|
||||||
poster={$"./api/v1/video-thumbnail?v={Net.Http.UrlEncode(id)}&res=default"}
|
poster={$"./api/v1/video-thumbnail?v={Net.Http.UrlEncode(id)}&res=default"}
|
||||||
data-setup="{\"fill\": true}"
|
data-setup="{\"fill\": true}"
|
||||||
src={$"./api/v1/download?v={Net.Http.UrlEncode(id)}&inline=true"}
|
|
||||||
>
|
>
|
||||||
|
<raw(srcTag)>
|
||||||
<p class="vjs-no-js">
|
<p class="vjs-no-js">
|
||||||
To view this video please enable JavaScript, and consider upgrading to a
|
To view this video please enable JavaScript, and consider upgrading to a
|
||||||
web browser that
|
web browser that
|
||||||
|
|||||||
Reference in New Issue
Block a user