moqtail 0.11.0 → 0.12.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/client.cjs +142 -194
- package/dist/client.d.cts +1 -10
- package/dist/client.d.ts +1 -10
- package/dist/client.js +142 -194
- package/dist/index.cjs +145 -194
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +143 -195
- package/dist/model.cjs +145 -192
- package/dist/model.d.cts +2 -2
- package/dist/model.d.ts +2 -2
- package/dist/model.js +143 -193
- package/dist/{setup_parameter-BOeGq6Mv.d.cts → setup_parameter-BgNrJRDS.d.cts} +35 -1
- package/dist/{setup_parameter-BOeGq6Mv.d.ts → setup_parameter-BgNrJRDS.d.ts} +35 -1
- package/package.json +1 -1
package/dist/client.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ControlMessage, U as MoqtObject, y as Location, u as FullTrackName,
|
|
1
|
+
import { c as ControlMessage, U as MoqtObject, y as Location, u as FullTrackName, au as TrackExtension, ao as Subscribe, a4 as PublishDoneStatusCode, ae as RequestUpdate, F as Fetch, a2 as Publish, ad as RequestOk, aa as RequestError, a5 as PublishNamespace, p as FetchOk, aq as SubscribeOk, R as MessageParameter, ap as SubscribeNamespace, a8 as PublishOk, v as GroupOrder, q as FetchType, ak as SetupParameters, D as Datagram, r as FilterType, ay as Tuple, ac as RequestIdMap, a7 as PublishNamespaceDone, G as GoAway, an as SubgroupObject, al as SubgroupHeader, n as FetchObject, l as FetchHeader, a3 as PublishDone, ah as ServerSetup, a6 as PublishNamespaceCancel, X as NamespaceSubscribeOptions, aC as UnsubscribeNamespace, aw as TrackStatus, H as Header } from './setup_parameter-BgNrJRDS.cjs';
|
|
2
2
|
import { L as LogLevel } from './logger-C6QS408Z.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -206,7 +206,6 @@ declare class HybridTrackSource implements TrackSource {
|
|
|
206
206
|
* const liveStream: ReadableStream<MoqtObject> = buildCameraStream()
|
|
207
207
|
* const track: Track = {
|
|
208
208
|
* fullTrackName,
|
|
209
|
-
* forwardingPreference: ObjectForwardingPreference.Latest,
|
|
210
209
|
* trackSource: { live: liveStream },
|
|
211
210
|
* publisherPriority: 0
|
|
212
211
|
* }
|
|
@@ -219,7 +218,6 @@ declare class HybridTrackSource implements TrackSource {
|
|
|
219
218
|
* recording.forEach(obj => cache.add(obj))
|
|
220
219
|
* const track: Track = {
|
|
221
220
|
* fullTrackName,
|
|
222
|
-
* forwardingPreference: ObjectForwardingPreference.All,
|
|
223
221
|
* trackSource: { past: cache },
|
|
224
222
|
* publisherPriority: 64
|
|
225
223
|
* }
|
|
@@ -232,7 +230,6 @@ declare class HybridTrackSource implements TrackSource {
|
|
|
232
230
|
* const liveStream = buildLiveReadableStream()
|
|
233
231
|
* const track: Track = {
|
|
234
232
|
* fullTrackName,
|
|
235
|
-
* forwardingPreference: ObjectForwardingPreference.Latest,
|
|
236
233
|
* trackSource: { past: cache, live: liveStream },
|
|
237
234
|
* publisherPriority: 8
|
|
238
235
|
* }
|
|
@@ -244,10 +241,6 @@ type Track = {
|
|
|
244
241
|
* Globally unique identifier for the track.
|
|
245
242
|
*/
|
|
246
243
|
fullTrackName: FullTrackName;
|
|
247
|
-
/**
|
|
248
|
-
* Hint controlling which objects SHOULD be forwarded / prioritized.
|
|
249
|
-
*/
|
|
250
|
-
forwardingPreference: ObjectForwardingPreference;
|
|
251
244
|
/**
|
|
252
245
|
* Accessors for live and/or past objects belonging to this track.
|
|
253
246
|
*/
|
|
@@ -1362,7 +1355,6 @@ declare class MOQtailClient {
|
|
|
1362
1355
|
* // Register the track for live subscription
|
|
1363
1356
|
* client.addOrUpdateTrack({
|
|
1364
1357
|
* fullTrackName: { namespace: ["camera"], name: "main" },
|
|
1365
|
-
* forwardingPreference: ObjectForwardingPreference.Latest,
|
|
1366
1358
|
* trackSource: { live: liveReadableStream },
|
|
1367
1359
|
* publisherPriority: 0 // highest priority
|
|
1368
1360
|
* });
|
|
@@ -1372,7 +1364,6 @@ declare class MOQtailClient {
|
|
|
1372
1364
|
* const cache = new MemoryObjectCache(); // Caches are not yet fully supported
|
|
1373
1365
|
* client.addOrUpdateTrack({
|
|
1374
1366
|
* fullTrackName: { namespace: ["camera"], name: "main" },
|
|
1375
|
-
* forwardingPreference: ObjectForwardingPreference.Latest,
|
|
1376
1367
|
* trackSource: { live: liveReadableStream, past: cache },
|
|
1377
1368
|
* publisherPriority: 8
|
|
1378
1369
|
* });
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ControlMessage, U as MoqtObject, y as Location, u as FullTrackName,
|
|
1
|
+
import { c as ControlMessage, U as MoqtObject, y as Location, u as FullTrackName, au as TrackExtension, ao as Subscribe, a4 as PublishDoneStatusCode, ae as RequestUpdate, F as Fetch, a2 as Publish, ad as RequestOk, aa as RequestError, a5 as PublishNamespace, p as FetchOk, aq as SubscribeOk, R as MessageParameter, ap as SubscribeNamespace, a8 as PublishOk, v as GroupOrder, q as FetchType, ak as SetupParameters, D as Datagram, r as FilterType, ay as Tuple, ac as RequestIdMap, a7 as PublishNamespaceDone, G as GoAway, an as SubgroupObject, al as SubgroupHeader, n as FetchObject, l as FetchHeader, a3 as PublishDone, ah as ServerSetup, a6 as PublishNamespaceCancel, X as NamespaceSubscribeOptions, aC as UnsubscribeNamespace, aw as TrackStatus, H as Header } from './setup_parameter-BgNrJRDS.js';
|
|
2
2
|
import { L as LogLevel } from './logger-C6QS408Z.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -206,7 +206,6 @@ declare class HybridTrackSource implements TrackSource {
|
|
|
206
206
|
* const liveStream: ReadableStream<MoqtObject> = buildCameraStream()
|
|
207
207
|
* const track: Track = {
|
|
208
208
|
* fullTrackName,
|
|
209
|
-
* forwardingPreference: ObjectForwardingPreference.Latest,
|
|
210
209
|
* trackSource: { live: liveStream },
|
|
211
210
|
* publisherPriority: 0
|
|
212
211
|
* }
|
|
@@ -219,7 +218,6 @@ declare class HybridTrackSource implements TrackSource {
|
|
|
219
218
|
* recording.forEach(obj => cache.add(obj))
|
|
220
219
|
* const track: Track = {
|
|
221
220
|
* fullTrackName,
|
|
222
|
-
* forwardingPreference: ObjectForwardingPreference.All,
|
|
223
221
|
* trackSource: { past: cache },
|
|
224
222
|
* publisherPriority: 64
|
|
225
223
|
* }
|
|
@@ -232,7 +230,6 @@ declare class HybridTrackSource implements TrackSource {
|
|
|
232
230
|
* const liveStream = buildLiveReadableStream()
|
|
233
231
|
* const track: Track = {
|
|
234
232
|
* fullTrackName,
|
|
235
|
-
* forwardingPreference: ObjectForwardingPreference.Latest,
|
|
236
233
|
* trackSource: { past: cache, live: liveStream },
|
|
237
234
|
* publisherPriority: 8
|
|
238
235
|
* }
|
|
@@ -244,10 +241,6 @@ type Track = {
|
|
|
244
241
|
* Globally unique identifier for the track.
|
|
245
242
|
*/
|
|
246
243
|
fullTrackName: FullTrackName;
|
|
247
|
-
/**
|
|
248
|
-
* Hint controlling which objects SHOULD be forwarded / prioritized.
|
|
249
|
-
*/
|
|
250
|
-
forwardingPreference: ObjectForwardingPreference;
|
|
251
244
|
/**
|
|
252
245
|
* Accessors for live and/or past objects belonging to this track.
|
|
253
246
|
*/
|
|
@@ -1362,7 +1355,6 @@ declare class MOQtailClient {
|
|
|
1362
1355
|
* // Register the track for live subscription
|
|
1363
1356
|
* client.addOrUpdateTrack({
|
|
1364
1357
|
* fullTrackName: { namespace: ["camera"], name: "main" },
|
|
1365
|
-
* forwardingPreference: ObjectForwardingPreference.Latest,
|
|
1366
1358
|
* trackSource: { live: liveReadableStream },
|
|
1367
1359
|
* publisherPriority: 0 // highest priority
|
|
1368
1360
|
* });
|
|
@@ -1372,7 +1364,6 @@ declare class MOQtailClient {
|
|
|
1372
1364
|
* const cache = new MemoryObjectCache(); // Caches are not yet fully supported
|
|
1373
1365
|
* client.addOrUpdateTrack({
|
|
1374
1366
|
* fullTrackName: { namespace: ["camera"], name: "main" },
|
|
1375
|
-
* forwardingPreference: ObjectForwardingPreference.Latest,
|
|
1376
1367
|
* trackSource: { live: liveReadableStream, past: cache },
|
|
1377
1368
|
* publisherPriority: 8
|
|
1378
1369
|
* });
|