clappr-markers-plugin icon indicating copy to clipboard operation
clappr-markers-plugin copied to clipboard

Using clappr-markers-plugin in a component module

Open marksteven opened this issue 2 years ago • 1 comments

I have made a React page with video player and used your marker plugins successfully on it. I then made a React Component and imported it into a page successfully using props

<ClapprPlayerComp 
url={'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'}
/>

But I have not been able to successfully add markers to this part of the page rather than the Component side Example below (that does not work)

<ClapprPlayerComp 
url={'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8'}
markers={[new ClapprMarkersPlugin.StandardMarker(300, "Middle Bit.") ]}
/>

I have tried a number of ways but have been unsuccessful. Do you maybe have an example of ways to add markers to the main page rather than the Comp side? Much appreciated regards Mark

marksteven avatar Aug 22 '22 13:08 marksteven

Hey is there an error in the console?

Would be great if you could get an example on stackblitz that you could share

Would need to see what ClapprPlayerComp looks like

tjenkinson avatar Sep 01 '22 09:09 tjenkinson