mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-03 09:52:50 +08:00
Browser: watch a TS6 stream
Adds web/src/stream.ts, the receive-only RTCPeerConnection that takes TS6's SDP offer out of notifyrespondjoinstreamrequest, trickles ICE both ways over notifystreamsignaling and hands the remote MediaStream back. App.tsx only wires it up: a client with client_is_streaming gets a requeststreaminfo (that property is the *only* way a late joiner learns a stream is running), a badge in the tree, a context-menu entry and a floating video panel. Also adds the missing requestStreamInfo path in the gateway - the connector already had `streaminfo <clid>` on stdin, nothing could reach it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
1 parent
11a413d2b6
commit
6107501445
7 files changed
+537
-2
No files matched your search
@@ -108,6 +108,11 @@ struct ClientInfo {
|
||||
/// ServerQuery client (`ClientType::Query`). Always included in the
|
||||
/// snapshot; the UI hides these unless the user enables them per favorite.
|
||||
is_query: bool,
|
||||
/// Whether this client is broadcasting a TS6 Stream/Call right now. This is
|
||||
/// the only way a client that joins late learns a stream exists - the server
|
||||
/// sends no stream command in that case, so the id has to be fetched with
|
||||
/// `requeststreaminfo`. Always `false` on servers that don't report it.
|
||||
is_streaming: bool,
|
||||
}
|
||||
|
||||
/// Payload for the "serveredit " stdin command - every field is optional so
|
||||
@@ -621,6 +626,7 @@ fn snapshot(con: &data::Connection) -> Event {
|
||||
server_groups: c.server_groups.iter().map(|g| g.0).collect(),
|
||||
has_talk_power,
|
||||
is_query: matches!(c.client_type, ClientType::Query { .. }),
|
||||
is_streaming: c.is_streaming.unwrap_or(false),
|
||||
}
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
Reference in new issue
Block a user