(mime string, id string, label string, opts ...AddTrackOption)
| 960 | } |
| 961 | |
| 962 | func (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 | |
| 966 | func (c *RTCClient) AddStaticTrackWithCodec(codec webrtc.RTPCodecCapability, id string, label string, opts ...AddTrackOption) (writer TrackWriter, err error) { |
| 967 | track, err := webrtc.NewTrackLocalStaticSample(codec, id, label) |