You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using webrtc and js to listen to events, I was able to remotely control the shared computer. But there is a problem, when I left click (for example to close a window on the shared device), the sharing screen will pause.
But when I use
@click="mouseHandler($event)"
onMounted(() => {
remoteDesktop(); // Call remoteDesktop method on component mount
});
After, all mouse operations are forbidden (including clicking and sliding the mouse), how to solve
If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
Description
Using webrtc and js to listen to events, I was able to remotely control the shared computer. But there is a problem, when I left click (for example to close a window on the shared device), the sharing screen will pause.
But when I use
@click="mouseHandler($event)"
onMounted(() => {
remoteDesktop(); // Call remoteDesktop method on component mount
});
After, all mouse operations are forbidden (including clicking and sliding the mouse), how to solve
Reduced test case
null
Steps to reproduce
1.<video class="video" ref="videoElements"
:srcObject="video.stream" controls autoplay @mousedown="e => mouseDown(e, $refs.videoElements[index])"
@mouseup="e => mouseUp(e, $refs.videoElements[index])"
@mousemove="e => mouseMove(e, $refs.videoElements[index])" @wheel="e => wheel(e, $refs.videoElements[index])"
@contextmenu.prevent="e => rightClick(e, $refs.videoElements[index])"
@DBLClick="toggleFullScreen($refs.videoElements[index])" @click="mouseHandler($event)">
2.const mouseHandler = (event) => {
// 阻止视频默认点击事件
event.preventDefault();
};
Errors
No response
What version of Video.js are you using?
null
Video.js plugins used.
No response
What browser(s) including version(s) does this occur with?
null
What OS(es) and version(s) does this occur with?
null
The text was updated successfully, but these errors were encountered: