Skip to content

RFC: Plugin load metadata #14

@vitaliy-bobrov

Description

@vitaliy-bobrov

The DX / performance of loading plugin process, it requires to load metadata and then it creates a custom node, what if it will work more like this:

 const ctx = new AudioContext();
 const player = document.getElementById('soundSample');

 const mediaSource = ctx.createMediaElementSource(player);
 const pluginURL = "https://wasabi.i3s.unice.fr/WebAudioPluginBank/WASABI/PingPongDelay3";

// Fetch the plugin module (js module or commonjs/whatever)
 const pluginModule = await fetch(pluginURL);

// Just create a plugin node (optionally it could take options after context) no need to know node 
// class symbol, plugin is not aware of how it is loaded, but might have logic for additional resources // load, ex. WA
const pluginNode = new pluginModule.Node(ctx);

 mediaSource.connect(node);
 node.connect(ctx.destination);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions