's'
This commit is contained in:
BIN
frontend/dist/assets/Editor-CrhKqQW4.js.gz
vendored
BIN
frontend/dist/assets/Editor-CrhKqQW4.js.gz
vendored
Binary file not shown.
BIN
frontend/dist/assets/Editor-CxQHNayt.js.gz
vendored
Normal file
BIN
frontend/dist/assets/Editor-CxQHNayt.js.gz
vendored
Normal file
Binary file not shown.
BIN
frontend/dist/assets/Editor-legacy-BKQosGxG.js.gz
vendored
BIN
frontend/dist/assets/Editor-legacy-BKQosGxG.js.gz
vendored
Binary file not shown.
BIN
frontend/dist/assets/Editor-legacy-Bq7Ok0m8.js.gz
vendored
Normal file
BIN
frontend/dist/assets/Editor-legacy-Bq7Ok0m8.js.gz
vendored
Normal file
Binary file not shown.
BIN
frontend/dist/assets/Preview-BHke-GKx.js.gz
vendored
BIN
frontend/dist/assets/Preview-BHke-GKx.js.gz
vendored
Binary file not shown.
BIN
frontend/dist/assets/Preview-CAiVbnPe.js.gz
vendored
Normal file
BIN
frontend/dist/assets/Preview-CAiVbnPe.js.gz
vendored
Normal file
Binary file not shown.
BIN
frontend/dist/assets/Preview-legacy-BUFloOk9.js.gz
vendored
BIN
frontend/dist/assets/Preview-legacy-BUFloOk9.js.gz
vendored
Binary file not shown.
BIN
frontend/dist/assets/Preview-legacy-ipAiTdrv.js.gz
vendored
Normal file
BIN
frontend/dist/assets/Preview-legacy-ipAiTdrv.js.gz
vendored
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
frontend/dist/assets/index-Dzasemas.js.gz
vendored
Normal file
BIN
frontend/dist/assets/index-Dzasemas.js.gz
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
frontend/dist/assets/index-rBmUZe0u.js.gz
vendored
BIN
frontend/dist/assets/index-rBmUZe0u.js.gz
vendored
Binary file not shown.
6
frontend/dist/public/index.html
vendored
6
frontend/dist/public/index.html
vendored
@@ -125,10 +125,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="module" crossorigin src="[{[ .StaticURL ]}]/assets/index-rBmUZe0u.js"></script>
|
<script type="module" crossorigin src="[{[ .StaticURL ]}]/assets/index-Dzasemas.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="[{[ .StaticURL ]}]/assets/dayjs-BaXUFriC.js">
|
<link rel="modulepreload" crossorigin href="[{[ .StaticURL ]}]/assets/dayjs-BaXUFriC.js">
|
||||||
<link rel="modulepreload" crossorigin href="[{[ .StaticURL ]}]/assets/i18n-UjFZsrt2.js">
|
<link rel="modulepreload" crossorigin href="[{[ .StaticURL ]}]/assets/i18n-UjFZsrt2.js">
|
||||||
<link rel="stylesheet" crossorigin href="[{[ .StaticURL ]}]/assets/index-Bw3R8OZH.css">
|
<link rel="stylesheet" crossorigin href="[{[ .StaticURL ]}]/assets/index-CCpZnTfb.css">
|
||||||
<script type="module">import.meta.url;import("_").catch(()=>1);(async function*(){})().next();if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
|
<script type="module">import.meta.url;import("_").catch(()=>1);(async function*(){})().next();if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
|
||||||
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
|
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
|
||||||
</head>
|
</head>
|
||||||
@@ -149,6 +149,6 @@
|
|||||||
<link rel="stylesheet" href="[{[ .StaticURL ]}]/custom.css" />
|
<link rel="stylesheet" href="[{[ .StaticURL ]}]/custom.css" />
|
||||||
[{[ end ]}]
|
[{[ end ]}]
|
||||||
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
|
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
|
||||||
<script nomodule crossorigin id="vite-legacy-polyfill" src="[{[ .StaticURL ]}]/assets/polyfills-legacy-D8GbthlL.js"></script>
|
<script nomodule crossorigin id="vite-legacy-polyfill" src="[{[ .StaticURL ]}]/assets/polyfills-legacy-D8GbthlL.js"></script>
|
||||||
<script nomodule crossorigin id="vite-legacy-entry" data-src="[{[ .StaticURL ]}]/assets/index-legacy-8ei4NIas.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
<script nomodule crossorigin id="vite-legacy-entry" data-src="[{[ .StaticURL ]}]/assets/index-legacy-8ei4NIas.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<p class="modified">
|
<p class="modified">
|
||||||
<time :datetime="modified">{{ humanTime() }}</time>
|
<time :datetime="modified">{{ humanTime() }}</time>
|
||||||
<!-- 直播按钮 -->
|
<!-- 直播按钮 -->
|
||||||
<button v-if="!isDir && isVideoFile(name)" class="live-button" @click="loopLive">
|
<button v-if="!isDir && isVideoFile(name)" class="live-button" @click="loopLive">
|
||||||
循环直播
|
循环直播
|
||||||
</button>
|
</button>
|
||||||
<button v-if="!isDir && isVideoFile(name)" class="live-button" @click="startLive">
|
<button v-if="!isDir && isVideoFile(name)" class="live-button" @click="startLive">
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
<button v-if="!isDir && isVideoFile(name)" class="live-button" @click="stopLive">
|
<button v-if="!isDir && isVideoFile(name)" class="live-button" @click="stopLive">
|
||||||
停止直播
|
停止直播
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -387,7 +387,7 @@ const stopLive = async () => {
|
|||||||
|
|
||||||
// 调用 FastAPI 停止接口
|
// 调用 FastAPI 停止接口
|
||||||
// const res = await fetch("http://192.168.31.103:8700/stop_live", {
|
// const res = await fetch("http://192.168.31.103:8700/stop_live", {
|
||||||
const res = await fetch("http://127.0.0.1:8700/stop_live", {
|
const res = await fetch(`${location.protocol}//${location.hostname}8700/stop_live`, {
|
||||||
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
@@ -413,11 +413,11 @@ const loopLive = async () => {
|
|||||||
// props.url 是 FileBrowser 内部路径,例如 /videos/test.mp4
|
// props.url 是 FileBrowser 内部路径,例如 /videos/test.mp4
|
||||||
const file_path = props.url;
|
const file_path = props.url;
|
||||||
// const file_path = encodeURIComponent(props.url);
|
// const file_path = encodeURIComponent(props.url);
|
||||||
console.log('file_path',file_path)
|
console.log('file_path', file_path)
|
||||||
|
|
||||||
// 调用 FastAPI 后端接口
|
// 调用 FastAPI 后端接口
|
||||||
// const res = await fetch("http://192.168.31.103:8700/loop_Live", {
|
// const res = await fetch("http://192.168.31.103:8700/loop_Live", {
|
||||||
const res = await fetch("http://127.0.0.1:8700/loop_Live", {
|
const res = await fetch(`${location.protocol}//${location.hostname}8700/loop_Live`, {
|
||||||
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
@@ -447,7 +447,7 @@ const obsLive = async () => {
|
|||||||
|
|
||||||
// 这里模拟 OBS 推流逻辑,你可以根据实际后端接口来调整
|
// 这里模拟 OBS 推流逻辑,你可以根据实际后端接口来调整
|
||||||
// const res = await fetch("http://192.168.31.103:8700/obs_live", {
|
// const res = await fetch("http://192.168.31.103:8700/obs_live", {
|
||||||
const res = await fetch("http://127.0.0.1:8700/obs_live", {
|
const res = await fetch(`${location.protocol}//${location.hostname}:8700/obs_live`, {
|
||||||
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
@@ -472,11 +472,11 @@ const startLive = async () => {
|
|||||||
// props.url 是 FileBrowser 内部路径,例如 /videos/test.mp4
|
// props.url 是 FileBrowser 内部路径,例如 /videos/test.mp4
|
||||||
const file_path = props.url;
|
const file_path = props.url;
|
||||||
// const file_path = encodeURIComponent(props.url);
|
// const file_path = encodeURIComponent(props.url);
|
||||||
console.log('file_path',file_path)
|
console.log('file_path', file_path)
|
||||||
|
|
||||||
// 调用 FastAPI 后端接口
|
// 调用 FastAPI 后端接口
|
||||||
const res = await fetch("http://192.168.31.103:8700/start_live", {
|
const res = await fetch(`${location.protocol}//${location.hostname}:8700/start_live`, {
|
||||||
// const res = await fetch("http://127.0.0.1:8700/start_live", {
|
// const res = await fetch("http://127.0.0.1:8700/start_live", {
|
||||||
|
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
|
|||||||
Reference in New Issue
Block a user