So, Fell inlove with DUIs
thought I will make sort of a library for them.
The way the handler works now, You give it a renderTargetName and it chooses a random prop that matches it.
Exports these methods:
AddDui(renderTargetName, string url) CreateRandomUniqueDuiContainer(url) Creates a random DUI for this url with unique renderTargetName destroyAllDui Removes all DUI without destroying for reuseability !!
Will create a huge cinema screen with this awesome Avengers video.
There’s a full example inside the repository.
It’s not really a library it’s an addon that lives in your client and can manage DUI for you, Because you can’t really “destroy” DUI because it keeps playing, It just changes the url to “about:blank” and will reuse that DUI if you will use the same renderTargetName next time after you tried to remove it.