feat(core): added simple src setting temproary

This commit is contained in:
2026-04-29 23:49:02 +03:30
parent 98ee8b5653
commit 8bf42d99d8

View File

@@ -29,7 +29,9 @@ export class VP {
if (!this.config.type) {
throw new Error('Type not specified in config.');
}
this.adapter = adapterRegistry.createAdapter(this.config.type, this.video);
this.adapter = adapterRegistry.createAdapter(this.config.type, this.video, {
src: this.config.adapters?.src,
});
if (config.controls) {
this.ui = new BaseUI(this, this.video, this.config.prefixClass);