Extend or compose video XBlocks XModule

Hi all,
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!
Juan

Hi Juan, I don’t have answer for this, just want to check if you have eventually found the information you needed that you can share with us.

I myself is looking for an API of the edX video component wchich works like Youtube API that allow one to specify the start time of the video by passing t=XmXs in the URL