diff --git a/src/core/VideoPlayer.ts b/src/core/VideoPlayer.ts index bc5363f..3cc2f7f 100644 --- a/src/core/VideoPlayer.ts +++ b/src/core/VideoPlayer.ts @@ -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);