mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
chore(repo): prune dead code and duplicate abstractions (#3413)
This commit is contained in:
1 parent
c17091768c
commit
c9fdf8fead
2937 files changed
+42233
-176793
No files matched your search
@@ -74,18 +74,6 @@
|
||||
},
|
||||
"commands": []
|
||||
},
|
||||
{
|
||||
"name": "gateway voice server arrives",
|
||||
"event": {
|
||||
"type": "gateway.voiceServerUpdated",
|
||||
"voiceServer": {
|
||||
"guildId": "guild-1",
|
||||
"endpoint": "voice-gateway.example.test",
|
||||
"token": "gateway-token-1"
|
||||
}
|
||||
},
|
||||
"commands": []
|
||||
},
|
||||
{
|
||||
"name": "enumerate devices",
|
||||
"event": {
|
||||
@@ -240,19 +228,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "livekit enters connecting",
|
||||
"event": {
|
||||
"type": "livekit.roomStateChanged",
|
||||
"room": {
|
||||
"connectionState": "connecting",
|
||||
"roomSid": null,
|
||||
"roomName": "guild-1/channel-1",
|
||||
"serverRegion": null
|
||||
}
|
||||
},
|
||||
"commands": []
|
||||
},
|
||||
{
|
||||
"name": "voice connection succeeds and queued media publishes",
|
||||
"event": {
|
||||
@@ -304,19 +279,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "livekit room connects",
|
||||
"event": {
|
||||
"type": "livekit.roomStateChanged",
|
||||
"room": {
|
||||
"connectionState": "connected",
|
||||
"roomSid": "room-1",
|
||||
"roomName": "guild-1/channel-1",
|
||||
"serverRegion": "us-east"
|
||||
}
|
||||
},
|
||||
"commands": []
|
||||
},
|
||||
{
|
||||
"name": "microphone publish succeeds",
|
||||
"event": {
|
||||
@@ -643,19 +605,14 @@
|
||||
"suppress": false,
|
||||
"requestToSpeakTimestamp": null
|
||||
},
|
||||
"voiceServer": {
|
||||
"guildId": "guild-1",
|
||||
"endpoint": "voice-gateway.example.test",
|
||||
"token": "gateway-token-1"
|
||||
},
|
||||
"operationId": null,
|
||||
"failure": null
|
||||
},
|
||||
"liveKit": {
|
||||
"connectionState": "connected",
|
||||
"roomSid": "room-1",
|
||||
"roomName": "guild-1/channel-1",
|
||||
"serverRegion": "us-east",
|
||||
"connectionState": "disconnected",
|
||||
"roomSid": null,
|
||||
"roomName": null,
|
||||
"serverRegion": null,
|
||||
"failure": null
|
||||
},
|
||||
"microphone": {
|
||||
@@ -810,11 +767,6 @@
|
||||
},
|
||||
"statsOperationId": null,
|
||||
"statsFailure": null,
|
||||
"hardwareEncoder": {
|
||||
"capabilities": null,
|
||||
"operationId": null,
|
||||
"failure": null
|
||||
},
|
||||
"permissions": {
|
||||
"results": {
|
||||
"microphone": {
|
||||
@@ -943,18 +895,13 @@
|
||||
"selfStream": true,
|
||||
"suppress": false,
|
||||
"requestToSpeakTimestamp": null
|
||||
},
|
||||
"voiceServer": {
|
||||
"guildId": "guild-1",
|
||||
"endpoint": "voice-gateway.example.test",
|
||||
"token": "gateway-token-1"
|
||||
}
|
||||
},
|
||||
"liveKit": {
|
||||
"connectionState": "connected",
|
||||
"roomSid": "room-1",
|
||||
"roomName": "guild-1/channel-1",
|
||||
"serverRegion": "us-east"
|
||||
"connectionState": "disconnected",
|
||||
"roomSid": null,
|
||||
"roomName": null,
|
||||
"serverRegion": null
|
||||
}
|
||||
},
|
||||
"media": {
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
{
|
||||
"name": "capabilities_lifecycle",
|
||||
"events": [
|
||||
{
|
||||
"type": "capabilities.changed",
|
||||
"capabilities": {
|
||||
"connect": true,
|
||||
"microphone": true,
|
||||
"camera": true,
|
||||
"screen": true,
|
||||
"screenAudio": true,
|
||||
"outputDevice": true,
|
||||
"participantVolume": true,
|
||||
"remoteTrackSubscription": true,
|
||||
"dataChannel": true,
|
||||
"stats": true,
|
||||
"nativeVideoFrames": true,
|
||||
"hardwareEncoding": true,
|
||||
"zeroCopyScreenTransport": true,
|
||||
"nativeAudioTaps": true
|
||||
}
|
||||
},
|
||||
{"type": "capabilities.hardwareEncoderQueryRequested"},
|
||||
{
|
||||
"type": "capabilities.hardwareEncoderChanged",
|
||||
"operationId": 1,
|
||||
"capabilities": {
|
||||
"available": true,
|
||||
"backend": "nvenc",
|
||||
"compiled": true,
|
||||
"runtime": true,
|
||||
"codecs": ["h264", "hevc"],
|
||||
"zeroCopy": true,
|
||||
"nativeInputs": ["d3d11-texture"]
|
||||
}
|
||||
}
|
||||
],
|
||||
"expectedCommands": [[], [{"type": "capabilities.queryHardwareEncoder", "operationId": 1}], []],
|
||||
"expected": {
|
||||
"nextOperationId": 2,
|
||||
"hardwareEncoderOperationId": null,
|
||||
"hardwareEncoderFailureCode": null,
|
||||
"hardwareEncoderBackend": "nvenc",
|
||||
"hasZeroCopyNativeInput": true,
|
||||
"hasNativeNvencH264": true,
|
||||
"hasNativeNvencH265": true
|
||||
}
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
{
|
||||
"name": "diagnostics_lifecycle",
|
||||
"events": [
|
||||
{
|
||||
"type": "diagnostics.logRequested",
|
||||
"entry": {
|
||||
"id": "diag-1",
|
||||
"atMs": 1000,
|
||||
"level": "info",
|
||||
"code": "voice.session.started",
|
||||
"message": "Voice session started"
|
||||
}
|
||||
},
|
||||
{"type": "command.succeeded", "operationId": 1, "commandType": "diagnostics.log"},
|
||||
{
|
||||
"type": "diagnostics.logged",
|
||||
"operationId": null,
|
||||
"entry": {
|
||||
"id": "diag-2",
|
||||
"atMs": 1010,
|
||||
"level": "warn",
|
||||
"code": "voice.stats.delayed",
|
||||
"message": "Stats collection was delayed",
|
||||
"detail": {"delayMs": 250}
|
||||
}
|
||||
}
|
||||
],
|
||||
"expectedCommands": [
|
||||
[
|
||||
{
|
||||
"type": "diagnostics.log",
|
||||
"operationId": 1,
|
||||
"entry": {
|
||||
"id": "diag-1",
|
||||
"atMs": 1000,
|
||||
"level": "info",
|
||||
"code": "voice.session.started",
|
||||
"message": "Voice session started"
|
||||
}
|
||||
}
|
||||
],
|
||||
[],
|
||||
[]
|
||||
],
|
||||
"expected": {
|
||||
"nextOperationId": 2,
|
||||
"entryIds": ["diag-1", "diag-2"],
|
||||
"lastCode": "voice.stats.delayed",
|
||||
"operationStatuses": {"1": "succeeded"}
|
||||
}
|
||||
}
|
||||
@@ -1,81 +0,0 @@
|
||||
{
|
||||
"name": "inbound video frame stats projection",
|
||||
"events": [
|
||||
{
|
||||
"type": "inboundVideo.trackSubscribed",
|
||||
"track": {
|
||||
"participantSid": "PA_alice",
|
||||
"participantIdentity": "alice",
|
||||
"trackSid": "TR_screen",
|
||||
"source": "screen"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "inboundVideo.frameReceived",
|
||||
"frame": {
|
||||
"participantSid": "PA_alice",
|
||||
"participantIdentity": "alice",
|
||||
"trackSid": "TR_screen",
|
||||
"width": 640,
|
||||
"height": 360,
|
||||
"timestampUs": 1000,
|
||||
"byteLength": 345600
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "inboundVideo.frameStats",
|
||||
"stats": {
|
||||
"participantSid": "PA_alice",
|
||||
"participantIdentity": "alice",
|
||||
"trackSid": "TR_screen",
|
||||
"width": 1280,
|
||||
"height": 720,
|
||||
"frameCount": 31,
|
||||
"lastFrameTimestampUs": 1033000,
|
||||
"lastFrameByteLength": 1382400
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "inboundVideo.frameStats",
|
||||
"stats": {
|
||||
"participantSid": "PA_alice",
|
||||
"participantIdentity": "alice",
|
||||
"trackSid": "TR_screen",
|
||||
"width": 1280,
|
||||
"height": 720,
|
||||
"frameCount": 61,
|
||||
"lastFrameTimestampUs": 2033000,
|
||||
"lastFrameByteLength": 1382400
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "inboundVideo.frameStats",
|
||||
"stats": {
|
||||
"participantSid": "PA_bob",
|
||||
"trackSid": "TR_unknown",
|
||||
"width": 320,
|
||||
"height": 180,
|
||||
"frameCount": 5,
|
||||
"lastFrameTimestampUs": 3000000,
|
||||
"lastFrameByteLength": 86400
|
||||
}
|
||||
}
|
||||
],
|
||||
"expected": {
|
||||
"inboundVideoTracks": [
|
||||
{
|
||||
"participantSid": "PA_alice",
|
||||
"participantIdentity": "alice",
|
||||
"trackSid": "TR_screen",
|
||||
"source": "screen",
|
||||
"width": 1280,
|
||||
"height": 720,
|
||||
"frameCount": 61,
|
||||
"lastFrameTimestampUs": 2033000,
|
||||
"lastFrameByteLength": 1382400
|
||||
}
|
||||
],
|
||||
"droppedFrameCount": 1,
|
||||
"commands": []
|
||||
}
|
||||
}
|
||||
@@ -1,99 +0,0 @@
|
||||
{
|
||||
"name": "stats_lifecycle",
|
||||
"events": [
|
||||
{
|
||||
"type": "connection.connectRequested",
|
||||
"options": {
|
||||
"url": "wss://voice.example.test",
|
||||
"token": "token-1"
|
||||
}
|
||||
},
|
||||
{"type": "connection.connectSucceeded", "operationId": 1},
|
||||
{"type": "stats.collectRequested"},
|
||||
{
|
||||
"type": "stats.collected",
|
||||
"operationId": 2,
|
||||
"stats": {
|
||||
"rttMs": 24,
|
||||
"outbound": [
|
||||
{
|
||||
"trackSid": "mic-track",
|
||||
"source": "microphone",
|
||||
"kind": "audio",
|
||||
"bitrateKbps": 42,
|
||||
"packetsLost": 1,
|
||||
"packetsSent": 100
|
||||
},
|
||||
{
|
||||
"trackSid": "screen-track",
|
||||
"source": "screenshare",
|
||||
"kind": "video",
|
||||
"codec": "video/H265",
|
||||
"bitrateKbps": 3500,
|
||||
"packetsLost": 0,
|
||||
"effectiveFps": 58.5,
|
||||
"configuredFps": 60,
|
||||
"targetFps": 60,
|
||||
"width": 1920,
|
||||
"height": 1080,
|
||||
"zeroCopy": true
|
||||
}
|
||||
],
|
||||
"inbound": [
|
||||
{
|
||||
"participantIdentity": "remote-user",
|
||||
"participantSid": "participant-1",
|
||||
"trackSid": "remote-audio",
|
||||
"kind": "audio",
|
||||
"bitrateKbps": 36,
|
||||
"packetsLost": 3,
|
||||
"packetsReceived": 97,
|
||||
"jitterMs": 7
|
||||
}
|
||||
],
|
||||
"droppedNativeVideoFrames": 2,
|
||||
"droppedVideoFrameCallbacks": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"expectedCommands": [
|
||||
[
|
||||
{
|
||||
"type": "connection.connect",
|
||||
"operationId": 1,
|
||||
"options": {"url": "wss://voice.example.test", "token": "token-1"}
|
||||
}
|
||||
],
|
||||
[],
|
||||
[{"type": "stats.collect", "operationId": 2}],
|
||||
[]
|
||||
],
|
||||
"expected": {
|
||||
"nextOperationId": 3,
|
||||
"statsOperationId": null,
|
||||
"statsFailureCode": null,
|
||||
"summary": {
|
||||
"network": {
|
||||
"audioSendBitrateKbps": 42,
|
||||
"audioRecvBitrateKbps": 36,
|
||||
"videoSendBitrateKbps": 3500,
|
||||
"videoRecvBitrateKbps": 0,
|
||||
"audioPacketLossPercent": 3,
|
||||
"videoPacketLossPercent": 0,
|
||||
"jitterMs": 7,
|
||||
"rttMs": 24
|
||||
},
|
||||
"localAudio": {"trackIdentifier": "mic-track"},
|
||||
"localScreenShare": {
|
||||
"trackIdentifier": "screen-track",
|
||||
"codec": "video/H265",
|
||||
"effectiveFramesPerSecond": 58.5,
|
||||
"configuredFramesPerSecond": 60,
|
||||
"targetFramesPerSecond": 60,
|
||||
"frameWidth": 1920,
|
||||
"frameHeight": 1080
|
||||
},
|
||||
"remoteAudio": {"trackIdentifier": "remote-audio"}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,188 +0,0 @@
|
||||
[
|
||||
{
|
||||
"name": "coerces malformed sparse payload to safe defaults",
|
||||
"input": {
|
||||
"rttMs": "bad",
|
||||
"droppedVideoFrameCallbacks": -2,
|
||||
"droppedNativeVideoFrames": 3.8,
|
||||
"outbound": [
|
||||
null,
|
||||
{
|
||||
"trackSid": "",
|
||||
"source": 42,
|
||||
"kind": "data",
|
||||
"bitrateKbps": "bad",
|
||||
"packetsLost": null,
|
||||
"width": 1920.9,
|
||||
"framesDropped": -4.2,
|
||||
"zeroCopy": false
|
||||
}
|
||||
],
|
||||
"inbound": [
|
||||
null,
|
||||
{
|
||||
"participantSid": "PA_1",
|
||||
"trackSid": "TR_audio",
|
||||
"kind": "audio",
|
||||
"bitrateKbps": 42.5,
|
||||
"packetsLost": 2,
|
||||
"jitterMs": "bad",
|
||||
"audioLevel": 0.5
|
||||
}
|
||||
],
|
||||
"send": null
|
||||
},
|
||||
"expected": {
|
||||
"rttMs": null,
|
||||
"droppedVideoFrameCallbacks": 0,
|
||||
"droppedNativeVideoFrames": 3,
|
||||
"outbound": [
|
||||
{
|
||||
"trackSid": "",
|
||||
"source": "",
|
||||
"kind": "audio",
|
||||
"bitrateKbps": 0,
|
||||
"packetsLost": 0,
|
||||
"width": 1920,
|
||||
"framesDropped": 0
|
||||
}
|
||||
],
|
||||
"inbound": [
|
||||
{
|
||||
"participantSid": "PA_1",
|
||||
"trackSid": "TR_audio",
|
||||
"kind": "audio",
|
||||
"bitrateKbps": 42.5,
|
||||
"packetsLost": 2,
|
||||
"audioLevel": 0.5
|
||||
}
|
||||
],
|
||||
"send": null
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "preserves native video diagnostics and clamps send stats",
|
||||
"input": {
|
||||
"rttMs": 27,
|
||||
"droppedVideoFrameCallbacks": 2,
|
||||
"outbound": [
|
||||
{
|
||||
"trackSid": "TR_screen",
|
||||
"source": "screen",
|
||||
"kind": "video",
|
||||
"codec": "video/H265",
|
||||
"bitrateKbps": 2500.25,
|
||||
"packetsLost": 1,
|
||||
"fps": 59.5,
|
||||
"audioLevel": 0.1,
|
||||
"width": 2176,
|
||||
"height": 1200,
|
||||
"sourceWidth": 2176,
|
||||
"sourceHeight": 1200,
|
||||
"targetBitrateKbps": 50000,
|
||||
"configuredFps": 60,
|
||||
"targetFps": 60,
|
||||
"effectiveFps": 58.7,
|
||||
"framesProduced": 120.8,
|
||||
"framesAccepted": 119.4,
|
||||
"framesDropped": 1.9,
|
||||
"framesCoalesced": 0,
|
||||
"framesCaptured": 118.2,
|
||||
"captureFailures": 0,
|
||||
"maxQueueAgeMs": 12.5,
|
||||
"maxPushLatencyMs": 8.25,
|
||||
"adaptiveSendTier": "full",
|
||||
"adaptiveSendReason": "disabled",
|
||||
"zeroCopy": true
|
||||
}
|
||||
],
|
||||
"inbound": [],
|
||||
"send": {
|
||||
"outgoingVideoQueueDepth": 4,
|
||||
"outgoingVideoQueueCapacity": 8,
|
||||
"outgoingVideoMaxQueueDepth": 6,
|
||||
"outgoingVideoFramesProduced": 120,
|
||||
"outgoingVideoFramesAccepted": 119,
|
||||
"outgoingVideoFramesDropped": 1,
|
||||
"outgoingVideoFramesCoalesced": 0,
|
||||
"outgoingVideoFramesCaptured": 118,
|
||||
"outgoingVideoCaptureFailures": -1,
|
||||
"outgoingVideoEffectiveFps": 58.7,
|
||||
"outgoingVideoTargetFps": 60,
|
||||
"outgoingVideoPacingTargetFps": 60,
|
||||
"outgoingVideoMaxQueueAgeMs": 12.5,
|
||||
"outgoingVideoMaxPushLatencyMs": 8.25,
|
||||
"outgoingVideoPacingMode": "source",
|
||||
"outgoingVideoBusActive": true,
|
||||
"outgoingAudioBufferTargetMs": 20,
|
||||
"outgoingAudioBufferMaxMs": 80,
|
||||
"outgoingAudioUnderruns": 0,
|
||||
"outgoingAudioRebuffers": 1,
|
||||
"outgoingAudioMaxFrameGapMs": 24,
|
||||
"adaptiveSendTier": "full",
|
||||
"adaptiveSendReason": "disabled"
|
||||
}
|
||||
},
|
||||
"expected": {
|
||||
"rttMs": 27,
|
||||
"droppedVideoFrameCallbacks": 2,
|
||||
"outbound": [
|
||||
{
|
||||
"trackSid": "TR_screen",
|
||||
"source": "screen",
|
||||
"kind": "video",
|
||||
"codec": "video/H265",
|
||||
"bitrateKbps": 2500.25,
|
||||
"packetsLost": 1,
|
||||
"fps": 59.5,
|
||||
"audioLevel": 0.1,
|
||||
"width": 2176,
|
||||
"height": 1200,
|
||||
"sourceWidth": 2176,
|
||||
"sourceHeight": 1200,
|
||||
"targetBitrateKbps": 50000,
|
||||
"configuredFps": 60,
|
||||
"targetFps": 60,
|
||||
"effectiveFps": 58.7,
|
||||
"framesProduced": 120,
|
||||
"framesAccepted": 119,
|
||||
"framesDropped": 1,
|
||||
"framesCoalesced": 0,
|
||||
"framesCaptured": 118,
|
||||
"captureFailures": 0,
|
||||
"maxQueueAgeMs": 12.5,
|
||||
"maxPushLatencyMs": 8.25,
|
||||
"adaptiveSendTier": "full",
|
||||
"adaptiveSendReason": "disabled",
|
||||
"zeroCopy": true
|
||||
}
|
||||
],
|
||||
"inbound": [],
|
||||
"send": {
|
||||
"outgoingVideoQueueDepth": 4,
|
||||
"outgoingVideoQueueCapacity": 8,
|
||||
"outgoingVideoMaxQueueDepth": 6,
|
||||
"outgoingVideoFramesProduced": 120,
|
||||
"outgoingVideoFramesAccepted": 119,
|
||||
"outgoingVideoFramesDropped": 1,
|
||||
"outgoingVideoFramesCoalesced": 0,
|
||||
"outgoingVideoFramesCaptured": 118,
|
||||
"outgoingVideoCaptureFailures": 0,
|
||||
"outgoingVideoEffectiveFps": 58.7,
|
||||
"outgoingVideoTargetFps": 60,
|
||||
"outgoingVideoPacingTargetFps": 60,
|
||||
"outgoingVideoMaxQueueAgeMs": 12.5,
|
||||
"outgoingVideoMaxPushLatencyMs": 8.25,
|
||||
"outgoingVideoPacingMode": "source",
|
||||
"outgoingVideoBusActive": true,
|
||||
"outgoingAudioBufferTargetMs": 20,
|
||||
"outgoingAudioBufferMaxMs": 80,
|
||||
"outgoingAudioUnderruns": 0,
|
||||
"outgoingAudioRebuffers": 1,
|
||||
"outgoingAudioMaxFrameGapMs": 24,
|
||||
"adaptiveSendTier": "full",
|
||||
"adaptiveSendReason": "disabled"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user