Closed strange-qwq closed 2 years ago
π Thanks for opening your first issue here! π
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.
Seems to be working here https://videojs-preview.netlify.app/sandbox/useraction-click
Can you provide a live minimal test page for this? For example, codesandbox or codepen?
Seems to be working here https://videojs-preview.netlify.app/sandbox/useraction-click
Can you provide a live minimal test page for this? For example, codesandbox or codepen?
https://codesandbox.io/s/video-js-issues-project-dvqzxc?file=/src/components/HelloWorld.vue
Thanks! Looks like the reason is that controls are turned off. Clicking on the video isn't available when controls: false
is set. My first thought is that changing this to make non-default actions work could potentially break folks.
You should be able to add your own click handler, though, as we don't stopPropagation or preventDefault on the event.
Thanks! Looks like the reason is that controls are turned off. Clicking on the video isn't available when
controls: false
is set. My first thought is that changing this to make non-default actions work could potentially break folks.You should be able to add your own click handler, though, as we don't stopPropagation or preventDefault on the event.
OK, so that's the design, not issues?
Yes, not handling the click event when controls are false is expected behavior.
Yes, not handling the click event when controls are false is expected behavior.
thanks, It is recommended to update this description in the document
Made a PR to the guides here https://github.com/videojs/videojs.com/pull/157
Description
I set the execution function of the userActions.click event in the options, but it does not execute after I click the video box, how can I solve it?
In addition, I tried to add an error event to the ready function before, because I needed to deal with it after it failed to play, but it didn't take effect, so I can only change it to a waiting event now, however, It also will be executed when the network environment is poor. Is there any other event that can be replaced?
Reduced test case
No response
Steps to reproduce
this is a vite 3.0.3 project 1.create project 2.add component
3.using components
Errors
nothing
What version of Video.js are you using?
7.20.2
Video.js plugins used.
No response
What browser(s) including version(s) does this occur with?
Microsoft Edge 105.0.1343.4 dev (x64)
What OS(es) and version(s) does this occur with?
Windows 11