@clockworkdog/cogs-client 1.0.0-rc.9 → 1.2.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AudioPlayer.js +0 -1
- package/dist/CogsConnection.js +5 -2
- package/dist/VideoPlayer.js +0 -1
- package/dist/browser/index.js +7 -3
- package/dist/helpers/urls.js +1 -2
- package/dist/index.js +0 -1
- package/dist/types/AllMediaClipStatesMessage.js +0 -1
- package/dist/types/AudioState.js +0 -1
- package/dist/types/CogsClientMessage.js +0 -1
- package/dist/types/MediaClipStateMessage.js +0 -1
- package/dist/types/MediaObjectFit.js +0 -1
- package/dist/types/VideoState.js +0 -1
- package/dist/types/valueTypes.js +0 -1
- package/package.json +1 -1
- package/dist/AudioPlayer.js.map +0 -1
- package/dist/CogsConnection.js.map +0 -1
- package/dist/VideoPlayer.js.map +0 -1
- package/dist/helpers/urls.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types/AllMediaClipStatesMessage.js.map +0 -1
- package/dist/types/AudioState.js.map +0 -1
- package/dist/types/CogsClientMessage.js.map +0 -1
- package/dist/types/MediaClipStateMessage.js.map +0 -1
- package/dist/types/MediaObjectFit.js.map +0 -1
- package/dist/types/VideoState.js.map +0 -1
- package/dist/types/valueTypes.js.map +0 -1
package/dist/AudioPlayer.js
CHANGED
package/dist/CogsConnection.js
CHANGED
|
@@ -133,11 +133,12 @@ function websocketParametersFromUrl(url) {
|
|
|
133
133
|
const localClientId = pathParams.get('local_id');
|
|
134
134
|
const isSimulator = pathParams.get('simulator') === 'true';
|
|
135
135
|
const display = (_a = pathParams.get('display')) !== null && _a !== void 0 ? _a : '';
|
|
136
|
+
const pluginId = parsedUrl.pathname.startsWith('/plugin/') ? parsedUrl.pathname.split('/')[2] : undefined;
|
|
136
137
|
if (localClientId) {
|
|
137
138
|
const type = (_b = pathParams.get('t')) !== null && _b !== void 0 ? _b : '';
|
|
138
139
|
pathParams.delete('local_id');
|
|
139
140
|
return {
|
|
140
|
-
path: `/
|
|
141
|
+
path: `/local/${encodeURIComponent(localClientId)}`,
|
|
141
142
|
pathParams: new URLSearchParams({ t: type }),
|
|
142
143
|
useReconnectingWebsocket: true,
|
|
143
144
|
};
|
|
@@ -154,10 +155,12 @@ function websocketParametersFromUrl(url) {
|
|
|
154
155
|
pathParams.delete('displayIdIndex');
|
|
155
156
|
return { path: `/display/${encodeURIComponent(display)}/${encodeURIComponent(displayIdIndex)}` };
|
|
156
157
|
}
|
|
158
|
+
else if (pluginId) {
|
|
159
|
+
return { path: `/plugin/${encodeURIComponent(pluginId)}`, useReconnectingWebsocket: true };
|
|
160
|
+
}
|
|
157
161
|
else {
|
|
158
162
|
const serial = (_e = pathParams.get('serial')) !== null && _e !== void 0 ? _e : '';
|
|
159
163
|
pathParams.delete('serial');
|
|
160
164
|
return { path: `/client/${encodeURIComponent(serial)}`, pathParams };
|
|
161
165
|
}
|
|
162
166
|
}
|
|
163
|
-
//# sourceMappingURL=CogsConnection.js.map
|
package/dist/VideoPlayer.js
CHANGED