Live video on the AT Protocol
1package spxrpc
2
3import (
4 "context"
5 "fmt"
6
7 placestreamtypes "stream.place/streamplace/pkg/streamplace"
8)
9
10func (s *Server) handlePlaceStreamBroadcastGetBroadcaster(ctx context.Context) (*placestreamtypes.BroadcastGetBroadcaster_Output, error) {
11 broadcaster := fmt.Sprintf("did:web:%s", s.cli.BroadcasterHost)
12 server := fmt.Sprintf("did:web:%s", s.cli.ServerHost)
13 return &placestreamtypes.BroadcastGetBroadcaster_Output{
14 Broadcaster: broadcaster,
15 Server: &server,
16 Admins: s.cli.AdminDIDs,
17 }, nil
18}