bbc / VideoContext

An experimental HTML5 & WebGL video composition and rendering API.
http://bbc.github.io/VideoContext/
Apache License 2.0
1.33k stars 157 forks source link

Expose internal nodes for extending #208

Closed mmtftr closed 4 years ago

mmtftr commented 4 years ago

I am working on a project that utilizes VideoContext and we want to extend MediaNode and such but it seems we have to use unorthodox means to get our custom nodes because VideoContext only exports the VideoContext class.

Is it possible for you to also export the classes of VideoNode, MediaNode, SourceNode and so on?

germain-gg commented 4 years ago

Hi @MMDF ,

There is the concept of a CustomSourceNode. There is a mention of it in the README.md I believe this covers most use cases but let me know if you can't achieve what you want here

mmtftr commented 4 years ago

Thanks, I did not realize that that was possible. I was getting the prototypes and extending manually.