Release workflow, myTS avatars, host banner, hardware video decode setting, nickname-first tree layout, CI run #1 analysis; core raw-extras lifecycle
This commit is contained in:
1 parent
ceb18f3fc9
commit
aaa389cc9b
16 files changed
+425
-23
No files matched your search
@@ -0,0 +1,158 @@
|
|||||||
|
# Release builds on the self-hosted Gitea runner (Linux x64 job containers).
|
||||||
|
# - workflow_dispatch: build + verify packages, keep them as run artifacts (no release).
|
||||||
|
# - tag v*: same, then publish a Gitea release with the packages, only if every build job succeeded.
|
||||||
|
# Windows x64 packages are built on a Windows machine and attached separately (see README).
|
||||||
|
name: release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags: ['v*']
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
linux-x64:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: node:22-bookworm
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: never
|
||||||
|
CARGO_BUILD_JOBS: "2"
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: System packages (container only)
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y --no-install-recommends build-essential cmake curl ca-certificates git \
|
||||||
|
xvfb xauth libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libgbm1 libgtk-3-0 \
|
||||||
|
libasound2 libxss1 libxshmfence1 libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 libpango-1.0-0
|
||||||
|
|
||||||
|
- name: Rust toolchain
|
||||||
|
run: |
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
|
||||||
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
|
- name: Tests
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
npm test
|
||||||
|
cargo test --manifest-path core/Cargo.toml --locked
|
||||||
|
|
||||||
|
- name: Core release build and checks
|
||||||
|
run: |
|
||||||
|
cargo build --manifest-path core/Cargo.toml --release --locked
|
||||||
|
node scripts/binary-arch.mjs core/target/release/teamspeach-core --expect linux-x64
|
||||||
|
node scripts/core-smoke.mjs core/target/release/teamspeach-core
|
||||||
|
|
||||||
|
- name: Electron UI smoke (Xvfb, offline)
|
||||||
|
env:
|
||||||
|
TEAMSPEACH_SMOKE_EXTRA_ARGS: --no-sandbox
|
||||||
|
run: xvfb-run -a node scripts/smoke-ui.mjs --out smoke-out
|
||||||
|
|
||||||
|
- name: Package
|
||||||
|
run: node scripts/dist.mjs --os linux --arch x64
|
||||||
|
|
||||||
|
- name: Package report
|
||||||
|
run: |
|
||||||
|
ldd --version | head -n1 > dist/build-info-linux-x64.txt
|
||||||
|
node scripts/elf-pagesize.mjs dist/linux-unpacked --page 4096 --json dist/elf-report-linux-x64.json >> dist/build-info-linux-x64.txt
|
||||||
|
sha256sum dist/*.AppImage dist/*.tar.gz >> dist/build-info-linux-x64.txt
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: teamspeach-linux-x64
|
||||||
|
path: |
|
||||||
|
dist/*.AppImage
|
||||||
|
dist/*.tar.gz
|
||||||
|
dist/build-info-linux-x64.txt
|
||||||
|
dist/elf-report-linux-x64.json
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
|
linux-arm64:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: node:22-bookworm
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: never
|
||||||
|
CARGO_BUILD_JOBS: "2"
|
||||||
|
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
|
||||||
|
CC_aarch64_unknown_linux_gnu: aarch64-linux-gnu-gcc
|
||||||
|
CXX_aarch64_unknown_linux_gnu: aarch64-linux-gnu-g++
|
||||||
|
AR_aarch64_unknown_linux_gnu: aarch64-linux-gnu-ar
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Cross toolchain and user-mode emulator (container only, no binfmt)
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y --no-install-recommends build-essential cmake curl ca-certificates git \
|
||||||
|
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu libc6-dev-arm64-cross qemu-user
|
||||||
|
|
||||||
|
- name: Rust toolchain
|
||||||
|
run: |
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --target aarch64-unknown-linux-gnu
|
||||||
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
|
- name: Core cross build and checks
|
||||||
|
run: |
|
||||||
|
cargo build --manifest-path core/Cargo.toml --release --locked --target aarch64-unknown-linux-gnu
|
||||||
|
node scripts/binary-arch.mjs core/target/aarch64-unknown-linux-gnu/release/teamspeach-core --expect linux-arm64
|
||||||
|
node scripts/elf-pagesize.mjs core/target/aarch64-unknown-linux-gnu/release/teamspeach-core --page 16384
|
||||||
|
node scripts/core-smoke.mjs core/target/aarch64-unknown-linux-gnu/release/teamspeach-core --wrapper "qemu-aarch64 -L /usr/aarch64-linux-gnu"
|
||||||
|
|
||||||
|
- name: Package
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
node scripts/dist.mjs --os linux --arch arm64
|
||||||
|
|
||||||
|
- name: 16 KiB page check of every ELF in the package (Asahi)
|
||||||
|
run: |
|
||||||
|
echo "glibc of build sysroot: $(dpkg-query -W -f='${Version}' libc6-dev-arm64-cross)" > dist/build-info-linux-arm64.txt
|
||||||
|
node scripts/elf-pagesize.mjs dist/linux-arm64-unpacked --page 16384 --json dist/elf-report-linux-arm64.json | tee -a dist/build-info-linux-arm64.txt
|
||||||
|
sha256sum dist/*.AppImage dist/*.tar.gz >> dist/build-info-linux-arm64.txt
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: teamspeach-linux-arm64
|
||||||
|
path: |
|
||||||
|
dist/*.AppImage
|
||||||
|
dist/*.tar.gz
|
||||||
|
dist/build-info-linux-arm64.txt
|
||||||
|
dist/elf-report-linux-arm64.json
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
|
publish:
|
||||||
|
needs: [linux-x64, linux-arm64]
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: node:22-bookworm
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
path: artifacts
|
||||||
|
|
||||||
|
- name: Create release and upload packages
|
||||||
|
env:
|
||||||
|
TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
API: ${{ github.server_url }}/api/v1/repos/${{ github.repository }}
|
||||||
|
TAG: ${{ github.ref_name }}
|
||||||
|
run: |
|
||||||
|
set -eu
|
||||||
|
body="Linux x64 и Linux ARM64 (aarch64) собраны в CI: тесты, офлайн-проверка ядра, проверка страниц 16 КиБ для ARM64 (см. build-info-*.txt). ARM64 проверен только статически и под qemu, не на Apple Silicon. Пакеты не подписаны. Сборка Windows x64 прикладывается отдельно с пометкой local."
|
||||||
|
id=$(node -e '
|
||||||
|
const [api, tag, token, body] = process.argv.slice(1);
|
||||||
|
fetch(`${api}/releases`, { method: "POST", headers: { Authorization: `token ${token}`, "Content-Type": "application/json" },
|
||||||
|
body: JSON.stringify({ tag_name: tag, name: `TeamsPeach ${tag}`, body, prerelease: true }) })
|
||||||
|
.then(async (r) => { const j = await r.json(); if (!r.ok) { console.error(r.status, JSON.stringify(j)); process.exit(1); } console.log(j.id); });
|
||||||
|
' "$API" "$TAG" "$TOKEN" "$body")
|
||||||
|
for f in artifacts/*/*; do
|
||||||
|
name=$(basename "$f")
|
||||||
|
curl --fail -sS -X POST -H "Authorization: token $TOKEN" -F "attachment=@$f" "$API/releases/$id/assets?name=$name" > /dev/null
|
||||||
|
echo "uploaded $name"
|
||||||
|
done
|
||||||
+23
-3
@@ -56,6 +56,11 @@ const MIME = {
|
|||||||
// The TS6 streamer is native libwebrtc; plain host candidates keep LAN viewing working even while the mic is off.
|
// The TS6 streamer is native libwebrtc; plain host candidates keep LAN viewing working even while the mic is off.
|
||||||
app.commandLine.appendSwitch('disable-features', 'WebRtcHideLocalIpsWithMdns');
|
app.commandLine.appendSwitch('disable-features', 'WebRtcHideLocalIpsWithMdns');
|
||||||
|
|
||||||
|
// Hardware video decoding policy is a launch-time Chromium switch, so it is read from the saved
|
||||||
|
// preferences before the app is ready and only changes after a restart.
|
||||||
|
const hardwareVideoDecodeAtLaunch = new Prefs(prefsFile()).get().hardwareVideoDecode;
|
||||||
|
if (!hardwareVideoDecodeAtLaunch) app.commandLine.appendSwitch('disable-accelerated-video-decode');
|
||||||
|
|
||||||
protocol.registerSchemesAsPrivileged([
|
protocol.registerSchemesAsPrivileged([
|
||||||
{ scheme: APP_SCHEME, privileges: { standard: true, secure: true, supportFetchAPI: true, codeCache: true } },
|
{ scheme: APP_SCHEME, privileges: { standard: true, secure: true, supportFetchAPI: true, codeCache: true } },
|
||||||
]);
|
]);
|
||||||
@@ -130,8 +135,7 @@ function onCoreEvent(evt) {
|
|||||||
if (evt.event === 'state' && evt.state === 'disconnected') externalMedia.clear();
|
if (evt.event === 'state' && evt.state === 'disconnected') externalMedia.clear();
|
||||||
if (evt.event === 'snapshot' && Array.isArray(evt.clients)) {
|
if (evt.event === 'snapshot' && Array.isArray(evt.clients)) {
|
||||||
for (const c of evt.clients) {
|
for (const c of evt.clients) {
|
||||||
if (typeof c.myts_avatar_url === 'string') allowExternalMedia(c.myts_avatar_url);
|
if (Array.isArray(c.myts_avatars)) for (const v of c.myts_avatars) allowExternalMedia(v && v.url);
|
||||||
if (Array.isArray(c.myts_avatar_urls)) for (const v of c.myts_avatar_urls) allowExternalMedia(v && v.url);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sendToRenderer('core:event', evt);
|
sendToRenderer('core:event', evt);
|
||||||
@@ -404,7 +408,11 @@ function registerIpc() {
|
|||||||
if (!core) return { ok: false, error: { code: 'core_unavailable', message: 'Ядро не запущено' } };
|
if (!core) return { ok: false, error: { code: 'core_unavailable', message: 'Ядро не запущено' } };
|
||||||
const hasArgs = Object.keys(clean).length > 0;
|
const hasArgs = Object.keys(clean).length > 0;
|
||||||
const response = await core.request(cmd, hasArgs ? clean : undefined);
|
const response = await core.request(cmd, hasArgs ? clean : undefined);
|
||||||
if (!response.ok && response.error.code === 'external_media' && response.error.detail) allowExternalMedia(response.error.detail.url);
|
if (!response.ok && response.error.code === 'external_media' && response.error.detail) {
|
||||||
|
const detail = response.error.detail;
|
||||||
|
allowExternalMedia(detail.url);
|
||||||
|
if (Array.isArray(detail.urls)) for (const v of detail.urls) allowExternalMedia(v && v.url);
|
||||||
|
}
|
||||||
return response;
|
return response;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -464,6 +472,18 @@ function registerIpc() {
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ipcMain.handle('app:video-status', (event) => {
|
||||||
|
if (!trustedSender(event)) return null;
|
||||||
|
return { hardwareDecodeAtLaunch: hardwareVideoDecodeAtLaunch, gpu: app.getGPUFeatureStatus() };
|
||||||
|
});
|
||||||
|
|
||||||
|
ipcMain.handle('app:relaunch', (event) => {
|
||||||
|
if (!trustedSender(event)) return false;
|
||||||
|
app.relaunch();
|
||||||
|
app.quit();
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
ipcMain.handle('app:open-logs', async (event) => {
|
ipcMain.handle('app:open-logs', async (event) => {
|
||||||
if (!trustedSender(event)) return false;
|
if (!trustedSender(event)) return false;
|
||||||
fs.mkdirSync(logsDir(), { recursive: true });
|
fs.mkdirSync(logsDir(), { recursive: true });
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ const SCHEMA = {
|
|||||||
noiseSuppression: { default: true, check: (v) => typeof v === 'boolean' },
|
noiseSuppression: { default: true, check: (v) => typeof v === 'boolean' },
|
||||||
autoGainControl: { default: true, check: (v) => typeof v === 'boolean' },
|
autoGainControl: { default: true, check: (v) => typeof v === 'boolean' },
|
||||||
voiceVolume: { default: 100, check: (v) => Number.isInteger(v) && v >= 0 && v <= 200 },
|
voiceVolume: { default: 100, check: (v) => Number.isInteger(v) && v >= 0 && v <= 200 },
|
||||||
|
hardwareVideoDecode: { default: true, check: (v) => typeof v === 'boolean' },
|
||||||
streamVolume: { default: 100, check: (v) => Number.isInteger(v) && v >= 0 && v <= 100 },
|
streamVolume: { default: 100, check: (v) => Number.isInteger(v) && v >= 0 && v <= 100 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -27,5 +27,7 @@ contextBridge.exposeInMainWorld('teamspeach', {
|
|||||||
copyText: (text) => ipcRenderer.invoke('clipboard:write', text),
|
copyText: (text) => ipcRenderer.invoke('clipboard:write', text),
|
||||||
openLogs: () => ipcRenderer.invoke('app:open-logs'),
|
openLogs: () => ipcRenderer.invoke('app:open-logs'),
|
||||||
fetchExternalMedia: (url) => ipcRenderer.invoke('media:external', url),
|
fetchExternalMedia: (url) => ipcRenderer.invoke('media:external', url),
|
||||||
|
getVideoStatus: () => ipcRenderer.invoke('app:video-status'),
|
||||||
|
relaunch: () => ipcRenderer.invoke('app:relaunch'),
|
||||||
log: (level, message) => ipcRenderer.send('app:log', level, String(message)),
|
log: (level, message) => ipcRenderer.send('app:log', level, String(message)),
|
||||||
});
|
});
|
||||||
@@ -83,6 +83,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</header>
|
</header>
|
||||||
<p id="tree-empty" class="tree-empty">Каналы появятся после подключения к серверу.</p>
|
<p id="tree-empty" class="tree-empty">Каналы появятся после подключения к серверу.</p>
|
||||||
|
<img id="host-banner" class="host-banner" alt="" hidden>
|
||||||
<ul id="tree" class="tree" aria-label="Каналы и участники"></ul>
|
<ul id="tree" class="tree" aria-label="Каналы и участники"></ul>
|
||||||
<footer class="self">
|
<footer class="self">
|
||||||
<div class="self-id">
|
<div class="self-id">
|
||||||
@@ -251,6 +252,18 @@
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section class="settings-section" aria-labelledby="set-video">
|
||||||
|
<h2 id="set-video">Видео трансляций</h2>
|
||||||
|
<label class="choice"><input id="opt-hwdec" type="checkbox"> Аппаратное декодирование видео</label>
|
||||||
|
<div id="hwdec-restart" class="form-actions" hidden>
|
||||||
|
<span class="form-status">Изменение вступит в силу после перезапуска TeamsPeach.</span>
|
||||||
|
<button id="hwdec-relaunch" class="btn" type="button">Перезапустить сейчас</button>
|
||||||
|
</div>
|
||||||
|
<p id="hwdec-status" class="hint"></p>
|
||||||
|
<p id="decoder-last" class="hint"></p>
|
||||||
|
<p class="hint">Переключателя Cisco OpenH264 и выбора отдельных аппаратных бэкендов, как в TeamSpeak 6, здесь нет: видео принимается через WebRTC движка Chromium, который не позволяет выбрать декодер. H.264 Chromium декодирует через FFmpeg (OpenH264 в нём служит только кодировщиком), аппаратный декодер выбирается автоматически, если ускорение разрешено.</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section class="settings-section" aria-labelledby="set-diag">
|
<section class="settings-section" aria-labelledby="set-diag">
|
||||||
<h2 id="set-diag">О программе</h2>
|
<h2 id="set-diag">О программе</h2>
|
||||||
<dl id="diag-list" class="diag-list"></dl>
|
<dl id="diag-list" class="diag-list"></dl>
|
||||||
|
|||||||
@@ -9,6 +9,27 @@ import * as chat from './chat.js';
|
|||||||
import * as watch from './watch.js';
|
import * as watch from './watch.js';
|
||||||
import * as voice from './voice.js';
|
import * as voice from './voice.js';
|
||||||
import * as settings from './settings.js';
|
import * as settings from './settings.js';
|
||||||
|
import { serverBannerUrl, clearMedia } from './media.js';
|
||||||
|
|
||||||
|
let hostBannerKey = null;
|
||||||
|
|
||||||
|
/** The server's host banner (hostbanner_gfx_url) above the tree; hidden when the server has none. */
|
||||||
|
function renderHostBanner() {
|
||||||
|
const img = $('#host-banner');
|
||||||
|
const server = S.snap?.server;
|
||||||
|
const key = server?.hostbanner_gfx_url ?? null;
|
||||||
|
if (key === hostBannerKey) return;
|
||||||
|
hostBannerKey = key;
|
||||||
|
img.hidden = true;
|
||||||
|
img.removeAttribute('src');
|
||||||
|
if (!key) return;
|
||||||
|
serverBannerUrl(server).then((url) => {
|
||||||
|
if (!url || hostBannerKey !== key) return;
|
||||||
|
img.src = url;
|
||||||
|
img.alt = server.hostbanner_url ? `Баннер сервера (${server.hostbanner_url})` : 'Баннер сервера';
|
||||||
|
img.hidden = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
const VIEWS = ['#boot', '#view-fatal', '#view-onboarding', '#view-app'];
|
const VIEWS = ['#boot', '#view-fatal', '#view-onboarding', '#view-app'];
|
||||||
let welcomeShown = false;
|
let welcomeShown = false;
|
||||||
@@ -248,6 +269,9 @@ function resetConnection(reason) {
|
|||||||
welcomeShown = false;
|
welcomeShown = false;
|
||||||
lastOwnChannel = null;
|
lastOwnChannel = null;
|
||||||
watch.onDisconnected();
|
watch.onDisconnected();
|
||||||
|
clearMedia();
|
||||||
|
hostBannerKey = null;
|
||||||
|
$('#host-banner').hidden = true;
|
||||||
voice.setPtt(false);
|
voice.setPtt(false);
|
||||||
voice.syncCapture();
|
voice.syncCapture();
|
||||||
if (wasConnected) {
|
if (wasConnected) {
|
||||||
@@ -289,6 +313,7 @@ function onSnapshot(snap) {
|
|||||||
if (ch) chat.addSystem('channel', `Вы в канале «${ch.name}»`);
|
if (ch) chat.addSystem('channel', `Вы в канале «${ch.name}»`);
|
||||||
}
|
}
|
||||||
watch.onSnapshot();
|
watch.onSnapshot();
|
||||||
|
renderHostBanner();
|
||||||
renderConnection();
|
renderConnection();
|
||||||
renderTree();
|
renderTree();
|
||||||
renderSelf();
|
renderSelf();
|
||||||
|
|||||||
@@ -74,13 +74,12 @@ export function avatarUrl(client) {
|
|||||||
return Promise.resolve(null);
|
return Promise.resolve(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** myTeamSpeak avatar URL (bridge: myts_avatars[{variant,url}]); the highest variant observed is used. */
|
||||||
function mytsAvatar(client) {
|
function mytsAvatar(client) {
|
||||||
if (typeof client.myts_avatar_url === 'string') return client.myts_avatar_url;
|
if (!Array.isArray(client.myts_avatars)) return null;
|
||||||
if (Array.isArray(client.myts_avatar_urls) && client.myts_avatar_urls.length) {
|
const list = client.myts_avatars.filter((v) => v && typeof v.url === 'string' && v.url.startsWith('https://'));
|
||||||
const sorted = [...client.myts_avatar_urls].filter((v) => v && typeof v.url === 'string').sort((a, b) => (a.size ?? 0) - (b.size ?? 0));
|
list.sort((a, b) => (b.variant ?? 0) - (a.variant ?? 0));
|
||||||
return (sorted.find((v) => (v.size ?? 0) >= 64) ?? sorted.at(-1))?.url ?? null;
|
return list[0]?.url ?? null;
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Forget everything (new server or disconnect) and release blob URLs. */
|
/** Forget everything (new server or disconnect) and release blob URLs. */
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { tp, call } from './core.js';
|
|||||||
import { errorText, keyLabel } from './text.js';
|
import { errorText, keyLabel } from './text.js';
|
||||||
import { toast } from './toast.js';
|
import { toast } from './toast.js';
|
||||||
import * as voice from './voice.js';
|
import * as voice from './voice.js';
|
||||||
import { applySink } from './watch.js';
|
import { applySink, watchStats } from './watch.js';
|
||||||
|
|
||||||
let hooks = { savePrefs: async () => {}, close: () => {}, onProfile: () => {} };
|
let hooks = { savePrefs: async () => {}, close: () => {}, onProfile: () => {} };
|
||||||
|
|
||||||
@@ -131,6 +131,12 @@ export function initSettings(h0) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
$('#open-logs').addEventListener('click', () => tp.openLogs());
|
$('#open-logs').addEventListener('click', () => tp.openLogs());
|
||||||
|
|
||||||
|
$('#opt-hwdec').addEventListener('change', async (e) => {
|
||||||
|
await hooks.savePrefs({ hardwareVideoDecode: e.target.checked });
|
||||||
|
renderVideo();
|
||||||
|
});
|
||||||
|
$('#hwdec-relaunch').addEventListener('click', () => tp.relaunch());
|
||||||
}
|
}
|
||||||
|
|
||||||
export function renderProfile() {
|
export function renderProfile() {
|
||||||
@@ -184,6 +190,7 @@ export function open() {
|
|||||||
renderAudio();
|
renderAudio();
|
||||||
voice.refreshDevices();
|
voice.refreshDevices();
|
||||||
renderDiagnostics();
|
renderDiagnostics();
|
||||||
|
renderVideo();
|
||||||
$('#settings-back').focus();
|
$('#settings-back').focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -195,3 +202,31 @@ export async function close() {
|
|||||||
await voice.setMicTest(false);
|
await voice.setMicTest(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const GPU_STATE = {
|
||||||
|
enabled: 'аппаратное, активно',
|
||||||
|
enabled_on: 'аппаратное, активно',
|
||||||
|
enabled_force: 'аппаратное, принудительно',
|
||||||
|
disabled_software: 'отключено, используется программное',
|
||||||
|
disabled_off: 'отключено',
|
||||||
|
disabled_off_ok: 'отключено',
|
||||||
|
unavailable_software: 'недоступно, используется программное',
|
||||||
|
unavailable_off: 'недоступно',
|
||||||
|
unavailable_off_ok: 'недоступно',
|
||||||
|
};
|
||||||
|
|
||||||
|
/** Saved preference vs what this run was started with vs what Chromium reports right now. */
|
||||||
|
export async function renderVideo() {
|
||||||
|
const status = await tp.getVideoStatus();
|
||||||
|
const saved = S.prefs.hardwareVideoDecode;
|
||||||
|
$('#opt-hwdec').checked = saved;
|
||||||
|
$('#hwdec-restart').hidden = !status || saved === status.hardwareDecodeAtLaunch;
|
||||||
|
if (status) {
|
||||||
|
const gpu = status.gpu?.video_decode ?? 'неизвестно';
|
||||||
|
setText($('#hwdec-status'), `В этом запуске: ${status.hardwareDecodeAtLaunch ? 'разрешено' : 'запрещено (флаг disable-accelerated-video-decode)'}. Состояние декодирования видео в Chromium: ${GPU_STATE[gpu] ?? gpu}.`);
|
||||||
|
}
|
||||||
|
const d = watchStats.decoder;
|
||||||
|
setText($('#decoder-last'), d
|
||||||
|
? `Последняя трансляция: ${watchStats.codec || '—'}, декодер «${d}»${watchStats.powerEfficientDecoder === true ? ' (энергоэффективный)' : watchStats.powerEfficientDecoder === false ? ' (не энергоэффективный)' : ''}.`
|
||||||
|
: 'Декодер станет известен во время просмотра трансляции.');
|
||||||
|
}
|
||||||
@@ -242,8 +242,10 @@ function updateMemberRow(li, cl, depth) {
|
|||||||
const beforeText = named.filter((g) => g.name_mode === 'before').map((g) => g.name).join(' · ');
|
const beforeText = named.filter((g) => g.name_mode === 'before').map((g) => g.name).join(' · ');
|
||||||
const afterText = named.filter((g) => g.name_mode === 'after').map((g) => g.name).join(' · ');
|
const afterText = named.filter((g) => g.name_mode === 'after').map((g) => g.name).join(' · ');
|
||||||
setText(before, beforeText);
|
setText(before, beforeText);
|
||||||
|
before.title = beforeText;
|
||||||
before.hidden = !beforeText;
|
before.hidden = !beforeText;
|
||||||
setText(after, afterText);
|
setText(after, afterText);
|
||||||
|
after.title = afterText;
|
||||||
after.hidden = !afterText;
|
after.hidden = !afterText;
|
||||||
|
|
||||||
const flagIcons = [];
|
const flagIcons = [];
|
||||||
@@ -284,7 +286,7 @@ function updateMemberRow(li, cl, depth) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const avatarKey = `${cl.avatar_hash ?? ''}|${cl.myts_avatar_url ?? ''}|${JSON.stringify(cl.myts_avatar_urls ?? null)}`;
|
const avatarKey = `${cl.avatar_hash ?? ''}|${JSON.stringify(cl.myts_avatars ?? null)}`;
|
||||||
if (avatar.dataset.sig !== avatarKey) {
|
if (avatar.dataset.sig !== avatarKey) {
|
||||||
avatar.dataset.sig = avatarKey;
|
avatar.dataset.sig = avatarKey;
|
||||||
avatar.querySelector('img')?.remove();
|
avatar.querySelector('img')?.remove();
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width
|
|||||||
.shell {
|
.shell {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(260px, 300px) 1fr;
|
grid-template-columns: clamp(280px, 27vw, 390px) 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
@@ -614,10 +614,11 @@ input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width
|
|||||||
.avatar.has-image .status-dot { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; background: var(--sidebar); }
|
.avatar.has-image .status-dot { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; background: var(--sidebar); }
|
||||||
[data-talking="true"] > .row-btn .avatar.has-image img { box-shadow: 0 0 0 2px var(--talk); }
|
[data-talking="true"] > .row-btn .avatar.has-image img { box-shadow: 0 0 0 2px var(--talk); }
|
||||||
.member-row .row-btn { padding-left: calc(18px + var(--indent)); }
|
.member-row .row-btn { padding-left: calc(18px + var(--indent)); }
|
||||||
.group-label { flex: none; max-width: 40%; padding: 0 6px; border-radius: 4px; background: var(--sunken); color: var(--text-2); font-size: 11.5px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
/* The nickname keeps its width first; group labels and badges shrink and truncate before it. */
|
||||||
.member-row .row-label { flex: 0 1 auto; }
|
.member-row .row-label { flex: 0 0 auto; max-width: 70%; }
|
||||||
|
.group-label { flex: 0 1 auto; min-width: 2.5em; max-width: 14ch; padding: 0 6px; border-radius: 4px; background: var(--sunken); color: var(--text-2); font-size: 11.5px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||||
.member-tag { margin-right: auto; }
|
.member-tag { margin-right: auto; }
|
||||||
.member-badges { display: inline-flex; align-items: center; gap: 3px; flex: none; }
|
.member-badges { display: inline-flex; align-items: center; gap: 3px; flex: 0 1 auto; min-width: 0; overflow: hidden; }
|
||||||
.group-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--text-3); }
|
.group-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; color: var(--text-3); }
|
||||||
.group-icon img { width: 16px; height: 16px; object-fit: contain; }
|
.group-icon img { width: 16px; height: 16px; object-fit: contain; }
|
||||||
.group-icon .icon { width: 14px; height: 14px; }
|
.group-icon .icon { width: 14px; height: 14px; }
|
||||||
@@ -634,3 +635,4 @@ input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width
|
|||||||
.channel-row.has-banner[data-current="true"] .row-btn {
|
.channel-row.has-banner[data-current="true"] .row-btn {
|
||||||
background-image: linear-gradient(90deg, var(--accent-soft) 30%, color-mix(in srgb, var(--accent-soft) 55%, transparent) 100%), var(--banner);
|
background-image: linear-gradient(90deg, var(--accent-soft) 30%, color-mix(in srgb, var(--accent-soft) 55%, transparent) 100%), var(--banner);
|
||||||
}
|
}
|
||||||
|
.host-banner { display: block; width: calc(100% - 20px); max-height: 96px; margin: 10px 10px 0; object-fit: contain; border-radius: var(--radius-sm); }
|
||||||
+21
-7
@@ -96,7 +96,7 @@ permission → `{"id":2568,"name":"PermissionsClientInsufficient","missing_permi
|
|||||||
| `not_found` | requested icon/avatar/banner does not exist (`detail.builtin:true` for built-in icon ids) |
|
| `not_found` | requested icon/avatar/banner does not exist (`detail.builtin:true` for built-in icon ids) |
|
||||||
| `media_too_large` | file exceeds the size limit of its kind (§4.16) |
|
| `media_too_large` | file exceeds the size limit of its kind (§4.16) |
|
||||||
| `media_unsupported` | file is not a recognized image, or a banner reference the core cannot fetch |
|
| `media_unsupported` | file is not a recognized image, or a banner reference the core cannot fetch |
|
||||||
| `external_media` | banner is an `http(s)://` URL (`detail.url`); main may fetch it itself |
|
| `external_media` | banner or avatar lives at an `https://` URL (`detail.url` for banners, `detail.urls` for avatars); main may fetch it itself |
|
||||||
| `io` | data dir I/O failure |
|
| `io` | data dir I/O failure |
|
||||||
| `internal` | bug; message has details |
|
| `internal` | bug; message has details |
|
||||||
|
|
||||||
@@ -247,7 +247,7 @@ cross the bridge: the core derives the server file from ids it already knows.
|
|||||||
| command | args | server file | limit |
|
| command | args | server file | limit |
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
| `fetch_icon` | `{icon_id: number}` (u32, non-zero) | `/icon_<id>` in the server root | 256 KiB |
|
| `fetch_icon` | `{icon_id: number}` (u32, non-zero) | `/icon_<id>` in the server root | 256 KiB |
|
||||||
| `fetch_avatar` | `{client_id: number}` | `/avatar_<uid>` of that visible client (needs `avatar_hash`) | 1 MiB |
|
| `fetch_avatar` | `{client_id: number}` | `/avatar_<uid>` of that visible client (needs `avatar_hash`); myTeamSpeak-only avatar → `external_media` with `detail.urls:[{variant,url}]` | 1 MiB |
|
||||||
| `fetch_banner` | `{channel_id: number}` | file referenced by the channel's `banner_url` | 4 MiB |
|
| `fetch_banner` | `{channel_id: number}` | file referenced by the channel's `banner_url` | 4 MiB |
|
||||||
| `fetch_server_banner` | — | file referenced by `server.hostbanner_gfx_url` | 4 MiB |
|
| `fetch_server_banner` | — | file referenced by `server.hostbanner_gfx_url` | 4 MiB |
|
||||||
|
|
||||||
@@ -255,9 +255,10 @@ Result: `{"mime":"image/png","bytes":108726,"data":"<base64>"}`. `mime` is sniff
|
|||||||
bytes (`image/png|jpeg|gif|webp|x-icon|svg+xml`); anything else → `media_unsupported`.
|
bytes (`image/png|jpeg|gif|webp|x-icon|svg+xml`); anything else → `media_unsupported`.
|
||||||
Render only via `<img>`/canvas (SVG included). Cache by `icon_id` / `avatar_hash` / URL.
|
Render only via `<img>`/canvas (SVG included). Cache by `icon_id` / `avatar_hash` / URL.
|
||||||
|
|
||||||
- Icon ids below 1000 (100, 200, 300, 500, 600 seen live) are TeamSpeak's built-in group
|
- Icon ids 100, 200, 300, 500, 600 are TeamSpeak's default group icons that clients ship;
|
||||||
icons; the server has no file for them (live: error 2054 `FileInvalidPath`), so the core
|
servers have no file for them (verified live for each: error 2054 `FileInvalidPath`), so
|
||||||
answers `not_found` with `detail.builtin:true` without asking. Draw built-in glyphs.
|
the core answers `not_found` with `detail.builtin:true` without asking. Draw built-in
|
||||||
|
glyphs. Every other id is requested from the server.
|
||||||
- Banners: `ts3image://<host>?port=<p>&channel=<cid>&path=<dir>&filename=<name>` references
|
- Banners: `ts3image://<host>?port=<p>&channel=<cid>&path=<dir>&filename=<name>` references
|
||||||
are fetched from that channel's file area on the connected server (port must match;
|
are fetched from that channel's file area on the connected server (port must match;
|
||||||
`..`/backslashes/control characters rejected). `http(s)://` → `external_media` with
|
`..`/backslashes/control characters rejected). `http(s)://` → `external_media` with
|
||||||
@@ -312,7 +313,8 @@ Full replacement of the server view, emitted after connect and after every chang
|
|||||||
"is_channel_commander":false,"is_priority_speaker":false,"is_recording":false,
|
"is_channel_commander":false,"is_priority_speaker":false,"is_recording":false,
|
||||||
"is_streaming":false,"description":null,"country":"RU","server_groups":[7,10],
|
"is_streaming":false,"description":null,"country":"RU","server_groups":[7,10],
|
||||||
"channel_group_id":8,"channel_group_inherited_from":20,"avatar_hash":null,
|
"channel_group_id":8,"channel_group_inherited_from":20,"avatar_hash":null,
|
||||||
"icon_id":null,"badges":null}]}
|
"has_myts":true,"myts_avatars":[{"variant":2,"url":"https://storage.googleapis.com/ts-sys-myts-avatars/…"}],
|
||||||
|
"myts_avatar_unparsed":null,"icon_id":null,"badges":null}]}
|
||||||
```
|
```
|
||||||
|
|
||||||
- `channels` is in display order (pre-order tree walk following TeamSpeak `order`);
|
- `channels` is in display order (pre-order tree walk following TeamSpeak `order`);
|
||||||
@@ -331,7 +333,19 @@ Full replacement of the server view, emitted after connect and after every chang
|
|||||||
label). Group icons are drawn from `icon_id`. `type`: `template|regular|query`.
|
label). Group icons are drawn from `icon_id`. `type`: `template|regular|query`.
|
||||||
- `country`: ISO code or `null` (flag). `description`: client description or `null`.
|
- `country`: ISO code or `null` (flag). `description`: client description or `null`.
|
||||||
`badges`: raw myTeamSpeak badges string (not groups) or `null`.
|
`badges`: raw myTeamSpeak badges string (not groups) or `null`.
|
||||||
- `avatar_hash`: non-null when the client has an avatar (`fetch_avatar`).
|
- Avatars, in the official client's precedence: `avatar_hash` non-null → server-stored avatar
|
||||||
|
(`fetch_avatar`); otherwise `myts_avatars` (TeamSpeak 6 / myTeamSpeak,
|
||||||
|
`client_myteamspeak_avatar` = `<variant>,<https url>`; live: variant 2 on
|
||||||
|
`storage.googleapis.com/ts-sys-myts-avatars/…`, publicly readable without an account,
|
||||||
|
served as `Content-Type: text/plain` but PNG bytes → main must sniff, not trust the
|
||||||
|
header). Multiple pairs are accepted separated by `;`/`|` (only one pair observed). A value
|
||||||
|
the core cannot parse is passed as `myts_avatar_unparsed`. `has_myts` = the client has a
|
||||||
|
myTeamSpeak id (`null` if not sent). Neither set → default avatar.
|
||||||
|
- Deliberately not exposed: `client_user_tag` (live it carries a signed `myts_token` and the
|
||||||
|
account handle) and `client_myteamspeak_id` (account id; only `has_myts`).
|
||||||
|
- Nickname colour: no colour field was observed in `notifycliententerview` on this server
|
||||||
|
(checked `client_user_tag`, `client_integrations`, `client_badges`, `client_signed_badges`,
|
||||||
|
`client_meta_data`); the snapshot has none.
|
||||||
- `is_streaming`: TeamSpeak 6 `client_is_streaming` flag (`null` if the server did not send
|
- `is_streaming`: TeamSpeak 6 `client_is_streaming` flag (`null` if the server did not send
|
||||||
it). Confirm/obtain the stream id with `stream_list`.
|
it). Confirm/obtain the stream id with `stream_list`.
|
||||||
- Channel `banner_url` / `banner_mode` (int) are the TS5/6 channel banner properties,
|
- Channel `banner_url` / `banner_mode` (int) are the TS5/6 channel banner properties,
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
# Gitea CI run #1 — `ci` workflow, commit `7287fdb` (2026-10-24)
|
||||||
|
|
||||||
|
Runner: instance-level runner on git.eeee.moe, label `ubuntu-latest`, job container `node:22-bookworm`
|
||||||
|
(Node 22.23.4, git 2.39.5). Logs fetched through `GET /api/v1/repos/TeamsPeach/client/actions/jobs/{id}/logs`.
|
||||||
|
|
||||||
|
## Job 4843 `linux-x64` — failed at "Core tests"
|
||||||
|
|
||||||
|
Steps before it succeeded: checkout, apt packages, rustup stable, `npm ci`, `npm test` (desktop unit tests).
|
||||||
|
|
||||||
|
```
|
||||||
|
test snapshot::tests::raw_extras_track_banners_and_streaming ... FAILED
|
||||||
|
thread 'snapshot::tests::raw_extras_track_banners_and_streaming' panicked at src/snapshot.rs:358:9:
|
||||||
|
assertion failed: !x.apply(&unrelated)
|
||||||
|
test result: FAILED. 29 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s
|
||||||
|
error: test failed, to rerun pass `--bin teamspeach-core`
|
||||||
|
```
|
||||||
|
|
||||||
|
A core unit test that passes on Windows fails on Linux. Forwarded to the core owner. Later steps
|
||||||
|
(release build, core smoke, Electron UI smoke under Xvfb) did not run.
|
||||||
|
|
||||||
|
## Job 4844 `linux-arm64-cross` — failed at "16 KiB page compatibility", checker bug
|
||||||
|
|
||||||
|
```
|
||||||
|
Finished `release` profile [optimized] target(s) in 1m 19s
|
||||||
|
{"file":"core/target/aarch64-unknown-linux-gnu/release/teamspeach-core","os":"linux","arch":"arm64"}
|
||||||
|
GLIBC_2.34
|
||||||
|
ok aarch64 align=65536 glibc=GLIBC_2.34 core/target/aarch64-unknown-linux-gnu/release/teamspeach-core needs libgcc_s.so.1,libm.so.6,libc.so.6,ld-linux-aarch64.so.1
|
||||||
|
1 ELF files, 0 incompatible with 16384-byte pages
|
||||||
|
ReferenceError: jsonOut is not defined (scripts/elf-pagesize.mjs:104)
|
||||||
|
```
|
||||||
|
|
||||||
|
The core ELF itself passed: every PT_LOAD has `p_align` 65536 (≥ 16384) and `p_offset ≡ p_vaddr (mod 16384)`,
|
||||||
|
which is what the kernel's ELF loader needs to map segments on 16 KiB pages. Highest glibc symbol version
|
||||||
|
is 2.34; dynamic dependencies are only libgcc_s, libm, libc and the aarch64 dynamic loader. The job failed
|
||||||
|
because the checker script lost its `jsonOut` declaration during an edit — fixed in the script; the
|
||||||
|
check itself was not weakened. The qemu identity smoke step did not run in this attempt.
|
||||||
@@ -0,0 +1,94 @@
|
|||||||
|
# teamspeach-core — runtime evidence
|
||||||
|
|
||||||
|
Date: 2026-10-24. Host: Windows 10.0.26100 x64. Sanitized: no private keys, tokens, SDP or
|
||||||
|
foreign user identifiers; the two probe identities are TeamsPeach test identities.
|
||||||
|
|
||||||
|
## Build
|
||||||
|
- Rust via user-scoped rustup (`rustc 1.99.1`, `x86_64-pc-windows-msvc`), VS 18 MSVC 14.51,
|
||||||
|
VS 18 CMake 4.3.1. WSL2 is unusable on this host (`HCS_E_HYPERV_NOT_INSTALLED`).
|
||||||
|
- tsclientlib vendored at `ee3bc6f45a7137db7793ba5593a321df400d53e5`; `core/vendor/tsclientlib.patch`
|
||||||
|
checked: `git apply -p1` on upstream's crate reproduces the vendored tree exactly.
|
||||||
|
- Debug and release builds succeed with `-j 2`. At full parallelism the host ran out of commit
|
||||||
|
memory (`link.exe 0xc000012d`, LNK1201/LNK1105, rustc ICE) — environment, not code.
|
||||||
|
- Linux/macOS/arm64: not verified by the core worker (CI run #1 on Linux x64 failed one unit test
|
||||||
|
because it built a mid-edit tree; see "CI" below).
|
||||||
|
|
||||||
|
## Tests (`cargo test`, Windows) — 33 unit + 3 offline stdio smoke, all pass
|
||||||
|
- Identity: create → rename ×3 → "restart" (fresh store): UID, key and key offset unchanged,
|
||||||
|
`identity.json` bytes unchanged by rename; corrupt/tampered identity → `identity_corrupt`,
|
||||||
|
file bytes untouched, `profile_create` refuses; UID/key mismatch detected; two generated
|
||||||
|
identities differ; nickname rules; corrupt profile; key-offset upgrade keeps UID and rejects a
|
||||||
|
foreign key; TeamSpeak ini export/import roundtrip; owner-only permissions (Windows protected
|
||||||
|
DACL `D:P(A;;FA;;;<current user SID>)`, Unix `0600`).
|
||||||
|
- Protocol: TeamSpeak escaping exact bytes (`\s \p \/ \\ \n \t \r \v \f`), `streamsignaling`
|
||||||
|
JSON roundtrip, multi-entry split, empty value as flag, stream allowlist; request parsing
|
||||||
|
(unknown args/commands, ids), base64 PCM frame size checks, stdin 256 KiB line cap.
|
||||||
|
- Audio: Opus Voice and Opus Music encode → server-style S2C packet → jitter buffer/decode → mix
|
||||||
|
energy and end-of-voice; TX queue drops oldest; 1000 repeated `audio_end` coalesce to one;
|
||||||
|
alternating bursts under overflow stay ≤ 21 entries, keep the newest 10 frames, every burst
|
||||||
|
still terminated; codec-error report re-armed after reset.
|
||||||
|
- Raw extras: banner/`client_is_streaming` parsing; recycled client id and recycled/deleted
|
||||||
|
channel id do not inherit values; explicit clearing; myTeamSpeak avatar parsing (https only).
|
||||||
|
- Media: image sniffing, fixed path schemes, `ts3image://` validation (port, `..`, `/`, control
|
||||||
|
characters).
|
||||||
|
- Stdio smoke of the real binary: profile lifecycle + restart UID stable; second instance on the
|
||||||
|
same data dir exits 3; errors surfaced (`unknown_command`, `not_connected`, `audio_format`);
|
||||||
|
export while running + import into a fresh dir (same UID, overwrite refused); corrupt identity
|
||||||
|
reported and left untouched; stdin EOF → exit 0; the stored private key and the exported
|
||||||
|
(obfuscated) key never appear on stdout.
|
||||||
|
|
||||||
|
## Live — server 10.10.10.160:9987, TeamSpeak `6.0.0-beta13.1 [Build: 1790080330]`
|
||||||
|
1. New identity `TeamsPeach-Probe` (UID `JYFKLvJio5Rsl5v4ikdGajb+cow=`, level 9) connects without
|
||||||
|
a password in 1.06 s (release build 1.01 s), muted; after `channelsubscribeall` the snapshot
|
||||||
|
shows clients in all channels; `disconnect` → `{"clean":true}`; exit 0.
|
||||||
|
2. Independent identity `TeamsPeach-Probe-B` (UID `RDFmfujXKiY89f0Cyiu9HTUNk5o=`, level 8) also
|
||||||
|
connects without a password.
|
||||||
|
3. Screen-share discovery (no join, no audio): `requeststreaminfo` per occupant of the demo
|
||||||
|
channel → all answered `ok`, one `notifystreaminfo` each, captured via the vendored patch.
|
||||||
|
Streaming client item keys: `id` (UUID), `clid`, `name`, `type=2`, `mode=1`, `accessibility=1`,
|
||||||
|
`audio=0`, `bitrate=36224`, `viewer=0`, `viewer_limit=0`, `return_code`; non-streamers: only
|
||||||
|
`return_code`. End-to-end WebRTC viewing through this core was verified by the desktop worker.
|
||||||
|
4. Voice loop between the two probes in an existing, empty channel (0 other occupants re-checked
|
||||||
|
before each transmission; nothing sent in the demo channel), 50 × 20 ms synthetic sine:
|
||||||
|
- A→B 440 Hz: 50/50 frames, estimated 439.0 Hz, RMS 4226 (ideal 4243), first audio after
|
||||||
|
24 ms, `speakers=[A]`, `talking` true→false, sender `transmitting` true→false, no errors.
|
||||||
|
- B→A 660 Hz: 50/50 frames, 659.5 Hz, RMS 4234, first audio after 34 ms.
|
||||||
|
- Channel text as guest → `server_error`, ts_error `2568 PermissionsClientInsufficient`,
|
||||||
|
`missing_permission 224` (server permission). Private text: sender and recipient each got
|
||||||
|
exactly one `text` event with `to_client_id`.
|
||||||
|
- `rename` while connected: server shows the new name, UID unchanged; renamed back.
|
||||||
|
- Both clean disconnects. The server listed A as `TeamsPeach-Probe1` (nickname collision with
|
||||||
|
another session; the server appends digits).
|
||||||
|
5. Metadata (read-only): 20 server groups and 8 channel groups with names, icon ids and
|
||||||
|
`name_mode`. The labels shown next to nicknames in the user's screenshot are server groups with
|
||||||
|
`name_mode:"after"` (client with groups `[7,10]` → group 10; client with `[6,7,16]` →
|
||||||
|
group 16). All 11 channels carry an icon id and `channel_banner_gfx_url` =
|
||||||
|
`ts3image://<host>?port=9987&channel=1&path=…&filename=…`, `channel_banner_mode=2`
|
||||||
|
(tsclientlib's book drops banners; read via the raw tap). One client has `country=RU`.
|
||||||
|
`client_is_streaming` is sent in every enter-view.
|
||||||
|
6. Avatars: `client_flag_avatar` is empty for every client on this server. TeamSpeak 6 sends
|
||||||
|
`client_myteamspeak_avatar`; the client shown with a picture avatar had
|
||||||
|
`2,https://storage.googleapis.com/ts-sys-myts-avatars/<uuid>/<n>`; a client with a myTeamSpeak
|
||||||
|
id but the default avatar had an empty value. That URL is public: HEAD → 200, no
|
||||||
|
authentication, `Content-Type: text/plain`, but the first bytes are a PNG signature
|
||||||
|
(277×277). Snapshot exposes `myts_avatars`; `fetch_avatar` answers `external_media` with the
|
||||||
|
URL(s) (main fetches and sniffs). Not done: an actual download through main.
|
||||||
|
`client_user_tag` carries a signed `myts_token` plus the account handle — never exposed.
|
||||||
|
Nickname colour: no colour field in enter-view (`client_user_tag`, `client_integrations`,
|
||||||
|
`client_badges`, `client_signed_badges`, `client_meta_data` checked).
|
||||||
|
7. Media over file transfer: 7 custom icons → `image/png` 2978–7850 B. Built-in ids
|
||||||
|
100/200/300/500/600 → server error 2054 `FileInvalidPath` for each, so the core answers those
|
||||||
|
exact ids locally (`not_found`, `builtin`). `fetch_banner` → PNG 108726 B and 105455 B;
|
||||||
|
`fetch_server_banner` → GIF 1613042 B. Repeated with the release build: same results.
|
||||||
|
|
||||||
|
## CI
|
||||||
|
- Gitea run #1 (commit `7287fdb`, Debian bookworm, Linux x64): `cargo test` 29 passed, 1 failed
|
||||||
|
(`raw_extras_track_banners_and_streaming`). Cause: the commit captured the core tree in the middle
|
||||||
|
of the raw-extras lifecycle change (new code, old assertion). The current tree passes on Windows;
|
||||||
|
Linux not yet re-run.
|
||||||
|
|
||||||
|
## Not verified
|
||||||
|
Server-stored avatar download (none on this server), automatic reconnect after a timeout,
|
||||||
|
kick/ban reasons, server-forced identity level upgrade, Opus Music channels live (unit tests only),
|
||||||
|
Speex/CELT error path live, importing an official TeamSpeak client export, Linux/macOS/arm64 builds
|
||||||
|
and tests.
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 149 KiB After Width: | Height: | Size: 161 KiB |
@@ -11,7 +11,7 @@
|
|||||||
],
|
],
|
||||||
"groupIconImages": 6,
|
"groupIconImages": 6,
|
||||||
"builtinBadges": 2,
|
"builtinBadges": 2,
|
||||||
"avatars": 0,
|
"avatars": 1,
|
||||||
"countries": [
|
"countries": [
|
||||||
"RU"
|
"RU"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ const argv = process.argv.slice(2);
|
|||||||
const pi = argv.indexOf('--page');
|
const pi = argv.indexOf('--page');
|
||||||
const PAGE = pi >= 0 ? Number(argv[pi + 1]) : 16384;
|
const PAGE = pi >= 0 ? Number(argv[pi + 1]) : 16384;
|
||||||
const ji = argv.indexOf('--json');
|
const ji = argv.indexOf('--json');
|
||||||
|
const jsonOut = ji >= 0 ? argv[ji + 1] : null;
|
||||||
const valueIdx = new Set([pi, ji].filter((i) => i >= 0).map((i) => i + 1));
|
const valueIdx = new Set([pi, ji].filter((i) => i >= 0).map((i) => i + 1));
|
||||||
const inputs = argv.filter((a, i) => !a.startsWith('--') && !valueIdx.has(i));
|
const inputs = argv.filter((a, i) => !a.startsWith('--') && !valueIdx.has(i));
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user