feat(core): added simple src setting temproary
This commit is contained in:
@@ -29,7 +29,9 @@ export class VP {
|
|||||||
if (!this.config.type) {
|
if (!this.config.type) {
|
||||||
throw new Error('Type not specified in config.');
|
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) {
|
if (config.controls) {
|
||||||
this.ui = new BaseUI(this, this.video, this.config.prefixClass);
|
this.ui = new BaseUI(this, this.video, this.config.prefixClass);
|
||||||
|
|||||||
Reference in New Issue
Block a user