@blockcast/mmt-transport 0.5.0 → 1.0.0-main.215b8665a0eb
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/mmt-transport.no-modules.js +6 -0
- package/dist/mmt-transport.no-modules.js.map +2 -2
- package/dist/multicast-catalog-policy.d.ts +2 -0
- package/dist/multicast-catalog-policy.d.ts.map +1 -1
- package/dist/multicast-catalog-policy.js +8 -1
- package/dist/multicast-catalog-policy.js.map +1 -1
- package/dist/types.d.ts +8 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +2 -2
- package/src/multicast-catalog-policy.ts +16 -1
- package/src/types.ts +6 -1
|
@@ -1157,6 +1157,10 @@
|
|
|
1157
1157
|
const defaultRenditionTrack = renditionTrack ? "" : lowestServedVideoRendition(catalog, usableEndpoints);
|
|
1158
1158
|
return renditionTrack && usableEndpoints.find((endpoint) => endpoint.tracks?.some((track) => matchesPreferredTrack(track.name, renditionTrack))) || defaultRenditionTrack && usableEndpoints.find((endpoint) => endpoint.tracks?.some((track) => matchesPreferredTrack(track.name, defaultRenditionTrack))) || usableEndpoints.find((endpoint) => endpoint.tracks?.some((track) => matchesPreferredTrack(track.name, preferredTrack))) || usableEndpoints[0] || null;
|
|
1159
1159
|
}
|
|
1160
|
+
function asmSenderFilter(endpoint) {
|
|
1161
|
+
const joinSource = multicastEndpointSource(endpoint);
|
|
1162
|
+
return joinSource?.mode === "asm" && joinSource.source ? { senderAddress: joinSource.source } : {};
|
|
1163
|
+
}
|
|
1160
1164
|
function endpointToMulticastConfig(endpoint, catalog, selection) {
|
|
1161
1165
|
if (!endpoint || !isUsableMulticastEndpoint(endpoint, catalog) || advertisesInvalidPacketId(endpoint)) return null;
|
|
1162
1166
|
const config = {
|
|
@@ -1164,6 +1168,7 @@
|
|
|
1164
1168
|
source: endpoint.sourceAddress || "",
|
|
1165
1169
|
port: Number(endpoint.port)
|
|
1166
1170
|
};
|
|
1171
|
+
Object.assign(config, asmSenderFilter(endpoint));
|
|
1167
1172
|
const ownNetworkSource = Array.isArray(endpoint.networkSource) ? endpoint.networkSource : void 0;
|
|
1168
1173
|
const networkSource = ownNetworkSource ?? catalog?.multicast?.networkSource;
|
|
1169
1174
|
const amt = findAmtRelay(networkSource);
|
|
@@ -1268,6 +1273,7 @@
|
|
|
1268
1273
|
companions.push({
|
|
1269
1274
|
group: endpoint.groupAddress,
|
|
1270
1275
|
source: endpoint.sourceAddress || "",
|
|
1276
|
+
...asmSenderFilter(endpoint),
|
|
1271
1277
|
port: Number(endpoint.port),
|
|
1272
1278
|
...transport,
|
|
1273
1279
|
packetIds: normalizePacketIds(repairOwners.map((owner) => owner.packetId)),
|