-
Hello, I am having problems implementing the module in my VUE code. Everytime i run the loadPlayer function i do not recieve anything back. import { loadPlayer } from 'rtsp-relay/browser'; export default { setup() { |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
This works well for me: <template>
<canvas ref="canvas" />
</template>
<script setup>
import { ref, onMounted } from "vue";
import { loadPlayer } from "rtsp-relay/browser";
const canvas = ref(null);
onMounted(() => {
loadPlayer({
url: "ws://localhost:2000/api/stream/2",
canvas: canvas.value,
});
});
</script> |
Beta Was this translation helpful? Give feedback.
-
Will it still work if I use a rtsp url instead of ws? |
Beta Was this translation helpful? Give feedback.
This works well for me: