MCPcopy
hub / github.com/livekit/livekit / AddStaticTrack

Method AddStaticTrack

test/client/client.go:962–964  ·  view source on GitHub ↗
(mime string, id string, label string, opts ...AddTrackOption)

Source from the content-addressed store, hash-verified

960}
961
962func (c *RTCClient) AddStaticTrack(mime string, id string, label string, opts ...AddTrackOption) (writer TrackWriter, err error) {
963 return c.AddStaticTrackWithCodec(webrtc.RTPCodecCapability{MimeType: mime}, id, label, opts...)
964}
965
966func (c *RTCClient) AddStaticTrackWithCodec(codec webrtc.RTPCodecCapability, id string, label string, opts ...AddTrackOption) (writer TrackWriter, err error) {
967 track, err := webrtc.NewTrackLocalStaticSample(codec, id, label)

Calls 1