aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/transport.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/transport.js b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
index e57ad8b..2668e02 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/transport.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
@@ -1376,18 +1376,6 @@ class MeshBayTransport {
return msg;
}
- async fetchStreamSegment(fileId, segmentIndex, segmentDuration) {
- const msg = await this._sendAndWait({
- type: 'stream_seg',
- v: '0.1',
- file_id: fileId,
- segment_index: segmentIndex,
- segment_duration: segmentDuration || 4,
- });
- if (msg.type === 'error') throw new Error(msg.detail);
- return _b64decode(msg.data_b64);
- }
-
/**
* A page of chat history, newest first by default.
*
@@ -3029,13 +3017,6 @@ function _decodeMap(buf, view, offset, count) {
return [obj, offset];
}
-function _b64decode(b64) {
- const binary = atob(b64);
- const bytes = new Uint8Array(binary.length);
- for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
- return bytes;
-}
-
function _extractDtlsFingerprint(sdp) {
const match = sdp.match(/a=fingerprint:sha-256 ([0-9A-Fa-f:]+)/);
if (!match) return new Uint8Array(0);