Skip to content

Assistance with playing video on Annotation clicked. #4703

Answered by danilokrulj
skapezempire asked this question in Q&A
Discussion options

You must be logged in to vote

Make a div element with the video inside it and than toggle its display settings when clicking the hotspot?

  1. Make the function that toggles the div elements display settings (from "none" to "block" or whatever you use)
  2. Find the hotspot by its id.
  3. Add a 'click' event listener on it and call the function on click

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@skapezempire
Comment options

Answer selected by elalish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants