click to time
This commit is contained in:
1 parent
6df44a1dd3
commit
dacb6cd249
5 files changed
+63
-20
No files matched your search
@@ -18,7 +18,6 @@ import { ref, useTemplateRef } from "vue";
|
||||
const q = ref("");
|
||||
const videoSrc = ref("");
|
||||
const videoEl = useTemplateRef("video");
|
||||
const wsRef = ref<WebSocket>();
|
||||
|
||||
function onSubmit(ev: SubmitEvent) {
|
||||
ev.preventDefault();
|
||||
@@ -29,7 +28,6 @@ function onSubmit(ev: SubmitEvent) {
|
||||
|
||||
function onVideoLoad() {
|
||||
const ws = new WebSocket("ws://localhost:8080");
|
||||
wsRef.value = ws;
|
||||
|
||||
const vid = videoEl.value!;
|
||||
|
||||
@@ -81,7 +79,6 @@ function onVideoLoad() {
|
||||
};
|
||||
|
||||
ws.onclose = () => {
|
||||
wsRef.value = undefined;
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user