diff --git a/src/html/Home.vue b/src/html/Home.vue
index 180b0d1..c7ab55d 100644
--- a/src/html/Home.vue
+++ b/src/html/Home.vue
@@ -30,14 +30,8 @@
-
+
@@ -107,16 +101,16 @@ const handleStartStream = async () => {
playing.value = true;
// 创建播放器
- const url = `ws://192.168.28.33:${streamPort.value}/`;
+ const url = `ws://192.168.28.33:${streamPort.value}/`;
console.log('Playing set to true:', playing.value);
-
+
if (playerRef.value) {
playerRef.value.destroy(); // 销毁旧播放器
}
if (window.JSMpeg) {
playerRef.value = new window.JSMpeg.Player(url, {
- canvas: canvasRef.value,
+ canvas: canvasRef.value,
autoplay: true,
videoBufferSize: 15 * 1024 * 1024,
audioBufferSize: 5 * 1024 * 1024,
@@ -166,10 +160,15 @@ onMounted(() => {
\ No newline at end of file