summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/transport.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/transport.js b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
index 1b9abb3..4ee5810 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/transport.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
@@ -579,8 +579,11 @@ class MeshBayTransport {
* MediaSource consumes a segment at a time — which is fine for a clip and
* fatal for anything worth streaming.
*/
- requestStream(fileId, credits = STREAM_CREDITS) {
- this._send({ type: 'stream_req', v: '0.1', file_id: fileId, credits });
+ requestStream(fileId, credits = STREAM_CREDITS, start = 0) {
+ // `start` is a seek: the node retires whatever this session was streaming
+ // and spawns ffmpeg again from there. Omitted or zero is the film's
+ // beginning, which is what an 0.1 node understands.
+ this._send({ type: 'stream_req', v: '0.1', file_id: fileId, credits, start });
}
/** Room for `n` more segments. */