Closed vogdb closed 1 year ago
Aha. Found it. I can get player API by this:
<script>
const player = document.querySelector('vm-player');
console.log(player);
// Example function to showcase updating property.
// const seekForward = () => {
// player.currentTime += 5;
// };
// // Example function to showcase calling player method.
// const enterFullscreen = () => {
// player.enterFullscreen();
// };
</script>
Hi! At the vm-control doc page there is an example of HTML custom control
It renders fine but the problem is that it does not do anything. I suspect there should be
onClick
handler as in adjacent Svelte example. Is it possible to useonClick
in HTML custom control or should I stick to Svelte or any other framework?