I want to develop a component that has a video inside and add some other features.
I need to have kind of advanced control of the video component. That means trigger “play” or “pause”, but also restart the video from begining from JS, when the user clicks a button.
The possible strategies I’m exploring are:
- Compose components. Build my own XBlock that contains a video module inside.
- Inherit components. Build my own XBlock (or XModule?) that extends VideoModule.
Is there any documentation to accomplish that?
Or any other component that does something similar?
I’m working on a fork or Ironwood master.
Thanks in advance!