moqtail 0.12.1 → 0.14.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 +50 -7
- package/dist/client-BW1agDFV.mjs +4941 -0
- package/dist/client-Z7egUKTO.cjs +5108 -0
- package/dist/client.cjs +30 -8242
- package/dist/client.d.cts +1642 -1527
- package/dist/client.d.mts +1958 -0
- package/dist/client.mjs +2 -0
- package/dist/index-DBbxKcc1.d.cts +3051 -0
- package/dist/index-DBbxKcc1.d.mts +3051 -0
- package/dist/index.cjs +298 -8963
- 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 +6822 -4870
- package/dist/model.d.cts +2 -442
- package/dist/model.d.mts +2 -0
- package/dist/model.mjs +6756 -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 -8221
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -8813
- package/dist/model.d.ts +0 -442
- package/dist/model.js +0 -4939
- 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 PropertyRange, $n as isVarInt, $t as Expires, A as RequestError, An as LocationFilterType, At as RequestIdError, B as GoAway, Bn as ObjectDatagramType, Bt as NewGroupRequest, C as Timestamp, Cn as MAX_FULL_TRACK_NAME_LENGTH, Ct as InvalidTypeError, D as CMSFTrack, Dn as FetchObjectContext, Dt as MOQtailError, E as CMSFCatalog, En as FetchObject, Et as LengthExceedsMaxError, F as RequestUpdate, Fn as TrackStatusCode, Ft as FillParameters, G as DynamicGroupsProperty, Gn as ReasonPhrase, Gt as resolveTransportUrl, H as FetchOk, Hn as ObjectStatus, Ht as Redirect, I as SubscribeOk, In as FetchHeader, It as SwitchFrom, J as ObjectDeliveryTimeoutProperty, Jn as Location, Jt as greaseValue, K as ImmutablePropertiesTrackProperty, Kn as Tuple, Kt as GREASE_BASE, L as Publish, Ln as Datagram, Lt as LocationFilter, M as SubscribeTracks, Mn as RequestErrorCode, Mt as TimeoutError, N as SubscribeNamespace, Nn as SUPPORTED_VERSIONS, Nt as TrackNameError, O as StreamResetCode, On as ControlMessageType, Ot as NotEnoughBytesError, P as TrackStatus, Pn as SwitchMode, Pt as VarIntOverflowError, Q as LOCPropertyId, Qn as isBytes, Qt as Forward, R as PublishDone, Rn as DEFAULT_PUBLISHER_PRIORITY, Rt as SubscriberPriority, S as Timescale, Sn as FullTrackName, St as InvalidEnumValue, T as CMSF, Tn as EndOfRangeKind, Tt as KeyValueFormattingError, U as DefaultPublisherGroupOrderProperty, Un as SubgroupHeaderType, Ut as MoqtFragment, V as MAX_NEW_SESSION_URI_LENGTH, Vn as ObjectForwardingPreference, Vt as LargestObject, W as DefaultPublisherPriorityProperty, Wn as MAX_REASON_PHRASE_LEN, Wt as MoqtUrl, X as TrackProperty, Xn as deserializeKvpList, Xt as GroupOrderParam, Y as SubgroupDeliveryTimeoutProperty, Yn as KeyValuePair, Yt as isGrease, Z as UnknownTrackProperty, Zn as deserializeKvpListUntilEmpty, Zt as IncludeProperties, _ as LOCProperties, _n as Header, _t as RangeFilter, a as SstsAlgorithms, an as AuthorizationToken, at as Setup, b as AudioLevel, bn as MoqtObject, bt as CastingError, c as MaxFilterRanges, cn as SetupOptionType, ct as PublishNamespace, d as Path, dn as setupOptionTypeFromNumber, dt as applyMessageParameterUpdate, en as SubgroupDeliveryTimeout, er as serializeKvpList, et as PropertyRanges, f as ImmutablePropertiesObjectProperty, fn as tokenAliasTypeFromNumber, ft as deserializeMessageParameterKvps, g as UnknownObjectProperty, gn as FrozenByteBuffer, gt as RangeDelta, h as PriorObjectIdGapProperty, hn as ByteBuffer, ht as Range, i as assertNoAuthorityOverWebTransport, in as AuthTokenVariant, it as Fetch, j as RequestOk, jn as PublishDoneStatusCode, jt as TerminationError, k as ControlMessage, kn as GroupOrder, kt as ProtocolViolationError, l as Authority, ln as TokenAliasType, lt as MessageParameter, m as PriorGroupIdGapProperty, mn as BaseByteBuffer, mt as InvalidFilterError, n as SetupOption, nn as ObjectDeliveryTimeout, nt as isApplicationSpecificProperty, o as MaxRequestUpdates, on as Parameter, ot as NamespaceDone, p as ObjectProperty, pn as PublishSkipped, pt as serializeMessageParameterKvps, q as MaxCacheDurationProperty, qn as TupleField, qt as GREASE_STEP, r as SetupOptions, rn as FillTimeout, rt as locPropertyIdFromNumber, s as MoqtImplementation, sn as MessageParameterType, st as Namespace, t as CombinedFilter, tn as RendezvousTimeout, tt as TrackPropertyType, u as MaxAuthTokenCacheSize, un as messageParameterTypeFromNumber, ut as MessageParameters, v as LOCProperty, vn as RequestIdMap, vt as RangeFilterKind, w as TerminationCode, wn as MAX_NAMESPACE_TUPLE_COUNT, wt as InvalidUTF8Error, x as VideoFrameMarking, xn as SubgroupObject, xt as InternalError, y as VideoConfig, yn as SubgroupHeader, yt as encodeRanges, z as Subscribe, zn as FetchHeaderType, zt as SwitchingSetAssignment } from "./index-DBbxKcc1.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, DEFAULT_MAX_FILTER_RANGES, DEFAULT_SWITCH_DRAIN_TIMEOUT_MS, DEFAULT_TRACK_ALIAS_RESOLUTION_TIMEOUT_MS, DataDirection, DataEvent, DataEventBase, DataEventObserver, DataHeaderEvent, DataObjectEvent, DataStreamEndEvent, DataStreamObserver, DataStreamReporter, EarlyDiscardPolicyConfig, FetchOptions, FetchPublication, FetchRequest, HybridTrackSource, LiveObjectSource, LiveTrackSource, MOQtailClient, MOQtailClientOptions, MOQtailRequest, MemoryObjectCache, ObjectCache, PastObjectSource, PublishNamespaceRequest, PublishPublication, PublishRequest, RecvDatagramStream, RecvStream, RequestStream, RequestStreamHooks, RingBufferObjectCache, SendDatagramStream, SendStream, StaticTrackSource, SubscribeNamespaceRequest, SubscribeOptions, SubscribePublication, SubscribeRequest, SubscribeUpdateOptions, Subscription, SwitchOptions, Track, TrackAliasHolder, 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, CombinedFilter, ControlMessage, ControlMessageType, ControlRecvStream, ControlSendStream, ControlStream, DEFAULT_MAX_FILTER_RANGES, DEFAULT_PUBLISHER_PRIORITY, DEFAULT_SWITCH_DRAIN_TIMEOUT_MS, DEFAULT_TRACK_ALIAS_RESOLUTION_TIMEOUT_MS, DataDirection, DataEvent, DataEventBase, DataEventObserver, DataHeaderEvent, DataObjectEvent, DataStreamEndEvent, DataStreamObserver, DataStreamReporter, Datagram, DefaultPublisherGroupOrderProperty, DefaultPublisherPriorityProperty, DynamicGroupsProperty, EarlyDiscardPolicyConfig, EndOfRangeKind, Expires, Fetch, FetchHeader, FetchHeaderType, FetchObject, FetchObjectContext, FetchOk, FetchOptions, FetchPublication, FetchRequest, FillParameters, FillTimeout, Forward, FrozenByteBuffer, FullTrackName, GREASE_BASE, GREASE_STEP, GoAway, GroupOrder, GroupOrderParam, Header, HybridTrackSource, ImmutablePropertiesObjectProperty, ImmutablePropertiesTrackProperty, IncludeProperties, InternalError, InvalidEnumValue, InvalidFilterError, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCProperties, LOCProperty, LOCPropertyId, LargestObject, LengthExceedsMaxError, LiveObjectSource, LiveTrackSource, Location, LocationFilter, LocationFilterType, 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, MaxFilterRanges, MaxRequestUpdates, 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, PublishDone, PublishDoneStatusCode, PublishNamespace, PublishNamespaceRequest, PublishPublication, PublishRequest, PublishSkipped, Range, RangeDelta, RangeFilter, RangeFilterKind, ReasonPhrase, RecvDatagramStream, RecvStream, Redirect, RendezvousTimeout, RequestError, RequestErrorCode, RequestIdError, RequestIdMap, RequestOk, RequestStream, RequestStreamHooks, 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, Subscription, SwitchFrom, SwitchMode, SwitchOptions, SwitchingSetAssignment, TerminationCode, TerminationError, TimeoutError, Timescale, Timestamp, TokenAliasType, Track, TrackAliasHolder, TrackNameError, TrackProperty, TrackPropertyType, TrackSource, TrackStatus, TrackStatusCode, TrackStatusRequest, Tuple, TupleField, UnknownObjectProperty, UnknownTrackProperty, VarIntOverflowError, VideoConfig, VideoFrameMarking, applyMessageParameterUpdate, assertNoAuthorityOverWebTransport, deserializeKvpList, deserializeKvpListUntilEmpty, deserializeMessageParameterKvps, encodeRanges, 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 PropertyRange, $n as isVarInt, $t as Expires, A as RequestError, An as LocationFilterType, At as RequestIdError, B as GoAway, Bn as ObjectDatagramType, Bt as NewGroupRequest, C as Timestamp, Cn as MAX_FULL_TRACK_NAME_LENGTH, Ct as InvalidTypeError, D as CMSFTrack, Dn as FetchObjectContext, Dt as MOQtailError, E as CMSFCatalog, En as FetchObject, Et as LengthExceedsMaxError, F as RequestUpdate, Fn as TrackStatusCode, Ft as FillParameters, G as DynamicGroupsProperty, Gn as ReasonPhrase, Gt as resolveTransportUrl, H as FetchOk, Hn as ObjectStatus, Ht as Redirect, I as SubscribeOk, In as FetchHeader, It as SwitchFrom, J as ObjectDeliveryTimeoutProperty, Jn as Location, Jt as greaseValue, K as ImmutablePropertiesTrackProperty, Kn as Tuple, Kt as GREASE_BASE, L as Publish, Ln as Datagram, Lt as LocationFilter, M as SubscribeTracks, Mn as RequestErrorCode, Mt as TimeoutError, N as SubscribeNamespace, Nn as SUPPORTED_VERSIONS, Nt as TrackNameError, O as StreamResetCode, On as ControlMessageType, Ot as NotEnoughBytesError, P as TrackStatus, Pn as SwitchMode, Pt as VarIntOverflowError, Q as LOCPropertyId, Qn as isBytes, Qt as Forward, R as PublishDone, Rn as DEFAULT_PUBLISHER_PRIORITY, Rt as SubscriberPriority, S as Timescale, Sn as FullTrackName, St as InvalidEnumValue, T as CMSF, Tn as EndOfRangeKind, Tt as KeyValueFormattingError, U as DefaultPublisherGroupOrderProperty, Un as SubgroupHeaderType, Ut as MoqtFragment, V as MAX_NEW_SESSION_URI_LENGTH, Vn as ObjectForwardingPreference, Vt as LargestObject, W as DefaultPublisherPriorityProperty, Wn as MAX_REASON_PHRASE_LEN, Wt as MoqtUrl, X as TrackProperty, Xn as deserializeKvpList, Xt as GroupOrderParam, Y as SubgroupDeliveryTimeoutProperty, Yn as KeyValuePair, Yt as isGrease, Z as UnknownTrackProperty, Zn as deserializeKvpListUntilEmpty, Zt as IncludeProperties, _ as LOCProperties, _n as Header, _t as RangeFilter, a as SstsAlgorithms, an as AuthorizationToken, at as Setup, b as AudioLevel, bn as MoqtObject, bt as CastingError, c as MaxFilterRanges, cn as SetupOptionType, ct as PublishNamespace, d as Path, dn as setupOptionTypeFromNumber, dt as applyMessageParameterUpdate, en as SubgroupDeliveryTimeout, er as serializeKvpList, et as PropertyRanges, f as ImmutablePropertiesObjectProperty, fn as tokenAliasTypeFromNumber, ft as deserializeMessageParameterKvps, g as UnknownObjectProperty, gn as FrozenByteBuffer, gt as RangeDelta, h as PriorObjectIdGapProperty, hn as ByteBuffer, ht as Range, i as assertNoAuthorityOverWebTransport, in as AuthTokenVariant, it as Fetch, j as RequestOk, jn as PublishDoneStatusCode, jt as TerminationError, k as ControlMessage, kn as GroupOrder, kt as ProtocolViolationError, l as Authority, ln as TokenAliasType, lt as MessageParameter, m as PriorGroupIdGapProperty, mn as BaseByteBuffer, mt as InvalidFilterError, n as SetupOption, nn as ObjectDeliveryTimeout, nt as isApplicationSpecificProperty, o as MaxRequestUpdates, on as Parameter, ot as NamespaceDone, p as ObjectProperty, pn as PublishSkipped, pt as serializeMessageParameterKvps, q as MaxCacheDurationProperty, qn as TupleField, qt as GREASE_STEP, r as SetupOptions, rn as FillTimeout, rt as locPropertyIdFromNumber, s as MoqtImplementation, sn as MessageParameterType, st as Namespace, t as CombinedFilter, tn as RendezvousTimeout, tt as TrackPropertyType, u as MaxAuthTokenCacheSize, un as messageParameterTypeFromNumber, ut as MessageParameters, v as LOCProperty, vn as RequestIdMap, vt as RangeFilterKind, w as TerminationCode, wn as MAX_NAMESPACE_TUPLE_COUNT, wt as InvalidUTF8Error, x as VideoFrameMarking, xn as SubgroupObject, xt as InternalError, y as VideoConfig, yn as SubgroupHeader, yt as encodeRanges, z as Subscribe, zn as FetchHeaderType, zt as SwitchingSetAssignment } from "./index-DBbxKcc1.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, DEFAULT_MAX_FILTER_RANGES, DEFAULT_SWITCH_DRAIN_TIMEOUT_MS, DEFAULT_TRACK_ALIAS_RESOLUTION_TIMEOUT_MS, DataDirection, DataEvent, DataEventBase, DataEventObserver, DataHeaderEvent, DataObjectEvent, DataStreamEndEvent, DataStreamObserver, DataStreamReporter, EarlyDiscardPolicyConfig, FetchOptions, FetchPublication, FetchRequest, HybridTrackSource, LiveObjectSource, LiveTrackSource, MOQtailClient, MOQtailClientOptions, MOQtailRequest, MemoryObjectCache, ObjectCache, PastObjectSource, PublishNamespaceRequest, PublishPublication, PublishRequest, RecvDatagramStream, RecvStream, RequestStream, RequestStreamHooks, RingBufferObjectCache, SendDatagramStream, SendStream, StaticTrackSource, SubscribeNamespaceRequest, SubscribeOptions, SubscribePublication, SubscribeRequest, SubscribeUpdateOptions, Subscription, SwitchOptions, Track, TrackAliasHolder, 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, CombinedFilter, ControlMessage, ControlMessageType, ControlRecvStream, ControlSendStream, ControlStream, DEFAULT_MAX_FILTER_RANGES, DEFAULT_PUBLISHER_PRIORITY, DEFAULT_SWITCH_DRAIN_TIMEOUT_MS, DEFAULT_TRACK_ALIAS_RESOLUTION_TIMEOUT_MS, DataDirection, DataEvent, DataEventBase, DataEventObserver, DataHeaderEvent, DataObjectEvent, DataStreamEndEvent, DataStreamObserver, DataStreamReporter, Datagram, DefaultPublisherGroupOrderProperty, DefaultPublisherPriorityProperty, DynamicGroupsProperty, EarlyDiscardPolicyConfig, EndOfRangeKind, Expires, Fetch, FetchHeader, FetchHeaderType, FetchObject, FetchObjectContext, FetchOk, FetchOptions, FetchPublication, FetchRequest, FillParameters, FillTimeout, Forward, FrozenByteBuffer, FullTrackName, GREASE_BASE, GREASE_STEP, GoAway, GroupOrder, GroupOrderParam, Header, HybridTrackSource, ImmutablePropertiesObjectProperty, ImmutablePropertiesTrackProperty, IncludeProperties, InternalError, InvalidEnumValue, InvalidFilterError, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCProperties, LOCProperty, LOCPropertyId, LargestObject, LengthExceedsMaxError, LiveObjectSource, LiveTrackSource, Location, LocationFilter, LocationFilterType, 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, MaxFilterRanges, MaxRequestUpdates, 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, PublishDone, PublishDoneStatusCode, PublishNamespace, PublishNamespaceRequest, PublishPublication, PublishRequest, PublishSkipped, Range, RangeDelta, RangeFilter, RangeFilterKind, ReasonPhrase, RecvDatagramStream, RecvStream, Redirect, RendezvousTimeout, RequestError, RequestErrorCode, RequestIdError, RequestIdMap, RequestOk, RequestStream, RequestStreamHooks, 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, Subscription, SwitchFrom, SwitchMode, SwitchOptions, SwitchingSetAssignment, TerminationCode, TerminationError, TimeoutError, Timescale, Timestamp, TokenAliasType, Track, TrackAliasHolder, TrackNameError, TrackProperty, TrackPropertyType, TrackSource, TrackStatus, TrackStatusCode, TrackStatusRequest, Tuple, TupleField, UnknownObjectProperty, UnknownTrackProperty, VarIntOverflowError, VideoConfig, VideoFrameMarking, applyMessageParameterUpdate, assertNoAuthorityOverWebTransport, deserializeKvpList, deserializeKvpListUntilEmpty, deserializeMessageParameterKvps, encodeRanges, 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, CombinedFilter, ControlMessage, ControlMessageType, DEFAULT_PUBLISHER_PRIORITY, Datagram, DefaultPublisherGroupOrderProperty, DefaultPublisherPriorityProperty, DynamicGroupsProperty, EndOfRangeKind, Expires, Fetch, FetchHeader, FetchHeaderType, FetchObject, FetchOk, FillParameters, FillTimeout, Forward, FrozenByteBuffer, FullTrackName, GREASE_BASE, GREASE_STEP, GoAway, GroupOrder, GroupOrderParam, Header, ImmutablePropertiesObjectProperty, ImmutablePropertiesTrackProperty, IncludeProperties, InternalError, InvalidEnumValue, InvalidFilterError, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCProperties, LOCProperty, LOCPropertyId, LargestObject, LengthExceedsMaxError, Location, LocationFilter, LocationFilterType, MAX_FULL_TRACK_NAME_LENGTH, MAX_NAMESPACE_TUPLE_COUNT, MAX_NEW_SESSION_URI_LENGTH, MAX_REASON_PHRASE_LEN, MOQtailError, MaxAuthTokenCacheSize, MaxCacheDurationProperty, MaxFilterRanges, MaxRequestUpdates, MessageParameter, MessageParameterType, MessageParameters, MoqtImplementation, MoqtObject, MoqtUrl, Namespace, NamespaceDone, NewGroupRequest, NotEnoughBytesError, ObjectDatagramType, ObjectDeliveryTimeout, ObjectDeliveryTimeoutProperty, ObjectForwardingPreference, ObjectProperty, ObjectStatus, Path, PriorGroupIdGapProperty, PriorObjectIdGapProperty, PropertyRanges, ProtocolViolationError, Publish, PublishDone, PublishDoneStatusCode, PublishNamespace, PublishSkipped, RangeFilter, RangeFilterKind, 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, SwitchFrom, SwitchMode, SwitchingSetAssignment, TerminationCode, TerminationError, TimeoutError, Timescale, Timestamp, TokenAliasType, TrackNameError, TrackProperty, TrackPropertyType, TrackStatus, TrackStatusCode, Tuple, TupleField, UnknownObjectProperty, UnknownTrackProperty, VarIntOverflowError, VideoConfig, VideoFrameMarking, applyMessageParameterUpdate, assertNoAuthorityOverWebTransport, deserializeKvpList, deserializeKvpListUntilEmpty, deserializeMessageParameterKvps, encodeRanges, 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 SendStream, D as ControlSendStream, E as ControlRecvStream, O as ControlStream, S as RecvStream, T as RequestStream, _ as FetchRequest, a as SendDatagramStream, b as LiveTrackSource, c as SubscribePublication, d as PublishRequest, f as SubscribeRequest, g as DEFAULT_TRACK_ALIAS_RESOLUTION_TIMEOUT_MS, h as DEFAULT_SWITCH_DRAIN_TIMEOUT_MS, i as RecvDatagramStream, l as FetchPublication, m as DEFAULT_MAX_FILTER_RANGES, n as RingBufferObjectCache, o as PublishPublication, p as Subscription, r as MOQtailClient, s as SubscribeNamespaceRequest, t as MemoryObjectCache, u as TrackStatusRequest, v as PublishNamespaceRequest, w as DataStreamReporter, x as StaticTrackSource, y as HybridTrackSource } from "./client-BW1agDFV.mjs";
|
|
4
|
+
import { ClockNormalizer, NetworkTelemetry } from "./util.mjs";
|
|
5
|
+
export { AudioLevel, Authority, AuthorizationToken, BaseByteBuffer, ByteBuffer, CMSFCatalog, CastingError, ClockNormalizer, CombinedFilter, ControlMessage, ControlMessageType, ControlRecvStream, ControlSendStream, ControlStream, DEFAULT_MAX_FILTER_RANGES, DEFAULT_PUBLISHER_PRIORITY, DEFAULT_SWITCH_DRAIN_TIMEOUT_MS, DEFAULT_TRACK_ALIAS_RESOLUTION_TIMEOUT_MS, DataStreamReporter, Datagram, DefaultPublisherGroupOrderProperty, DefaultPublisherPriorityProperty, DynamicGroupsProperty, EndOfRangeKind, Expires, Fetch, FetchHeader, FetchHeaderType, FetchObject, FetchOk, FetchPublication, FetchRequest, FillParameters, FillTimeout, Forward, FrozenByteBuffer, FullTrackName, GREASE_BASE, GREASE_STEP, GoAway, GroupOrder, GroupOrderParam, Header, HybridTrackSource, ImmutablePropertiesObjectProperty, ImmutablePropertiesTrackProperty, IncludeProperties, InternalError, InvalidEnumValue, InvalidFilterError, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCProperties, LOCProperty, LOCPropertyId, LargestObject, LengthExceedsMaxError, LiveTrackSource, Location, LocationFilter, LocationFilterType, LogLevel, Logger, MAX_FULL_TRACK_NAME_LENGTH, MAX_NAMESPACE_TUPLE_COUNT, MAX_NEW_SESSION_URI_LENGTH, MAX_REASON_PHRASE_LEN, MOQtailClient, MOQtailError, MaxAuthTokenCacheSize, MaxCacheDurationProperty, MaxFilterRanges, MaxRequestUpdates, MemoryObjectCache, MessageParameter, MessageParameterType, MessageParameters, MoqtImplementation, MoqtObject, MoqtUrl, Namespace, NamespaceDone, NetworkTelemetry, NewGroupRequest, NotEnoughBytesError, ObjectDatagramType, ObjectDeliveryTimeout, ObjectDeliveryTimeoutProperty, ObjectForwardingPreference, ObjectProperty, ObjectStatus, Path, PriorGroupIdGapProperty, PriorObjectIdGapProperty, PropertyRanges, ProtocolViolationError, Publish, PublishDone, PublishDoneStatusCode, PublishNamespace, PublishNamespaceRequest, PublishPublication, PublishRequest, PublishSkipped, RangeFilter, RangeFilterKind, 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, Subscription, SwitchFrom, SwitchMode, 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, encodeRanges, 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 };
|