gstwebrtc-api: use as non global instance
For an application I'm developing I'd like to incorporate the provided gstwebrtc-api
for JavaScript. This works, however it is less than ideal that the library acts as a single global instance instead of an object that can be instantiated.
The problems that could be solved with this:
- Set a config on the declaration of a new instance instead of a single config before
DOM
load. - Communicate with multiple signalling servers from one page.
From the documentation I couldn't deduce the design choices that led to it being a global instance, but in my opinion the other option would be beneficial.
The question becomes; is this a change that would be accepted? And if so, is there someone who would want to help make this change? As I'm not that familiar with the stack that was used to build the original implementation.