Custom html Marker doesn't position Marker at right time #2707
Replies: 2 comments 1 reply
-
@Watchereth do you have a link to sample code we can see? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @Watchereth, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have checked all documentation, issues on GitHub as well as 3rd Party sites and couldn't find any fix for this. Im building a player where people can comment on the track similar to Soundcloud. I've already managed to get comments displayed while the track is playing by using the regions plugin. Now the last thing that is missing is that I want to display the Avatar of each commenter at the position where the comment was made (in sec).
I set up the Marker plugin and even found a newer commit from 2022 that allowed for custom HTML Markers using the markerElement property. I create my custom marker and then select it with documents.querySelector. It shows the avatar instead of the timestamp correctly but every time I use a my custom element instead of the marker it messes up the position and he marker get displayed at the beginning of the waveform. Im not sure if there error is with my custom element or how I am using it because the time property still seems to work -> when clicking on the custom timestamp it seeks to the specified time. It is purely a positioning bug that only occurs when I am using a custom markerElement.
Beta Was this translation helpful? Give feedback.
All reactions