How to embed a video or channel using HTML

In order to embed a video or channel manually into any HTML page. You can use following script tag and add it in the head tag of your HTML document.

<script>!function (e, t, i) { if (void 0 === e._dyntube_v1_init) { e._dyntube_v1_init = !0; var a = t.createElement("script"); a.type = "text/javascript", a.async = !0, a.src = "", t.getElementsByTagName("head")[0].appendChild(a) } }(window, document);</script>

Once the script has been added. You can add a div tag into your page where video/channel needs to be displayed.
The div tag should have a attribute "data-dyntube-key". The value should be "Key" of your video channel.
In case of a video, the value should be "channelKey" field of the video.
You can find the channelKey of a video by listing your videos using API.
If you want to find the key of channel without the AIP, just go to this page. You will see your channels listed there. Just click on the desired "icon with three dots" to get the channel key.

    <div data-dyntube-key="1YUNqRTds12DxjljCVnHQ"></div>