Piik now has one public presentation and a coordinated App/Server release path. This phase unifies the room UI, rewrites the bilingual README and guides, adds a static website with an inline product film, and prepares matching GitHub/Gitee packages and update links. The film uses the current homepage and shared product controls on one seekable timeline. Runtime fixes preserve presentation when the App opens a room, normalize Site origins, and keep capture and media-recovery status in the television indicator. New visits use Chinese for a Chinese system language and English otherwise; explicit language and visual-mode choices remain available. An optional site passphrase controls site entry, while room authorization remains enforced. GitHub is the release authority. Gitee mirrors verified packages and provides update metadata when GitHub is unavailable. Reviewed PR release notes become the GitHub Release description. The separate public demo uses P2P only, with HTTPS and STUN verified. Validation: 756 Web tests, TypeScript and production build; Go core tests, formatting, vet and available target builds; bounded Windows capture and App/Site interoperability; browser film checks, audible playback and narrow layouts; anonymous Gitee Windows-package download, checksum and launcher/update-link checks. Public demo acceptance covers authenticated WebSocket signaling, synthetic P2P video and room cleanup on one network. macOS/Linux physical capture and the wider device/network/endurance matrix remain explicitly deferred. Publication builds every package from the merged source SHA. The repository is public, main protection is active, and Pages is configured for piik.tv. CI/publisher and Pages deployment records own publication results. ## Release notes ### 中文 Piik 是免费开源的屏幕共享工具。开个房间,发出邀请,最多 20 位朋友就能用浏览器加入观看。 - 使用浏览器或 Piik App 分享游戏、窗口和整个屏幕。 - 优先建立直连;自托管站点可开启媒体转发作为备用线路。 - Piik App 支持本地房间、临时公网邀请和已有站点。 - Piik Server 内置网页界面、房间管理和连接服务,方便自行部署。 - 提供中英文界面与使用指南,以及 GitHub、Gitee 两条下载线路。 [官网](https://piik.tv) · [在线体验](https://demo.piik.tv) · [使用指南](https://github.com/TNTcraftHIM/Piik/blob/main/docs/guide/getting-started.zh-CN.md) · [自行部署](https://github.com/TNTcraftHIM/Piik/blob/main/docs/operations/self-hosting.zh-CN.md) · [Gitee 下载](https://gitee.com/TNTcraftHIM/Piik/releases) Windows App 和桌面浏览器是本次主要验证的平台。macOS 和 Linux 尚未经过实机测试,欢迎有设备的朋友测试并反馈。演示站和 App 公网邀请使用 P2P,受限网络下可能无法连接;自托管站点可开启媒体转发。 ### English Piik is free, open-source screen sharing for you and up to 20 viewers. Start a room, send an invitation, and your friends can join in a browser. - Share games, windows or a whole screen from your browser or Piik App. - Direct connections come first, with optional media forwarding on self-hosted sites. - Piik App supports local rooms, temporary public invitations and existing sites. - Piik Server includes the web interface, rooms and connection services for self-hosting. - English and Chinese interfaces and guides are available, with GitHub and Gitee downloads. [Website](https://piik.tv) · [Online demo](https://demo.piik.tv) · [User guide](https://github.com/TNTcraftHIM/Piik/blob/main/docs/guide/getting-started.md) · [Self-hosting](https://github.com/TNTcraftHIM/Piik/blob/main/docs/operations/self-hosting.md) · [Gitee downloads](https://gitee.com/TNTcraftHIM/Piik/releases) Windows App and desktop browsers are the primary validated paths. macOS and Linux have not yet been tested on physical devices; testing and feedback are welcome. The demo and App public invitations rely on P2P and may not connect on restrictive networks. Self-hosted sites can enable media forwarding.
945 lines
56 KiB
JSON
945 lines
56 KiB
JSON
{
|
||
"constants": {
|
||
"signalingProtocol": "piik-v23",
|
||
"maxViewersPerRoomLimit": 20,
|
||
"maxParticipantsPerRoomLimit": 21,
|
||
"maxSignalBytes": 65536,
|
||
"roomCodeLength": 4,
|
||
"maxMediaRouteRevision": 9007199254740991,
|
||
"maxIceServerUrls": 8,
|
||
"maxNatPredictionAuxiliaryStunUrls": 2,
|
||
"maxViewerQualityEvidenceBytes": 2048,
|
||
"viewerQualityEvidenceIntervalMs": 2000,
|
||
"viewerQualityEvidenceExpiryMs": 5000,
|
||
"persistentNativeEdgeDegradedWindows": 3,
|
||
"maxDisplayNameCodePoints": 24,
|
||
"defaultViewerDisplayName": "观众",
|
||
"defaultHostDisplayNamePrefix": "房主",
|
||
"minViewerPasswordLength": 1,
|
||
"maxViewerPasswordLength": 64,
|
||
"defaultEndpointMediaCopyCapacity": 2,
|
||
"maxEndpointMediaCopyCapacity": 3,
|
||
"signalCloseCodeServiceRestart": 1012,
|
||
"signalCloseCodeSessionReplaced": 4001,
|
||
"signalCloseCodeClientReconnect": 4002,
|
||
"signalCloseCodeAuthenticationFailed": 4003,
|
||
"signalCloseCodeViewerAccessRevoked": 4004,
|
||
"defaultQualitySettings": {
|
||
"resolution": "1080p",
|
||
"maxFramerate": 30,
|
||
"maxBitrate": 5000000,
|
||
"degradationPreference": "balanced",
|
||
"screenAudioQuality": "music"
|
||
},
|
||
"defaultRoutePolicy": {
|
||
"peerOnly": false,
|
||
"topologyOptimization": true,
|
||
"natPrediction": false
|
||
}
|
||
},
|
||
"clientMessages": [
|
||
{
|
||
"name": "authenticate-host-minimal",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"host\",\"token\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"clientId\":\"client_12345678\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "authenticate-host-full",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"host\",\"token\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"clientId\":\"client_12345678\",\"shareGeneration\":\"share_generation_12345678\",\"sharingPaused\":false,\"qualitySettings\":{\"resolution\":\"1080p\",\"maxFramerate\":60,\"maxBitrate\":8000000,\"degradationPreference\":\"maintain-resolution\",\"screenAudioQuality\":\"music\"},\"routePolicy\":{\"peerOnly\":false,\"topologyOptimization\":true,\"natPrediction\":false},\"viewerPresence\":true,\"displayName\":\"小明\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "authenticate-host-carries-viewer-grant",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"host\",\"token\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"clientId\":\"client_12345678\",\"viewerGrant\":\"bbbbbbbbbbbbbbbbbbbbbg\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-host-carries-viewer-password",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"host\",\"token\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"clientId\":\"client_12345678\",\"viewerPassword\":\"easy-password\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-host-short-token",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"host\",\"token\":\"short\",\"clientId\":\"client_12345678\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-host-unknown-key",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"host\",\"token\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"clientId\":\"client_12345678\",\"admin\":true}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-minimal",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-full",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\",\"viewerGrant\":\"bbbbbbbbbbbbbbbbbbbbbg\",\"viewerPassword\":\"easy-password\",\"displayName\":\"Café 朋友\",\"viewerPresence\":true}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-carries-host-token",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\",\"token\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-carries-route-policy",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\",\"routePolicy\":{\"peerOnly\":false,\"topologyOptimization\":true,\"natPrediction\":false}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-malformed-grant",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\",\"viewerGrant\":\"bbbbbbbbbbbbbbbbbbbbb\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-grant-bad-final-character",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\",\"viewerGrant\":\"bbbbbbbbbbbbbbbbbbbbbb\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-unknown-capabilities",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\",\"capabilities\":{\"peerIceTurn\":true}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-wrong-protocol",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"invalid-protocol\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-missing-protocol",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-leading-zero-room",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"0123\",\"role\":\"viewer\",\"clientId\":\"client_12345678\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-long-room",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"11111\",\"role\":\"viewer\",\"clientId\":\"client_12345678\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-noncanonical-display-name",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\",\"displayName\":\" Café \"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-display-name-too-long",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\",\"displayName\":\"名名名名名名名名名名名名名名名名名名名名名名名名名\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-display-name-at-limit",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\",\"displayName\":\"名名名名名名名名名名名名名名名名名名名名名名名名\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-display-name-bidi-override",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\",\"displayName\":\"ab\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-display-name-newline",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\",\"displayName\":\"a\\nb\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-viewer-null-display-name",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"viewer\",\"clientId\":\"client_12345678\",\"displayName\":null}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "authenticate-unknown-role",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"authenticate\",\"protocol\":\"piik-v23\",\"roomId\":\"1234\",\"role\":\"relay\",\"clientId\":\"client_12345678\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "signaling-challenge-max",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"signaling-challenge\",\"sequence\":9007199254740991}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "signaling-challenge-negative",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"signaling-challenge\",\"sequence\":-1}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "signaling-challenge-fractional",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"signaling-challenge\",\"sequence\":1.5}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "signaling-challenge-above-safe-integer",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"signaling-challenge\",\"sequence\":9007199254740992}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "signaling-challenge-extra-key",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"signaling-challenge\",\"sequence\":1,\"roomId\":\"1234\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "signal-description",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"signal\",\"targetPeerId\":\"viewer_12345678\",\"payload\":{\"kind\":\"description\",\"connectionId\":\"connection_12345678\",\"description\":{\"type\":\"offer\",\"sdp\":\"v=0\\r\\n\"}}}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "signal-candidate-end",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"signal\",\"payload\":{\"kind\":\"candidate\",\"connectionId\":\"connection_12345678\",\"candidate\":null}}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "signal-candidate-full",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"signal\",\"payload\":{\"kind\":\"candidate\",\"connectionId\":\"connection_12345678\",\"candidate\":{\"candidate\":\"candidate:1 1 udp 1 203.0.113.1 50000 typ host\",\"sdpMid\":\"0\",\"sdpMLineIndex\":0,\"usernameFragment\":null}}}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "signal-empty-sdp",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"signal\",\"payload\":{\"kind\":\"description\",\"connectionId\":\"connection_12345678\",\"description\":{\"type\":\"offer\",\"sdp\":\"\"}}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "signal-unknown-payload-kind",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"signal\",\"payload\":{\"kind\":\"renegotiate\",\"connectionId\":\"connection_12345678\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "signal-missing-candidate-key",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"signal\",\"payload\":{\"kind\":\"candidate\",\"connectionId\":\"connection_12345678\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "restart-request",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"restart-request\",\"connectionId\":\"connection_12345678\",\"rebuild\":true}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "restart-request-targeted",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"restart-request\",\"targetPeerId\":\"parent_12345678\",\"connectionId\":\"connection_12345678\",\"rebuild\":false}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "restart-request-missing-rebuild",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"restart-request\",\"connectionId\":\"connection_12345678\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "set-quality-settings",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-quality-settings\",\"qualitySettings\":{\"resolution\":\"1080p\",\"maxFramerate\":60,\"maxBitrate\":8000000,\"degradationPreference\":\"maintain-resolution\"}}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "set-quality-settings-with-audio",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-quality-settings\",\"qualitySettings\":{\"resolution\":\"1080p\",\"maxFramerate\":60,\"maxBitrate\":8000000,\"degradationPreference\":\"maintain-resolution\",\"screenAudioQuality\":\"music\"}}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "set-quality-settings-legacy-codec",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-quality-settings\",\"qualitySettings\":{\"resolution\":\"1080p\",\"maxFramerate\":60,\"maxBitrate\":8000000,\"degradationPreference\":\"maintain-resolution\",\"videoCodec\":\"vp8\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "set-quality-settings-framerate-below-floor",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-quality-settings\",\"qualitySettings\":{\"resolution\":\"1080p\",\"maxFramerate\":14,\"maxBitrate\":8000000,\"degradationPreference\":\"maintain-resolution\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "set-quality-settings-fractional-bitrate",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-quality-settings\",\"qualitySettings\":{\"resolution\":\"1080p\",\"maxFramerate\":60,\"maxBitrate\":5000000.5,\"degradationPreference\":\"maintain-resolution\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "set-quality-settings-missing-framerate",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-quality-settings\",\"qualitySettings\":{\"resolution\":\"1080p\",\"maxBitrate\":8000000,\"degradationPreference\":\"maintain-resolution\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "set-quality-settings-unknown-resolution",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-quality-settings\",\"qualitySettings\":{\"resolution\":\"2160p\",\"maxFramerate\":60,\"maxBitrate\":8000000,\"degradationPreference\":\"maintain-resolution\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "relay-capacity-max",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"relay-capacity\",\"downstreamEdges\":3}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "relay-capacity-zero",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"relay-capacity\",\"downstreamEdges\":0}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "relay-capacity-over-limit",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"relay-capacity\",\"downstreamEdges\":4}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "relay-capacity-extra-key",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"relay-capacity\",\"downstreamEdges\":1,\"score\":100}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "route-ready",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"route-ready\",\"revision\":7,\"phase\":\"prepare\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "route-ready-quality-approved",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"route-ready\",\"revision\":7,\"phase\":\"prepare\",\"qualityApproved\":true}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "route-ready-quality-approved-false",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"route-ready\",\"revision\":7,\"phase\":\"prepare\",\"qualityApproved\":false}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "route-ready-negative-revision",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"route-ready\",\"revision\":-1,\"phase\":\"prepare\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "route-transport-connected",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"route-transport-connected\",\"revision\":7,\"connectionId\":\"connection_12345678\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "route-transport-connected-missing-connection",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"route-transport-connected\",\"revision\":7}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "route-media-unavailable",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"route-media-unavailable\",\"revision\":7}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "route-media-unavailable-negative",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"route-media-unavailable\",\"revision\":-1}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "route-failed",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"route-failed\",\"revision\":7,\"phase\":\"active\",\"connectionId\":null}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "route-failed-missing-connection",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"route-failed\",\"revision\":7,\"phase\":\"active\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "refresh-sfu-max-revision",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"refresh-sfu\",\"revision\":9007199254740991}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "refresh-sfu-fractional",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"refresh-sfu\",\"revision\":1.5}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "request-route-diagnostic",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"request-route-diagnostic\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "request-route-diagnostic-extra-key",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"request-route-diagnostic\",\"roomId\":\"1234\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0},\"sequence\":0,\"windowMs\":2000,\"metrics\":{\"natTraversalPath\":\"ordinary\",\"width\":1920,\"height\":1080,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":0,\"freezeDurationMsDelta\":0,\"pauseCountDelta\":0,\"pauseDurationMsDelta\":0,\"codec\":\"video/H264\",\"codecProfile\":\"profile-level-id=42e01f\",\"codecParameters\":\"packetization-mode=1; level-asymmetry-allowed=1\",\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\"}}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence-null-freeze",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0},\"sequence\":0,\"windowMs\":2000,\"metrics\":{\"natTraversalPath\":\"ordinary\",\"width\":1920,\"height\":1080,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":null,\"freezeDurationMsDelta\":null,\"pauseCountDelta\":null,\"pauseDurationMsDelta\":null,\"codec\":\"video/H264\",\"codecProfile\":\"profile-level-id=42e01f\",\"codecParameters\":\"packetization-mode=1; level-asymmetry-allowed=1\",\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\"}}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence-vp8",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0},\"sequence\":0,\"windowMs\":2000,\"metrics\":{\"natTraversalPath\":\"ordinary\",\"width\":1920,\"height\":1080,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":0,\"freezeDurationMsDelta\":0,\"pauseCountDelta\":0,\"pauseDurationMsDelta\":0,\"codec\":\"video/VP8\",\"codecProfile\":null,\"codecParameters\":\"max-fr=60; max-fs=8160\",\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\"}}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence-unknown-codec",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0},\"sequence\":0,\"windowMs\":2000,\"metrics\":{\"natTraversalPath\":\"ordinary\",\"width\":1920,\"height\":1080,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":0,\"freezeDurationMsDelta\":0,\"pauseCountDelta\":0,\"pauseDurationMsDelta\":0,\"codec\":\"video/unknown\",\"codecProfile\":null,\"codecParameters\":null,\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\"}}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence-missing-path",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0},\"sequence\":0,\"windowMs\":2000,\"metrics\":{\"width\":1920,\"height\":1080,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":0,\"freezeDurationMsDelta\":0,\"pauseCountDelta\":0,\"pauseDurationMsDelta\":0,\"codec\":\"video/H264\",\"codecProfile\":\"profile-level-id=42e01f\",\"codecParameters\":\"packetization-mode=1; level-asymmetry-allowed=1\",\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence-lonely-height",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0},\"sequence\":0,\"windowMs\":2000,\"metrics\":{\"natTraversalPath\":\"ordinary\",\"width\":null,\"height\":1080,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":0,\"freezeDurationMsDelta\":0,\"pauseCountDelta\":0,\"pauseDurationMsDelta\":0,\"codec\":\"video/H264\",\"codecProfile\":\"profile-level-id=42e01f\",\"codecParameters\":\"packetization-mode=1; level-asymmetry-allowed=1\",\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence-lonely-width",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0},\"sequence\":0,\"windowMs\":2000,\"metrics\":{\"natTraversalPath\":\"ordinary\",\"width\":1920,\"height\":null,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":0,\"freezeDurationMsDelta\":0,\"pauseCountDelta\":0,\"pauseDurationMsDelta\":0,\"codec\":\"video/H264\",\"codecProfile\":\"profile-level-id=42e01f\",\"codecParameters\":\"packetization-mode=1; level-asymmetry-allowed=1\",\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence-noncanonical-parameters",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0},\"sequence\":0,\"windowMs\":2000,\"metrics\":{\"natTraversalPath\":\"ordinary\",\"width\":1920,\"height\":1080,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":0,\"freezeDurationMsDelta\":0,\"pauseCountDelta\":0,\"pauseDurationMsDelta\":0,\"codec\":\"video/H264\",\"codecProfile\":\"profile-level-id=42e01f\",\"codecParameters\":\"sprop-parameter-sets=deadbeef\",\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence-window-too-short",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0},\"sequence\":0,\"windowMs\":999,\"metrics\":{\"natTraversalPath\":\"ordinary\",\"width\":1920,\"height\":1080,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":0,\"freezeDurationMsDelta\":0,\"pauseCountDelta\":0,\"pauseDurationMsDelta\":0,\"codec\":\"video/H264\",\"codecProfile\":\"profile-level-id=42e01f\",\"codecParameters\":\"packetization-mode=1; level-asymmetry-allowed=1\",\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence-extra-guard-key",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0,\"peerId\":\"viewer_12345678\"},\"sequence\":0,\"windowMs\":2000,\"metrics\":{\"natTraversalPath\":\"ordinary\",\"width\":1920,\"height\":1080,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":0,\"freezeDurationMsDelta\":0,\"pauseCountDelta\":0,\"pauseDurationMsDelta\":0,\"codec\":\"video/H264\",\"codecProfile\":\"profile-level-id=42e01f\",\"codecParameters\":\"packetization-mode=1; level-asymmetry-allowed=1\",\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence-device-fingerprint",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0},\"sequence\":0,\"windowMs\":2000,\"metrics\":{\"natTraversalPath\":\"ordinary\",\"width\":1920,\"height\":1080,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":0,\"freezeDurationMsDelta\":0,\"pauseCountDelta\":0,\"pauseDurationMsDelta\":0,\"codec\":\"video/H264\",\"codecProfile\":\"profile-level-id=42e01f\",\"codecParameters\":\"packetization-mode=1; level-asymmetry-allowed=1\",\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\",\"decoderImplementation\":\"device-specific-decoder\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence-freeze-above-safe-integer",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0},\"sequence\":0,\"windowMs\":2000,\"metrics\":{\"natTraversalPath\":\"ordinary\",\"width\":1920,\"height\":1080,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":9007199254740992,\"freezeDurationMsDelta\":0,\"pauseCountDelta\":0,\"pauseDurationMsDelta\":0,\"codec\":\"video/H264\",\"codecProfile\":\"profile-level-id=42e01f\",\"codecParameters\":\"packetization-mode=1; level-asymmetry-allowed=1\",\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\"}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "sender-quality-evidence",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"sender-quality-evidence\",\"childPeerId\":\"viewer_12345678\",\"connectionId\":\"connection_12345678\",\"rtpStatsId\":\"rtp-stats-1\",\"trackIdentifier\":\"track-1\",\"sampleTimestampMs\":2000,\"routeRevision\":3,\"state\":\"degraded\",\"diagnostics\":{\"natTraversalPath\":\"ordinary\",\"reason\":\"bandwidth\",\"framesPerSecond\":24,\"bitrateKbps\":1500}}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "sender-quality-evidence-unknown-state",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"sender-quality-evidence\",\"childPeerId\":\"viewer_12345678\",\"connectionId\":\"connection_12345678\",\"rtpStatsId\":null,\"trackIdentifier\":null,\"sampleTimestampMs\":null,\"routeRevision\":3,\"state\":\"unknown\",\"diagnostics\":{\"natTraversalPath\":\"ordinary\",\"reason\":null,\"framesPerSecond\":24,\"bitrateKbps\":1500}}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "sender-quality-evidence-healthy-without-identity",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"sender-quality-evidence\",\"childPeerId\":\"viewer_12345678\",\"connectionId\":\"connection_12345678\",\"rtpStatsId\":null,\"trackIdentifier\":\"track-1\",\"sampleTimestampMs\":2000,\"routeRevision\":3,\"state\":\"healthy\",\"diagnostics\":{\"natTraversalPath\":\"ordinary\",\"reason\":\"none\",\"framesPerSecond\":24,\"bitrateKbps\":1500}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "sender-quality-evidence-reason-mismatch",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"sender-quality-evidence\",\"childPeerId\":\"viewer_12345678\",\"connectionId\":\"connection_12345678\",\"rtpStatsId\":\"rtp-stats-1\",\"trackIdentifier\":\"track-1\",\"sampleTimestampMs\":2000,\"routeRevision\":3,\"state\":\"healthy\",\"diagnostics\":{\"natTraversalPath\":\"ordinary\",\"reason\":\"bandwidth\",\"framesPerSecond\":24,\"bitrateKbps\":1500}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "sender-quality-evidence-missing-path",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"sender-quality-evidence\",\"childPeerId\":\"viewer_12345678\",\"connectionId\":\"connection_12345678\",\"rtpStatsId\":\"rtp-stats-1\",\"trackIdentifier\":\"track-1\",\"sampleTimestampMs\":2000,\"routeRevision\":3,\"state\":\"degraded\",\"diagnostics\":{\"reason\":\"bandwidth\",\"framesPerSecond\":24,\"bitrateKbps\":1500}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "sfu-publisher-quality-evidence",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"sfu-publisher-quality-evidence\",\"publicationGeneration\":\"publication_generation_12345678\",\"routeRevision\":4,\"state\":\"healthy\",\"sampleTimestampMs\":2000,\"diagnostics\":{\"natTraversalPath\":\"ordinary\",\"reason\":\"none\",\"framesPerSecond\":30,\"bitrateKbps\":2000,\"captureFramesPerSecond\":30,\"mediaSourceFramesPerSecond\":null,\"width\":1920,\"height\":1080,\"videoEncodingCount\":1,\"activeVideoEncodingCount\":1,\"availableOutgoingKbps\":9000,\"rttMs\":12,\"packetLossPercent\":0.1}}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "sfu-publisher-quality-evidence-missing-sample",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"sfu-publisher-quality-evidence\",\"publicationGeneration\":\"publication_generation_12345678\",\"routeRevision\":4,\"state\":\"healthy\",\"sampleTimestampMs\":null,\"diagnostics\":{\"natTraversalPath\":\"ordinary\",\"reason\":\"none\",\"framesPerSecond\":30,\"bitrateKbps\":2000,\"captureFramesPerSecond\":30,\"mediaSourceFramesPerSecond\":null,\"width\":1920,\"height\":1080,\"videoEncodingCount\":1,\"activeVideoEncodingCount\":1,\"availableOutgoingKbps\":9000,\"rttMs\":12,\"packetLossPercent\":0.1}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "reset-sender-quality",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"reset-sender-quality\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "reset-sender-quality-extra-key",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"reset-sender-quality\",\"roomId\":\"1234\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "set-display-name",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-display-name\",\"displayName\":\"小明\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "set-display-name-noncanonical",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-display-name\",\"displayName\":\" Café \"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "set-sharing-paused",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-sharing-paused\",\"shareGeneration\":\"share_generation_12345678\",\"paused\":true}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "set-sharing-paused-resume",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-sharing-paused\",\"shareGeneration\":\"share_generation_12345678\",\"paused\":false}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "set-sharing-paused-string-flag",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-sharing-paused\",\"shareGeneration\":\"share_generation_12345678\",\"paused\":\"true\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "set-sharing-paused-extra-key",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-sharing-paused\",\"shareGeneration\":\"share_generation_12345678\",\"paused\":true,\"unexpected\":1}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "set-sharing-paused-missing-generation",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-sharing-paused\",\"paused\":true}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "stop-sharing",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"stop-sharing\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "stop-sharing-generation",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"stop-sharing\",\"shareGeneration\":\"share_generation_12345678\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "stop-sharing-short-generation",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"stop-sharing\",\"shareGeneration\":\"short\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "abandon-room",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"abandon-room\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "abandon-room-extra-key",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"abandon-room\",\"unexpected\":true}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "removed-refresh-ice",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"refresh-ice\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "removed-set-code-entry-policy",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"set-code-entry-policy\",\"policy\":\"open\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "removed-rotate-viewer-grant",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"rotate-viewer-grant\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "create-room-open",
|
||
"schema": "createRoomRequest",
|
||
"json": "{\"codeEntryPolicy\":\"open\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "create-room-private-password",
|
||
"schema": "createRoomRequest",
|
||
"json": "{\"codeEntryPolicy\":\"private\",\"roomPassword\":\"room-password\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "create-room-null-password",
|
||
"schema": "createRoomRequest",
|
||
"json": "{\"codeEntryPolicy\":\"private\",\"roomPassword\":null}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "create-room-preferred-code",
|
||
"schema": "createRoomRequest",
|
||
"json": "{\"codeEntryPolicy\":\"open\",\"preferredRoomId\":\"4321\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "create-room-leading-zero-code",
|
||
"schema": "createRoomRequest",
|
||
"json": "{\"codeEntryPolicy\":\"open\",\"preferredRoomId\":\"0432\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "create-room-unknown-policy",
|
||
"schema": "createRoomRequest",
|
||
"json": "{\"codeEntryPolicy\":\"password\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "create-room-numeric-policy",
|
||
"schema": "createRoomRequest",
|
||
"json": "{\"codeEntryPolicy\":1}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "create-room-space-in-password",
|
||
"schema": "createRoomRequest",
|
||
"json": "{\"codeEntryPolicy\":\"private\",\"roomPassword\":\"contains space\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "create-room-unknown-key",
|
||
"schema": "createRoomRequest",
|
||
"json": "{\"codeEntryPolicy\":\"open\",\"hostToken\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "replace-room-private-password",
|
||
"schema": "replaceRoomRequest",
|
||
"json": "{\"codeEntryPolicy\":\"private\",\"roomPassword\":\"room-password\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "replace-room-open",
|
||
"schema": "replaceRoomRequest",
|
||
"json": "{\"codeEntryPolicy\":\"open\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "replace-room-preferred-code",
|
||
"schema": "replaceRoomRequest",
|
||
"json": "{\"codeEntryPolicy\":\"open\",\"preferredRoomId\":\"4321\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "replace-room-missing-policy",
|
||
"schema": "replaceRoomRequest",
|
||
"json": "{}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "room-access-set-code-entry-policy-open",
|
||
"schema": "roomAccessUpdateRequest",
|
||
"json": "{\"action\":\"set-code-entry-policy\",\"policy\":\"open\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "room-access-set-code-entry-policy-private",
|
||
"schema": "roomAccessUpdateRequest",
|
||
"json": "{\"action\":\"set-code-entry-policy\",\"policy\":\"private\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "room-access-set-code-entry-policy-disabled",
|
||
"schema": "roomAccessUpdateRequest",
|
||
"json": "{\"action\":\"set-code-entry-policy\",\"policy\":\"disabled\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "room-access-rotate-viewer-grant",
|
||
"schema": "roomAccessUpdateRequest",
|
||
"json": "{\"action\":\"rotate-viewer-grant\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "room-access-rotate-viewer-grant-extra-key",
|
||
"schema": "roomAccessUpdateRequest",
|
||
"json": "{\"action\":\"rotate-viewer-grant\",\"policy\":\"open\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "room-access-revoke-viewer-grant",
|
||
"schema": "roomAccessUpdateRequest",
|
||
"json": "{\"action\":\"revoke-viewer-grant\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "room-access-set-viewer-password",
|
||
"schema": "roomAccessUpdateRequest",
|
||
"json": "{\"action\":\"set-viewer-password\",\"password\":\"simple-password\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "room-access-clear-viewer-password",
|
||
"schema": "roomAccessUpdateRequest",
|
||
"json": "{\"action\":\"set-viewer-password\",\"password\":null}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "room-access-missing-password-key",
|
||
"schema": "roomAccessUpdateRequest",
|
||
"json": "{\"action\":\"set-viewer-password\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "room-access-long-password",
|
||
"schema": "roomAccessUpdateRequest",
|
||
"json": "{\"action\":\"set-viewer-password\",\"password\":\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "room-access-unknown-action",
|
||
"schema": "roomAccessUpdateRequest",
|
||
"json": "{\"action\":\"disable-room\"}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "sfu-publisher-offer",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"sfu-signal\",\"revision\":9,\"publicationGeneration\":\"publication_12345678\",\"connectionId\":\"connection_12345678\",\"kind\":\"description\",\"description\":{\"type\":\"offer\",\"sdp\":\"v=0\\\\r\\\\n\"},\"media\":{\"codec\":\"vp8\",\"layers\":[{\"rid\":\"q\",\"width\":640,\"height\":360,\"bitrate\":500000},{\"rid\":\"h\",\"width\":1280,\"height\":720,\"bitrate\":2000000}],\"audio\":false,\"audioBitrate\":128000}}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "sfu-ice-end",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"sfu-signal\",\"revision\":9,\"publicationGeneration\":\"publication_12345678\",\"connectionId\":\"connection_12345678\",\"kind\":\"candidate\"}",
|
||
"valid": true
|
||
},
|
||
{
|
||
"name": "sfu-invalid-layers",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"sfu-signal\",\"revision\":9,\"publicationGeneration\":\"publication_12345678\",\"connectionId\":\"connection_12345678\",\"kind\":\"description\",\"description\":{\"type\":\"offer\",\"sdp\":\"v=0\\\\r\\\\n\"},\"media\":{\"codec\":\"vp8\",\"layers\":[],\"audio\":false,\"audioBitrate\":128000}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "sfu-invalid-media-role",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"sfu-signal\",\"revision\":9,\"publicationGeneration\":\"publication_12345678\",\"connectionId\":\"connection_12345678\",\"kind\":\"description\",\"description\":{\"type\":\"answer\",\"sdp\":\"v=0\"},\"media\":{\"codec\":\"vp8\",\"layers\":[{\"rid\":\"q\",\"width\":640,\"height\":360,\"bitrate\":500000},{\"rid\":\"h\",\"width\":1280,\"height\":720,\"bitrate\":2000000}],\"audio\":false,\"audioBitrate\":128000}}",
|
||
"valid": false
|
||
},
|
||
{
|
||
"name": "sfu-null-description",
|
||
"schema": "client",
|
||
"json": "{\"type\":\"sfu-signal\",\"revision\":9,\"publicationGeneration\":\"publication_12345678\",\"connectionId\":\"connection_12345678\",\"kind\":\"candidate\",\"description\":null}",
|
||
"valid": false
|
||
}
|
||
],
|
||
"serverMessages": [
|
||
{
|
||
"name": "authenticated-host-minimal",
|
||
"json": "{\"type\":\"authenticated\",\"protocol\":\"piik-v23\",\"peerId\":\"host_12345678\",\"maxViewers\":8,\"endpointMediaCopyCapacity\":2,\"hostOnline\":true,\"connectionId\":null,\"iceConfig\":{\"iceServers\":[],\"natPredictionStunUrls\":[]},\"routePolicy\":{\"peerOnly\":false,\"topologyOptimization\":true,\"natPrediction\":false},\"codeEntryPolicy\":\"open\",\"viewerAuthorizationGeneration\":\"viewer_generation_12345678\",\"mediaMode\":\"peer-assisted\",\"shareGeneration\":\"share_generation_12345678\",\"routeRevision\":0,\"routeAssignment\":{\"upstream\":{\"kind\":\"none\"},\"childPeerIds\":[],\"sfuPublicationGeneration\":null},\"qualitySettings\":{\"resolution\":\"1080p\",\"maxFramerate\":60,\"maxBitrate\":8000000,\"degradationPreference\":\"maintain-resolution\",\"screenAudioQuality\":\"music\"},\"role\":\"host\",\"viewerPasswordEnabled\":false}"
|
||
},
|
||
{
|
||
"name": "authenticated-host-full",
|
||
"json": "{\"type\":\"authenticated\",\"protocol\":\"piik-v23\",\"peerId\":\"host_12345678\",\"maxViewers\":8,\"endpointMediaCopyCapacity\":2,\"hostOnline\":true,\"connectionId\":\"connection_12345678\",\"iceConfig\":{\"iceServers\":[{\"urls\":\"stun:stun.example.test:3478\"},{\"urls\":[\"stun:stun-1.example.test:3478\",\"stun:[2001:db8::1]:3478\"]}],\"natPredictionStunUrls\":[\"stun:nat.example.test:3478\"]},\"routePolicy\":{\"peerOnly\":false,\"topologyOptimization\":true,\"natPrediction\":false},\"codeEntryPolicy\":\"open\",\"viewerAuthorizationGeneration\":\"viewer_generation_12345678\",\"mediaMode\":\"peer-assisted\",\"shareGeneration\":\"share_generation_12345678\",\"routeRevision\":0,\"routeAssignment\":{\"upstream\":{\"kind\":\"sfu\"},\"childPeerIds\":[],\"sfuPublicationGeneration\":\"generation_12345678\"},\"qualitySettings\":{\"resolution\":\"1080p\",\"maxFramerate\":60,\"maxBitrate\":8000000,\"degradationPreference\":\"maintain-resolution\",\"screenAudioQuality\":\"music\"},\"role\":\"host\",\"viewerPasswordEnabled\":false}"
|
||
},
|
||
{
|
||
"name": "authenticated-viewer-minimal",
|
||
"json": "{\"type\":\"authenticated\",\"protocol\":\"piik-v23\",\"peerId\":\"viewer_12345678\",\"maxViewers\":8,\"endpointMediaCopyCapacity\":2,\"hostOnline\":true,\"hostPaused\":false,\"connectionId\":null,\"iceConfig\":{\"iceServers\":[],\"natPredictionStunUrls\":[]},\"routePolicy\":{\"peerOnly\":false,\"topologyOptimization\":true,\"natPrediction\":false},\"codeEntryPolicy\":\"open\",\"viewerAuthorizationGeneration\":\"viewer_generation_12345678\",\"mediaMode\":\"peer-assisted\",\"shareGeneration\":\"share_generation_12345678\",\"routeRevision\":0,\"routeAssignment\":{\"upstream\":{\"kind\":\"none\"},\"childPeerIds\":[],\"sfuPublicationGeneration\":null},\"qualitySettings\":{\"resolution\":\"1080p\",\"maxFramerate\":60,\"maxBitrate\":8000000,\"degradationPreference\":\"maintain-resolution\",\"screenAudioQuality\":\"music\"},\"role\":\"viewer\"}"
|
||
},
|
||
{
|
||
"name": "authenticated-viewer-full",
|
||
"json": "{\"type\":\"authenticated\",\"protocol\":\"piik-v23\",\"peerId\":\"viewer_12345678\",\"maxViewers\":8,\"endpointMediaCopyCapacity\":2,\"hostOnline\":true,\"hostPaused\":true,\"connectionId\":\"connection_12345678\",\"iceConfig\":{\"iceServers\":[],\"natPredictionStunUrls\":[]},\"routePolicy\":{\"peerOnly\":false,\"topologyOptimization\":true,\"natPrediction\":false},\"codeEntryPolicy\":\"open\",\"viewerAuthorizationGeneration\":\"viewer_generation_12345678\",\"mediaMode\":\"peer-assisted\",\"shareGeneration\":\"share_generation_12345678\",\"routeRevision\":0,\"routeAssignment\":{\"upstream\":{\"kind\":\"peer\",\"peerId\":\"parent_12345678\"},\"childPeerIds\":[\"child_12345678\",\"child_87654321\"],\"sfuPublicationGeneration\":null},\"qualitySettings\":{\"resolution\":\"1080p\",\"maxFramerate\":60,\"maxBitrate\":8000000,\"degradationPreference\":\"maintain-resolution\",\"screenAudioQuality\":\"music\"},\"role\":\"viewer\"}"
|
||
},
|
||
{
|
||
"name": "signaling-challenge-response",
|
||
"json": "{\"type\":\"signaling-challenge-response\",\"sequence\":0}"
|
||
},
|
||
{
|
||
"name": "signal-description",
|
||
"json": "{\"type\":\"signal\",\"fromPeerId\":\"host_12345678\",\"payload\":{\"kind\":\"description\",\"connectionId\":\"connection_12345678\",\"description\":{\"type\":\"offer\",\"sdp\":\"v=0\\r\\n\"}}}"
|
||
},
|
||
{
|
||
"name": "signal-candidate-full",
|
||
"json": "{\"type\":\"signal\",\"fromPeerId\":\"host_12345678\",\"payload\":{\"kind\":\"candidate\",\"connectionId\":\"connection_12345678\",\"candidate\":{\"candidate\":\"candidate:1 1 udp 1 203.0.113.1 50000 typ host\",\"sdpMid\":\"0\",\"sdpMLineIndex\":0,\"usernameFragment\":null}}}"
|
||
},
|
||
{
|
||
"name": "signal-candidate-end",
|
||
"json": "{\"type\":\"signal\",\"fromPeerId\":\"host_12345678\",\"payload\":{\"kind\":\"candidate\",\"connectionId\":\"connection_12345678\",\"candidate\":null}}"
|
||
},
|
||
{
|
||
"name": "restart-request",
|
||
"json": "{\"type\":\"restart-request\",\"fromPeerId\":\"viewer_12345678\",\"connectionId\":\"connection_12345678\",\"rebuild\":true}"
|
||
},
|
||
{
|
||
"name": "route-update-prepare",
|
||
"json": "{\"type\":\"route-update\",\"revision\":9,\"phase\":\"prepare\",\"assignment\":{\"upstream\":{\"kind\":\"peer\",\"peerId\":\"parent_12345678\"},\"childPeerIds\":[\"child_12345678\",\"child_87654321\"],\"sfuPublicationGeneration\":null},\"candidate\":{\"childPeerId\":\"child_12345678\",\"connectionId\":\"connection_12345678\",\"transport\":\"direct\",\"qualityProbe\":false}}"
|
||
},
|
||
{
|
||
"name": "route-update-prepare-with-attempt",
|
||
"json": "{\"type\":\"route-update\",\"revision\":10,\"phase\":\"prepare\",\"assignment\":{\"upstream\":{\"kind\":\"sfu\"},\"childPeerIds\":[],\"sfuPublicationGeneration\":\"generation_12345678\"},\"candidate\":{\"childPeerId\":\"child_12345678\",\"connectionId\":\"connection_12345678\",\"transport\":\"sfu\",\"qualityProbe\":true,\"connectionAttempt\":{\"current\":2,\"total\":3}}}"
|
||
},
|
||
{
|
||
"name": "route-update-active",
|
||
"json": "{\"type\":\"route-update\",\"revision\":11,\"phase\":\"active\",\"assignment\":{\"upstream\":{\"kind\":\"none\"},\"childPeerIds\":[],\"sfuPublicationGeneration\":null}}"
|
||
},
|
||
{
|
||
"name": "route-status-waiting",
|
||
"json": "{\"type\":\"route-status\",\"revision\":3,\"state\":\"waiting\",\"reason\":\"sfu-admission\"}"
|
||
},
|
||
{
|
||
"name": "route-status-failed",
|
||
"json": "{\"type\":\"route-status\",\"revision\":4,\"state\":\"failed\",\"reason\":\"route-exhausted\"}"
|
||
},
|
||
{
|
||
"name": "route-diagnostic-snapshot-empty",
|
||
"json": "{\"type\":\"route-diagnostic-snapshot\",\"snapshot\":{\"children\":[],\"operation\":null}}"
|
||
},
|
||
{
|
||
"name": "route-diagnostic-snapshot",
|
||
"json": "{\"type\":\"route-diagnostic-snapshot\",\"snapshot\":{\"children\":[{\"ordinal\":1,\"parent\":{\"kind\":\"host\"},\"effectiveCapacity\":2,\"childCount\":1,\"demandAgeMs\":100,\"queueWaitMs\":10,\"candidateStartMs\":20,\"firstDecodedFrameMs\":80,\"finalMs\":80,\"finalRoute\":\"direct\",\"rejectionBucket\":\"none\",\"quality\":{\"eligibleWindows\":3,\"eligibleDurationMs\":6000,\"freezeWindows\":1,\"freezeCount\":1,\"freezeDurationMs\":250,\"pauseCount\":0,\"pauseDurationMs\":0}},{\"ordinal\":2,\"parent\":{\"kind\":\"viewer\",\"ordinal\":1},\"effectiveCapacity\":0,\"childCount\":0,\"demandAgeMs\":90,\"queueWaitMs\":null,\"candidateStartMs\":null,\"firstDecodedFrameMs\":null,\"finalMs\":null,\"finalRoute\":\"waiting\",\"rejectionBucket\":\"sfu-admission\",\"quality\":null}],\"operation\":{\"childOrdinal\":2,\"reason\":\"join\",\"stage\":\"admission\",\"cursor\":1,\"candidateCount\":2}}}"
|
||
},
|
||
{
|
||
"name": "sfu-config",
|
||
"json": "{\"type\":\"sfu-config\",\"revision\":9,\"publicationGeneration\":\"publication_12345678\",\"connectionId\":\"connection_12345678\"}"
|
||
},
|
||
{
|
||
"name": "quality-settings",
|
||
"json": "{\"type\":\"quality-settings\",\"qualitySettings\":{\"resolution\":\"1080p\",\"maxFramerate\":60,\"maxBitrate\":8000000,\"degradationPreference\":\"maintain-resolution\",\"screenAudioQuality\":\"music\"}}"
|
||
},
|
||
{
|
||
"name": "quality-settings-without-audio",
|
||
"json": "{\"type\":\"quality-settings\",\"qualitySettings\":{\"resolution\":\"1080p\",\"maxFramerate\":60,\"maxBitrate\":8000000,\"degradationPreference\":\"maintain-resolution\"}}"
|
||
},
|
||
{
|
||
"name": "route-policy",
|
||
"json": "{\"type\":\"route-policy\",\"shareGeneration\":\"share_generation_12345678\",\"routePolicy\":{\"peerOnly\":false,\"topologyOptimization\":true,\"natPrediction\":false}}"
|
||
},
|
||
{
|
||
"name": "route-policy-peer-only",
|
||
"json": "{\"type\":\"route-policy\",\"shareGeneration\":\"share_generation_12345678\",\"routePolicy\":{\"peerOnly\":true,\"topologyOptimization\":true,\"natPrediction\":false}}"
|
||
},
|
||
{
|
||
"name": "pause-sharing-source",
|
||
"json": "{\"type\":\"pause-sharing-source\",\"shareGeneration\":\"share_generation_12345678\"}"
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence-peer",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"viewerPeerId\":\"viewer_12345678\",\"upstream\":{\"kind\":\"peer\",\"peerId\":\"host_12345678\"},\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0},\"sequence\":0,\"windowMs\":2000,\"metrics\":{\"natTraversalPath\":\"ordinary\",\"width\":1920,\"height\":1080,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":0,\"freezeDurationMsDelta\":0,\"pauseCountDelta\":0,\"pauseDurationMsDelta\":0,\"codec\":\"video/H264\",\"codecProfile\":\"profile-level-id=42e01f\",\"codecParameters\":\"packetization-mode=1; level-asymmetry-allowed=1\",\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\"}}"
|
||
},
|
||
{
|
||
"name": "viewer-quality-evidence-sfu",
|
||
"json": "{\"type\":\"viewer-quality-evidence\",\"viewerPeerId\":\"viewer_12345678\",\"upstream\":{\"kind\":\"sfu\"},\"guard\":{\"connectionId\":\"connection_12345678\",\"routeRevision\":0,\"presentationEpoch\":0},\"sequence\":1,\"windowMs\":2000,\"metrics\":{\"natTraversalPath\":\"ordinary\",\"width\":null,\"height\":null,\"framesPerSecond\":59.8,\"bitrateKbps\":7500,\"packetsReceivedDelta\":1500,\"packetsLostDelta\":2,\"rttMs\":18,\"jitterMs\":3.5,\"framesDecodedDelta\":120,\"framesDroppedDelta\":1,\"decodeMsPerFrame\":2.4,\"freezeCountDelta\":0,\"freezeDurationMsDelta\":0,\"pauseCountDelta\":0,\"pauseDurationMsDelta\":0,\"codec\":null,\"codecProfile\":null,\"codecParameters\":null,\"audioBitrateKbps\":192,\"audioPacketLossPercent\":0.2,\"audioJitterMs\":2.5,\"audioVideoPlayoutDeltaMs\":-12.5,\"videoJitterBufferDelayMs\":24,\"audioJitterBufferDelayMs\":18,\"audioConcealedSamplesPercent\":1,\"audioConcealmentEventsDelta\":3,\"audioCodec\":\"audio/opus\"}}"
|
||
},
|
||
{
|
||
"name": "host-status-online",
|
||
"json": "{\"type\":\"host-status\",\"online\":true,\"paused\":false}"
|
||
},
|
||
{
|
||
"name": "viewer-presence-empty",
|
||
"json": "{\"type\":\"viewer-presence\",\"viewers\":[]}"
|
||
},
|
||
{
|
||
"name": "viewer-presence",
|
||
"json": "{\"type\":\"viewer-presence\",\"viewers\":[{\"role\":\"host\",\"peerId\":\"host_12345678\",\"displayName\":\"分享者\",\"upstream\":{\"kind\":\"none\"}},{\"role\":\"viewer\",\"peerId\":\"viewer_12345678\",\"displayName\":\"小明\",\"upstream\":{\"kind\":\"peer\",\"peerId\":\"host_12345678\"},\"mediaReady\":true},{\"role\":\"viewer\",\"peerId\":\"viewer_87654321\",\"displayName\":\"观众\",\"upstream\":{\"kind\":\"none\"}}]}"
|
||
},
|
||
{
|
||
"name": "viewer-grant-revoked",
|
||
"json": "{\"type\":\"viewer-grant-revoked\",\"viewerAuthorizationGeneration\":\"viewer_generation_12345678\"}"
|
||
},
|
||
{
|
||
"name": "sharing-stopped",
|
||
"json": "{\"type\":\"sharing-stopped\"}"
|
||
},
|
||
{
|
||
"name": "room-closed-host-ended",
|
||
"json": "{\"type\":\"room-closed\",\"reason\":\"host-ended\"}"
|
||
},
|
||
{
|
||
"name": "error",
|
||
"json": "{\"type\":\"error\",\"code\":\"ROOM_FULL\",\"message\":\"Room is full\"}"
|
||
},
|
||
{
|
||
"name": "sfu-subscriber-offer",
|
||
"json": "{\"type\":\"sfu-signal\",\"revision\":9,\"publicationGeneration\":\"publication_12345678\",\"connectionId\":\"connection_12345678\",\"kind\":\"description\",\"description\":{\"type\":\"offer\",\"sdp\":\"v=0\\\\r\\\\n\"}}"
|
||
},
|
||
{
|
||
"name": "sfu-layer-demand",
|
||
"json": "{\"type\":\"sfu-signal\",\"revision\":9,\"publicationGeneration\":\"publication_12345678\",\"connectionId\":\"connection_12345678\",\"kind\":\"layers\",\"activeCount\":0}"
|
||
}
|
||
]
|
||
}
|