VideoKit provides two UI components: Player and Uploader. The Player allows you to efficiently play a single video or a playlist of videos with minimal loading time while Uploader is responsible for uploading videos to the platform. There are two main ways to create a UI component and embed it in an application or a web page.
You can create it as an instance of component class.
And you can also embed a UI component to your page using special HTML tags.
These HTML tags will be initialized automatically when VideoKit and DOM are loaded. If you inserted a UI component tag after page loading, then you need to call the
UI.initComponents() method to let VideoKit know that it should look for new element and initialize it. Parameters of UI components for custom HTML tags should be passed as data attributes.
To get an instance of a component created using custom HTML tags, you can use the following: