WebHare community

Intializing video after getting content through an RPC

I have an RPC that fetches the content of an RTD and displays it. But how would I enable wh-video? Already tried these three, after getting and displaying the content:

import { initializeVideoElementV2 } from '@webhare-publisher/richcontent/all';

dompack.register('.wh-video', node => initializeVideoElementV2(node));

importing richcontent combined with invoking dompack.registerMissed

make sure the element is in the DOM before you invoke registerMissed, or CSS selectors might not match

1 Like