moqtail 0.12.0 → 0.13.0
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/README.md +7 -7
- package/dist/client-BzncAN14.mjs +4359 -0
- package/dist/client-DahXR3l4.cjs +4496 -0
- package/dist/client.cjs +25 -8254
- package/dist/client.d.cts +1333 -1470
- package/dist/client.d.mts +1706 -0
- package/dist/client.mjs +2 -0
- package/dist/index-C8pNnaj0.d.cts +2814 -0
- package/dist/index-C8pNnaj0.d.mts +2814 -0
- package/dist/index.cjs +284 -8975
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +5 -0
- package/dist/logger-ByDB8lYF.mjs +56 -0
- package/dist/logger-c2NoQqtx.cjs +85 -0
- package/dist/{logger-C6QS408Z.d.cts → logger-dEoueCj7.d.cts} +13 -12
- package/dist/{logger-C6QS408Z.d.ts → logger-dEoueCj7.d.mts} +13 -12
- package/dist/model.cjs +6173 -4883
- package/dist/model.d.cts +2 -442
- package/dist/model.d.mts +2 -0
- package/dist/model.mjs +6115 -0
- package/dist/util.cjs +123 -142
- package/dist/util.d.cts +29 -24
- package/dist/{util.d.ts → util.d.mts} +29 -24
- package/dist/util.mjs +121 -0
- package/package.json +19 -18
- package/dist/client.d.ts +0 -1843
- package/dist/client.js +0 -8233
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -8825
- package/dist/model.d.ts +0 -442
- package/dist/model.js +0 -4951
- package/dist/setup_parameter-BgNrJRDS.d.cts +0 -2758
- package/dist/setup_parameter-BgNrJRDS.d.ts +0 -2758
- package/dist/util.js +0 -139
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
1
|
+
import { $ as GoAway, $t as messageParameterTypeFromNumber, A as MOQtailError, An as ObjectForwardingPreference, At as NewGroupRequest, B as CMSFTrack, Bn as deserializeKvpListUntilEmpty, Bt as GroupOrderParam, C as CastingError, Cn as SUPPORTED_VERSIONS, Ct as MessageParameters, D as InvalidUTF8Error, Dn as DEFAULT_PUBLISHER_PRIORITY, Dt as SubscriptionFilter, E as InvalidTypeError, En as Datagram, Et as serializeMessageParameterKvps, F as TimeoutError, Fn as Tuple, Ft as resolveTransportUrl, G as SubscribeTracks, Gt as ObjectDeliveryTimeout, H as RequestError, Hn as isVarInt, Ht as Expires, I as TrackNameError, In as TupleField, It as GREASE_BASE, J as RequestUpdate, Jt as AuthorizationToken, K as SubscribeNamespace, Kt as FillTimeout, L as VarIntOverflowError, Ln as Location, Lt as GREASE_STEP, M as ProtocolViolationError, Mn as SubgroupHeaderType, Mt as Redirect, N as RequestIdError, Nn as MAX_REASON_PHRASE_LEN, Nt as MoqtFragment, O as KeyValueFormattingError, On as FetchHeaderType, Ot as SubscriberPriority, P as TerminationError, Pn as ReasonPhrase, Pt as MoqtUrl, Q as Subscribe, Qt as TokenAliasType, R as CMSF, Rn as KeyValuePair, Rt as greaseValue, S as TerminationCode, Sn as RequestErrorCode, St as MessageParameter, T as InvalidEnumValue, Tn as FetchHeader, Tt as deserializeMessageParameterKvps, U as RequestOk, Un as serializeKvpList, Ut as SubgroupDeliveryTimeout, V as ControlMessage, Vn as isBytes, Vt as Forward, W as Switch, Wt as RendezvousTimeout, X as Publish, Xt as MessageParameterType, Y as SubscribeOk, Yt as Parameter, Z as PublishDone, Zt as SetupOptionType, _ as AudioLevel, _n as ControlMessageType, _t as Fetch, a as MoqtImplementation, an as FrozenByteBuffer, at as ImmutablePropertiesTrackProperty, b as Timestamp, bn as GroupOrder, bt as Namespace, c as Path, cn as SubgroupHeader, ct as SubgroupDeliveryTimeoutProperty, d as PriorGroupIdGapProperty, dn as FullTrackName, dt as LOCPropertyId, en as setupOptionTypeFromNumber, et as MAX_NEW_SESSION_URI_LENGTH, f as PriorObjectIdGapProperty, fn as MAX_FULL_TRACK_NAME_LENGTH, ft as PropertyRange, g as VideoConfig, gn as FetchObjectContext, gt as locPropertyIdFromNumber, h as LOCProperty, hn as FetchObject, ht as isApplicationSpecificProperty, i as SstsAlgorithms, in as ByteBuffer, it as DynamicGroupsProperty, j as NotEnoughBytesError, jn as ObjectStatus, jt as LargestObject, k as LengthExceedsMaxError, kn as ObjectDatagramType, kt as SwitchingSetAssignment, l as ImmutablePropertiesObjectProperty, ln as MoqtObject, lt as TrackProperty, m as LOCProperties, mn as EndOfRangeKind, mt as TrackPropertyType, n as SetupOptions, nn as PublishBlocked, nt as DefaultPublisherGroupOrderProperty, o as Authority, on as Header, ot as MaxCacheDurationProperty, p as UnknownObjectProperty, pn as MAX_NAMESPACE_TUPLE_COUNT, pt as PropertyRanges, q as TrackStatus, qt as AuthTokenVariant, r as assertNoAuthorityOverWebTransport, rn as BaseByteBuffer, rt as DefaultPublisherPriorityProperty, s as MaxAuthTokenCacheSize, sn as RequestIdMap, st as ObjectDeliveryTimeoutProperty, t as SetupOption, tn as tokenAliasTypeFromNumber, tt as FetchOk, u as ObjectProperty, un as SubgroupObject, ut as UnknownTrackProperty, v as VideoFrameMarking, vn as FetchType, vt as Setup, w as InternalError, wn as TrackStatusCode, wt as applyMessageParameterUpdate, x as StreamResetCode, xn as PublishDoneStatusCode, xt as PublishNamespace, y as Timescale, yn as FilterType, yt as NamespaceDone, z as CMSFCatalog, zn as deserializeKvpList, zt as isGrease } from "./index-C8pNnaj0.cjs";
|
|
2
|
+
import { a as setLogLevel, i as setLogEnabledModules, n as Logger, r as logger, t as LogLevel } from "./logger-dEoueCj7.cjs";
|
|
3
|
+
import { ControlRecvStream, ControlSendStream, ControlStream, EarlyDiscardPolicyConfig, FetchOptions, FetchPublication, FetchRequest, HybridTrackSource, LiveObjectSource, LiveTrackSource, MOQtailClient, MOQtailClientOptions, MOQtailRequest, MemoryObjectCache, ObjectCache, PastObjectSource, PublishNamespaceRequest, PublishPublication, PublishRequest, RecvDatagramStream, RecvStream, RequestStream, RingBufferObjectCache, SendDatagramStream, SendStream, StaticTrackSource, SubscribeNamespaceRequest, SubscribeOptions, SubscribePublication, SubscribeRequest, SubscribeUpdateOptions, SwitchOptions, Track, TrackSource, TrackStatusRequest } from "./client.cjs";
|
|
4
|
+
import { ClockNormalizer, NetworkTelemetry } from "./util.cjs";
|
|
5
|
+
export { AudioLevel, AuthTokenVariant, Authority, AuthorizationToken, BaseByteBuffer, ByteBuffer, CMSF, CMSFCatalog, CMSFTrack, CastingError, ClockNormalizer, ControlMessage, ControlMessageType, ControlRecvStream, ControlSendStream, ControlStream, DEFAULT_PUBLISHER_PRIORITY, Datagram, DefaultPublisherGroupOrderProperty, DefaultPublisherPriorityProperty, DynamicGroupsProperty, EarlyDiscardPolicyConfig, EndOfRangeKind, Expires, Fetch, FetchHeader, FetchHeaderType, FetchObject, FetchObjectContext, FetchOk, FetchOptions, FetchPublication, FetchRequest, FetchType, FillTimeout, FilterType, Forward, FrozenByteBuffer, FullTrackName, GREASE_BASE, GREASE_STEP, GoAway, GroupOrder, GroupOrderParam, Header, HybridTrackSource, ImmutablePropertiesObjectProperty, ImmutablePropertiesTrackProperty, InternalError, InvalidEnumValue, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCProperties, LOCProperty, LOCPropertyId, LargestObject, LengthExceedsMaxError, LiveObjectSource, LiveTrackSource, Location, LogLevel, Logger, MAX_FULL_TRACK_NAME_LENGTH, MAX_NAMESPACE_TUPLE_COUNT, MAX_NEW_SESSION_URI_LENGTH, MAX_REASON_PHRASE_LEN, MOQtailClient, MOQtailClientOptions, MOQtailError, MOQtailRequest, MaxAuthTokenCacheSize, MaxCacheDurationProperty, MemoryObjectCache, MessageParameter, MessageParameterType, MessageParameters, MoqtFragment, MoqtImplementation, MoqtObject, MoqtUrl, Namespace, NamespaceDone, NetworkTelemetry, NewGroupRequest, NotEnoughBytesError, ObjectCache, ObjectDatagramType, ObjectDeliveryTimeout, ObjectDeliveryTimeoutProperty, ObjectForwardingPreference, ObjectProperty, ObjectStatus, Parameter, PastObjectSource, Path, PriorGroupIdGapProperty, PriorObjectIdGapProperty, PropertyRange, PropertyRanges, ProtocolViolationError, Publish, PublishBlocked, PublishDone, PublishDoneStatusCode, PublishNamespace, PublishNamespaceRequest, PublishPublication, PublishRequest, ReasonPhrase, RecvDatagramStream, RecvStream, Redirect, RendezvousTimeout, RequestError, RequestErrorCode, RequestIdError, RequestIdMap, RequestOk, RequestStream, RequestUpdate, RingBufferObjectCache, SUPPORTED_VERSIONS, SendDatagramStream, SendStream, Setup, SetupOption, SetupOptionType, SetupOptions, SstsAlgorithms, StaticTrackSource, StreamResetCode, SubgroupDeliveryTimeout, SubgroupDeliveryTimeoutProperty, SubgroupHeader, SubgroupHeaderType, SubgroupObject, Subscribe, SubscribeNamespace, SubscribeNamespaceRequest, SubscribeOk, SubscribeOptions, SubscribePublication, SubscribeRequest, SubscribeTracks, SubscribeUpdateOptions, SubscriberPriority, SubscriptionFilter, Switch, SwitchOptions, SwitchingSetAssignment, TerminationCode, TerminationError, TimeoutError, Timescale, Timestamp, TokenAliasType, Track, TrackNameError, TrackProperty, TrackPropertyType, TrackSource, TrackStatus, TrackStatusCode, TrackStatusRequest, Tuple, TupleField, UnknownObjectProperty, UnknownTrackProperty, VarIntOverflowError, VideoConfig, VideoFrameMarking, applyMessageParameterUpdate, assertNoAuthorityOverWebTransport, deserializeKvpList, deserializeKvpListUntilEmpty, deserializeMessageParameterKvps, greaseValue, isApplicationSpecificProperty, isBytes, isGrease, isVarInt, locPropertyIdFromNumber, logger, messageParameterTypeFromNumber, resolveTransportUrl, serializeKvpList, serializeMessageParameterKvps, setLogEnabledModules, setLogLevel, setupOptionTypeFromNumber, tokenAliasTypeFromNumber };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { $ as GoAway, $t as messageParameterTypeFromNumber, A as MOQtailError, An as ObjectForwardingPreference, At as NewGroupRequest, B as CMSFTrack, Bn as deserializeKvpListUntilEmpty, Bt as GroupOrderParam, C as CastingError, Cn as SUPPORTED_VERSIONS, Ct as MessageParameters, D as InvalidUTF8Error, Dn as DEFAULT_PUBLISHER_PRIORITY, Dt as SubscriptionFilter, E as InvalidTypeError, En as Datagram, Et as serializeMessageParameterKvps, F as TimeoutError, Fn as Tuple, Ft as resolveTransportUrl, G as SubscribeTracks, Gt as ObjectDeliveryTimeout, H as RequestError, Hn as isVarInt, Ht as Expires, I as TrackNameError, In as TupleField, It as GREASE_BASE, J as RequestUpdate, Jt as AuthorizationToken, K as SubscribeNamespace, Kt as FillTimeout, L as VarIntOverflowError, Ln as Location, Lt as GREASE_STEP, M as ProtocolViolationError, Mn as SubgroupHeaderType, Mt as Redirect, N as RequestIdError, Nn as MAX_REASON_PHRASE_LEN, Nt as MoqtFragment, O as KeyValueFormattingError, On as FetchHeaderType, Ot as SubscriberPriority, P as TerminationError, Pn as ReasonPhrase, Pt as MoqtUrl, Q as Subscribe, Qt as TokenAliasType, R as CMSF, Rn as KeyValuePair, Rt as greaseValue, S as TerminationCode, Sn as RequestErrorCode, St as MessageParameter, T as InvalidEnumValue, Tn as FetchHeader, Tt as deserializeMessageParameterKvps, U as RequestOk, Un as serializeKvpList, Ut as SubgroupDeliveryTimeout, V as ControlMessage, Vn as isBytes, Vt as Forward, W as Switch, Wt as RendezvousTimeout, X as Publish, Xt as MessageParameterType, Y as SubscribeOk, Yt as Parameter, Z as PublishDone, Zt as SetupOptionType, _ as AudioLevel, _n as ControlMessageType, _t as Fetch, a as MoqtImplementation, an as FrozenByteBuffer, at as ImmutablePropertiesTrackProperty, b as Timestamp, bn as GroupOrder, bt as Namespace, c as Path, cn as SubgroupHeader, ct as SubgroupDeliveryTimeoutProperty, d as PriorGroupIdGapProperty, dn as FullTrackName, dt as LOCPropertyId, en as setupOptionTypeFromNumber, et as MAX_NEW_SESSION_URI_LENGTH, f as PriorObjectIdGapProperty, fn as MAX_FULL_TRACK_NAME_LENGTH, ft as PropertyRange, g as VideoConfig, gn as FetchObjectContext, gt as locPropertyIdFromNumber, h as LOCProperty, hn as FetchObject, ht as isApplicationSpecificProperty, i as SstsAlgorithms, in as ByteBuffer, it as DynamicGroupsProperty, j as NotEnoughBytesError, jn as ObjectStatus, jt as LargestObject, k as LengthExceedsMaxError, kn as ObjectDatagramType, kt as SwitchingSetAssignment, l as ImmutablePropertiesObjectProperty, ln as MoqtObject, lt as TrackProperty, m as LOCProperties, mn as EndOfRangeKind, mt as TrackPropertyType, n as SetupOptions, nn as PublishBlocked, nt as DefaultPublisherGroupOrderProperty, o as Authority, on as Header, ot as MaxCacheDurationProperty, p as UnknownObjectProperty, pn as MAX_NAMESPACE_TUPLE_COUNT, pt as PropertyRanges, q as TrackStatus, qt as AuthTokenVariant, r as assertNoAuthorityOverWebTransport, rn as BaseByteBuffer, rt as DefaultPublisherPriorityProperty, s as MaxAuthTokenCacheSize, sn as RequestIdMap, st as ObjectDeliveryTimeoutProperty, t as SetupOption, tn as tokenAliasTypeFromNumber, tt as FetchOk, u as ObjectProperty, un as SubgroupObject, ut as UnknownTrackProperty, v as VideoFrameMarking, vn as FetchType, vt as Setup, w as InternalError, wn as TrackStatusCode, wt as applyMessageParameterUpdate, x as StreamResetCode, xn as PublishDoneStatusCode, xt as PublishNamespace, y as Timescale, yn as FilterType, yt as NamespaceDone, z as CMSFCatalog, zn as deserializeKvpList, zt as isGrease } from "./index-C8pNnaj0.mjs";
|
|
2
|
+
import { a as setLogLevel, i as setLogEnabledModules, n as Logger, r as logger, t as LogLevel } from "./logger-dEoueCj7.mjs";
|
|
3
|
+
import { ControlRecvStream, ControlSendStream, ControlStream, EarlyDiscardPolicyConfig, FetchOptions, FetchPublication, FetchRequest, HybridTrackSource, LiveObjectSource, LiveTrackSource, MOQtailClient, MOQtailClientOptions, MOQtailRequest, MemoryObjectCache, ObjectCache, PastObjectSource, PublishNamespaceRequest, PublishPublication, PublishRequest, RecvDatagramStream, RecvStream, RequestStream, RingBufferObjectCache, SendDatagramStream, SendStream, StaticTrackSource, SubscribeNamespaceRequest, SubscribeOptions, SubscribePublication, SubscribeRequest, SubscribeUpdateOptions, SwitchOptions, Track, TrackSource, TrackStatusRequest } from "./client.mjs";
|
|
4
|
+
import { ClockNormalizer, NetworkTelemetry } from "./util.mjs";
|
|
5
|
+
export { AudioLevel, AuthTokenVariant, Authority, AuthorizationToken, BaseByteBuffer, ByteBuffer, CMSF, CMSFCatalog, CMSFTrack, CastingError, ClockNormalizer, ControlMessage, ControlMessageType, ControlRecvStream, ControlSendStream, ControlStream, DEFAULT_PUBLISHER_PRIORITY, Datagram, DefaultPublisherGroupOrderProperty, DefaultPublisherPriorityProperty, DynamicGroupsProperty, EarlyDiscardPolicyConfig, EndOfRangeKind, Expires, Fetch, FetchHeader, FetchHeaderType, FetchObject, FetchObjectContext, FetchOk, FetchOptions, FetchPublication, FetchRequest, FetchType, FillTimeout, FilterType, Forward, FrozenByteBuffer, FullTrackName, GREASE_BASE, GREASE_STEP, GoAway, GroupOrder, GroupOrderParam, Header, HybridTrackSource, ImmutablePropertiesObjectProperty, ImmutablePropertiesTrackProperty, InternalError, InvalidEnumValue, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCProperties, LOCProperty, LOCPropertyId, LargestObject, LengthExceedsMaxError, LiveObjectSource, LiveTrackSource, Location, LogLevel, Logger, MAX_FULL_TRACK_NAME_LENGTH, MAX_NAMESPACE_TUPLE_COUNT, MAX_NEW_SESSION_URI_LENGTH, MAX_REASON_PHRASE_LEN, MOQtailClient, MOQtailClientOptions, MOQtailError, MOQtailRequest, MaxAuthTokenCacheSize, MaxCacheDurationProperty, MemoryObjectCache, MessageParameter, MessageParameterType, MessageParameters, MoqtFragment, MoqtImplementation, MoqtObject, MoqtUrl, Namespace, NamespaceDone, NetworkTelemetry, NewGroupRequest, NotEnoughBytesError, ObjectCache, ObjectDatagramType, ObjectDeliveryTimeout, ObjectDeliveryTimeoutProperty, ObjectForwardingPreference, ObjectProperty, ObjectStatus, Parameter, PastObjectSource, Path, PriorGroupIdGapProperty, PriorObjectIdGapProperty, PropertyRange, PropertyRanges, ProtocolViolationError, Publish, PublishBlocked, PublishDone, PublishDoneStatusCode, PublishNamespace, PublishNamespaceRequest, PublishPublication, PublishRequest, ReasonPhrase, RecvDatagramStream, RecvStream, Redirect, RendezvousTimeout, RequestError, RequestErrorCode, RequestIdError, RequestIdMap, RequestOk, RequestStream, RequestUpdate, RingBufferObjectCache, SUPPORTED_VERSIONS, SendDatagramStream, SendStream, Setup, SetupOption, SetupOptionType, SetupOptions, SstsAlgorithms, StaticTrackSource, StreamResetCode, SubgroupDeliveryTimeout, SubgroupDeliveryTimeoutProperty, SubgroupHeader, SubgroupHeaderType, SubgroupObject, Subscribe, SubscribeNamespace, SubscribeNamespaceRequest, SubscribeOk, SubscribeOptions, SubscribePublication, SubscribeRequest, SubscribeTracks, SubscribeUpdateOptions, SubscriberPriority, SubscriptionFilter, Switch, SwitchOptions, SwitchingSetAssignment, TerminationCode, TerminationError, TimeoutError, Timescale, Timestamp, TokenAliasType, Track, TrackNameError, TrackProperty, TrackPropertyType, TrackSource, TrackStatus, TrackStatusCode, TrackStatusRequest, Tuple, TupleField, UnknownObjectProperty, UnknownTrackProperty, VarIntOverflowError, VideoConfig, VideoFrameMarking, applyMessageParameterUpdate, assertNoAuthorityOverWebTransport, deserializeKvpList, deserializeKvpListUntilEmpty, deserializeMessageParameterKvps, greaseValue, isApplicationSpecificProperty, isBytes, isGrease, isVarInt, locPropertyIdFromNumber, logger, messageParameterTypeFromNumber, resolveTransportUrl, serializeKvpList, serializeMessageParameterKvps, setLogEnabledModules, setLogLevel, setupOptionTypeFromNumber, tokenAliasTypeFromNumber };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AudioLevel, Authority, AuthorizationToken, BaseByteBuffer, ByteBuffer, CMSFCatalog, CastingError, ControlMessage, ControlMessageType, DEFAULT_PUBLISHER_PRIORITY, Datagram, DefaultPublisherGroupOrderProperty, DefaultPublisherPriorityProperty, DynamicGroupsProperty, EndOfRangeKind, Expires, Fetch, FetchHeader, FetchHeaderType, FetchObject, FetchOk, FetchType, FillTimeout, FilterType, Forward, FrozenByteBuffer, FullTrackName, GREASE_BASE, GREASE_STEP, GoAway, GroupOrder, GroupOrderParam, Header, ImmutablePropertiesObjectProperty, ImmutablePropertiesTrackProperty, InternalError, InvalidEnumValue, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCProperties, LOCProperty, LOCPropertyId, LargestObject, LengthExceedsMaxError, Location, MAX_FULL_TRACK_NAME_LENGTH, MAX_NAMESPACE_TUPLE_COUNT, MAX_NEW_SESSION_URI_LENGTH, MAX_REASON_PHRASE_LEN, MOQtailError, MaxAuthTokenCacheSize, MaxCacheDurationProperty, MessageParameter, MessageParameterType, MessageParameters, MoqtImplementation, MoqtObject, MoqtUrl, Namespace, NamespaceDone, NewGroupRequest, NotEnoughBytesError, ObjectDatagramType, ObjectDeliveryTimeout, ObjectDeliveryTimeoutProperty, ObjectForwardingPreference, ObjectProperty, ObjectStatus, Path, PriorGroupIdGapProperty, PriorObjectIdGapProperty, PropertyRanges, ProtocolViolationError, Publish, PublishBlocked, PublishDone, PublishDoneStatusCode, PublishNamespace, ReasonPhrase, Redirect, RendezvousTimeout, RequestError, RequestErrorCode, RequestIdError, RequestIdMap, RequestOk, RequestUpdate, SUPPORTED_VERSIONS, Setup, SetupOption, SetupOptionType, SetupOptions, SstsAlgorithms, StreamResetCode, SubgroupDeliveryTimeout, SubgroupDeliveryTimeoutProperty, SubgroupHeader, SubgroupHeaderType, SubgroupObject, Subscribe, SubscribeNamespace, SubscribeOk, SubscribeTracks, SubscriberPriority, SubscriptionFilter, Switch, SwitchingSetAssignment, TerminationCode, TerminationError, TimeoutError, Timescale, Timestamp, TokenAliasType, TrackNameError, TrackProperty, TrackPropertyType, TrackStatus, TrackStatusCode, Tuple, TupleField, UnknownObjectProperty, UnknownTrackProperty, VarIntOverflowError, VideoConfig, VideoFrameMarking, applyMessageParameterUpdate, assertNoAuthorityOverWebTransport, deserializeKvpList, deserializeKvpListUntilEmpty, deserializeMessageParameterKvps, greaseValue, isApplicationSpecificProperty, isBytes, isGrease, isVarInt, locPropertyIdFromNumber, messageParameterTypeFromNumber, resolveTransportUrl, serializeKvpList, serializeMessageParameterKvps, setupOptionTypeFromNumber, tokenAliasTypeFromNumber } from "./model.mjs";
|
|
2
|
+
import { a as setLogLevel, i as setLogEnabledModules, n as Logger, r as logger, t as LogLevel } from "./logger-ByDB8lYF.mjs";
|
|
3
|
+
import { C as ControlStream, S as ControlSendStream, _ as StaticTrackSource, a as SendDatagramStream, b as RequestStream, c as FetchPublication, d as PublishRequest, f as SubscribeRequest, g as LiveTrackSource, h as HybridTrackSource, i as RecvDatagramStream, l as SubscribePublication, m as PublishNamespaceRequest, n as RingBufferObjectCache, o as PublishPublication, p as FetchRequest, r as MOQtailClient, s as SubscribeNamespaceRequest, t as MemoryObjectCache, u as TrackStatusRequest, v as RecvStream, x as ControlRecvStream, y as SendStream } from "./client-BzncAN14.mjs";
|
|
4
|
+
import { ClockNormalizer, NetworkTelemetry } from "./util.mjs";
|
|
5
|
+
export { AudioLevel, Authority, AuthorizationToken, BaseByteBuffer, ByteBuffer, CMSFCatalog, CastingError, ClockNormalizer, ControlMessage, ControlMessageType, ControlRecvStream, ControlSendStream, ControlStream, DEFAULT_PUBLISHER_PRIORITY, Datagram, DefaultPublisherGroupOrderProperty, DefaultPublisherPriorityProperty, DynamicGroupsProperty, EndOfRangeKind, Expires, Fetch, FetchHeader, FetchHeaderType, FetchObject, FetchOk, FetchPublication, FetchRequest, FetchType, FillTimeout, FilterType, Forward, FrozenByteBuffer, FullTrackName, GREASE_BASE, GREASE_STEP, GoAway, GroupOrder, GroupOrderParam, Header, HybridTrackSource, ImmutablePropertiesObjectProperty, ImmutablePropertiesTrackProperty, InternalError, InvalidEnumValue, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCProperties, LOCProperty, LOCPropertyId, LargestObject, LengthExceedsMaxError, LiveTrackSource, Location, LogLevel, Logger, MAX_FULL_TRACK_NAME_LENGTH, MAX_NAMESPACE_TUPLE_COUNT, MAX_NEW_SESSION_URI_LENGTH, MAX_REASON_PHRASE_LEN, MOQtailClient, MOQtailError, MaxAuthTokenCacheSize, MaxCacheDurationProperty, MemoryObjectCache, MessageParameter, MessageParameterType, MessageParameters, MoqtImplementation, MoqtObject, MoqtUrl, Namespace, NamespaceDone, NetworkTelemetry, NewGroupRequest, NotEnoughBytesError, ObjectDatagramType, ObjectDeliveryTimeout, ObjectDeliveryTimeoutProperty, ObjectForwardingPreference, ObjectProperty, ObjectStatus, Path, PriorGroupIdGapProperty, PriorObjectIdGapProperty, PropertyRanges, ProtocolViolationError, Publish, PublishBlocked, PublishDone, PublishDoneStatusCode, PublishNamespace, PublishNamespaceRequest, PublishPublication, PublishRequest, ReasonPhrase, RecvDatagramStream, RecvStream, Redirect, RendezvousTimeout, RequestError, RequestErrorCode, RequestIdError, RequestIdMap, RequestOk, RequestStream, RequestUpdate, RingBufferObjectCache, SUPPORTED_VERSIONS, SendDatagramStream, SendStream, Setup, SetupOption, SetupOptionType, SetupOptions, SstsAlgorithms, StaticTrackSource, StreamResetCode, SubgroupDeliveryTimeout, SubgroupDeliveryTimeoutProperty, SubgroupHeader, SubgroupHeaderType, SubgroupObject, Subscribe, SubscribeNamespace, SubscribeNamespaceRequest, SubscribeOk, SubscribePublication, SubscribeRequest, SubscribeTracks, SubscriberPriority, SubscriptionFilter, Switch, SwitchingSetAssignment, TerminationCode, TerminationError, TimeoutError, Timescale, Timestamp, TokenAliasType, TrackNameError, TrackProperty, TrackPropertyType, TrackStatus, TrackStatusCode, TrackStatusRequest, Tuple, TupleField, UnknownObjectProperty, UnknownTrackProperty, VarIntOverflowError, VideoConfig, VideoFrameMarking, applyMessageParameterUpdate, assertNoAuthorityOverWebTransport, deserializeKvpList, deserializeKvpListUntilEmpty, deserializeMessageParameterKvps, greaseValue, isApplicationSpecificProperty, isBytes, isGrease, isVarInt, locPropertyIdFromNumber, logger, messageParameterTypeFromNumber, resolveTransportUrl, serializeKvpList, serializeMessageParameterKvps, setLogEnabledModules, setLogLevel, setupOptionTypeFromNumber, tokenAliasTypeFromNumber };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
//#region src/util/logger.ts
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2026 The MOQtail Authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
let LogLevel = /* @__PURE__ */ function(LogLevel) {
|
|
18
|
+
LogLevel[LogLevel["DEBUG"] = 0] = "DEBUG";
|
|
19
|
+
LogLevel[LogLevel["LOG"] = 1] = "LOG";
|
|
20
|
+
LogLevel[LogLevel["WARN"] = 2] = "WARN";
|
|
21
|
+
LogLevel[LogLevel["ERROR"] = 3] = "ERROR";
|
|
22
|
+
LogLevel[LogLevel["NONE"] = 4] = "NONE";
|
|
23
|
+
return LogLevel;
|
|
24
|
+
}({});
|
|
25
|
+
const _config = {
|
|
26
|
+
level: 2,
|
|
27
|
+
enabledModules: null
|
|
28
|
+
};
|
|
29
|
+
function setLogLevel(level) {
|
|
30
|
+
_config.level = level;
|
|
31
|
+
}
|
|
32
|
+
function setLogEnabledModules(modules) {
|
|
33
|
+
_config.enabledModules = modules;
|
|
34
|
+
}
|
|
35
|
+
var Logger = class {
|
|
36
|
+
isEnabled(module, level) {
|
|
37
|
+
if (level < _config.level) return false;
|
|
38
|
+
if (_config.enabledModules !== null && !_config.enabledModules.includes(module)) return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
debug(module, ...args) {
|
|
42
|
+
if (this.isEnabled(module, 0)) console.debug(`[MOQtail][${module}]`, ...args);
|
|
43
|
+
}
|
|
44
|
+
log(module, ...args) {
|
|
45
|
+
if (this.isEnabled(module, 1)) console.log(`[MOQtail][${module}]`, ...args);
|
|
46
|
+
}
|
|
47
|
+
warn(module, ...args) {
|
|
48
|
+
if (this.isEnabled(module, 2)) console.warn(`[MOQtail][${module}]`, ...args);
|
|
49
|
+
}
|
|
50
|
+
error(module, ...args) {
|
|
51
|
+
if (this.isEnabled(module, 3)) console.error(`[MOQtail][${module}]`, ...args);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const logger = new Logger();
|
|
55
|
+
//#endregion
|
|
56
|
+
export { setLogLevel as a, setLogEnabledModules as i, Logger as n, logger as r, LogLevel as t };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
//#region src/util/logger.ts
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2026 The MOQtail Authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
let LogLevel = /* @__PURE__ */ function(LogLevel) {
|
|
18
|
+
LogLevel[LogLevel["DEBUG"] = 0] = "DEBUG";
|
|
19
|
+
LogLevel[LogLevel["LOG"] = 1] = "LOG";
|
|
20
|
+
LogLevel[LogLevel["WARN"] = 2] = "WARN";
|
|
21
|
+
LogLevel[LogLevel["ERROR"] = 3] = "ERROR";
|
|
22
|
+
LogLevel[LogLevel["NONE"] = 4] = "NONE";
|
|
23
|
+
return LogLevel;
|
|
24
|
+
}({});
|
|
25
|
+
const _config = {
|
|
26
|
+
level: 2,
|
|
27
|
+
enabledModules: null
|
|
28
|
+
};
|
|
29
|
+
function setLogLevel(level) {
|
|
30
|
+
_config.level = level;
|
|
31
|
+
}
|
|
32
|
+
function setLogEnabledModules(modules) {
|
|
33
|
+
_config.enabledModules = modules;
|
|
34
|
+
}
|
|
35
|
+
var Logger = class {
|
|
36
|
+
isEnabled(module, level) {
|
|
37
|
+
if (level < _config.level) return false;
|
|
38
|
+
if (_config.enabledModules !== null && !_config.enabledModules.includes(module)) return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
debug(module, ...args) {
|
|
42
|
+
if (this.isEnabled(module, 0)) console.debug(`[MOQtail][${module}]`, ...args);
|
|
43
|
+
}
|
|
44
|
+
log(module, ...args) {
|
|
45
|
+
if (this.isEnabled(module, 1)) console.log(`[MOQtail][${module}]`, ...args);
|
|
46
|
+
}
|
|
47
|
+
warn(module, ...args) {
|
|
48
|
+
if (this.isEnabled(module, 2)) console.warn(`[MOQtail][${module}]`, ...args);
|
|
49
|
+
}
|
|
50
|
+
error(module, ...args) {
|
|
51
|
+
if (this.isEnabled(module, 3)) console.error(`[MOQtail][${module}]`, ...args);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const logger = new Logger();
|
|
55
|
+
//#endregion
|
|
56
|
+
Object.defineProperty(exports, "LogLevel", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function() {
|
|
59
|
+
return LogLevel;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "Logger", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function() {
|
|
65
|
+
return Logger;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "logger", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function() {
|
|
71
|
+
return logger;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "setLogEnabledModules", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function() {
|
|
77
|
+
return setLogEnabledModules;
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "setLogLevel", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function() {
|
|
83
|
+
return setLogLevel;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/util/logger.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Copyright 2026 The MOQtail Authors
|
|
3
4
|
*
|
|
@@ -14,21 +15,21 @@
|
|
|
14
15
|
* limitations under the License.
|
|
15
16
|
*/
|
|
16
17
|
declare enum LogLevel {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
DEBUG = 0,
|
|
19
|
+
LOG = 1,
|
|
20
|
+
WARN = 2,
|
|
21
|
+
ERROR = 3,
|
|
22
|
+
NONE = 4
|
|
22
23
|
}
|
|
23
24
|
declare function setLogLevel(level: LogLevel): void;
|
|
24
25
|
declare function setLogEnabledModules(modules: string[] | null): void;
|
|
25
26
|
declare class Logger {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
private isEnabled;
|
|
28
|
+
debug(module: string, ...args: unknown[]): void;
|
|
29
|
+
log(module: string, ...args: unknown[]): void;
|
|
30
|
+
warn(module: string, ...args: unknown[]): void;
|
|
31
|
+
error(module: string, ...args: unknown[]): void;
|
|
31
32
|
}
|
|
32
33
|
declare const logger: Logger;
|
|
33
|
-
|
|
34
|
-
export {
|
|
34
|
+
//#endregion
|
|
35
|
+
export { setLogLevel as a, setLogEnabledModules as i, Logger as n, logger as r, LogLevel as t };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/util/logger.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Copyright 2026 The MOQtail Authors
|
|
3
4
|
*
|
|
@@ -14,21 +15,21 @@
|
|
|
14
15
|
* limitations under the License.
|
|
15
16
|
*/
|
|
16
17
|
declare enum LogLevel {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
DEBUG = 0,
|
|
19
|
+
LOG = 1,
|
|
20
|
+
WARN = 2,
|
|
21
|
+
ERROR = 3,
|
|
22
|
+
NONE = 4
|
|
22
23
|
}
|
|
23
24
|
declare function setLogLevel(level: LogLevel): void;
|
|
24
25
|
declare function setLogEnabledModules(modules: string[] | null): void;
|
|
25
26
|
declare class Logger {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
private isEnabled;
|
|
28
|
+
debug(module: string, ...args: unknown[]): void;
|
|
29
|
+
log(module: string, ...args: unknown[]): void;
|
|
30
|
+
warn(module: string, ...args: unknown[]): void;
|
|
31
|
+
error(module: string, ...args: unknown[]): void;
|
|
31
32
|
}
|
|
32
33
|
declare const logger: Logger;
|
|
33
|
-
|
|
34
|
-
export {
|
|
34
|
+
//#endregion
|
|
35
|
+
export { setLogLevel as a, setLogEnabledModules as i, Logger as n, logger as r, LogLevel as t };
|