Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
818 B · 32 lines
Go
123456789101112131415161718192021222324252627282930313233// Code generated by glex; DO NOT EDIT.
// Lexicon schema: place.stream.playback.whep
package placestream
import ( "bytes" "context" "io"
glex "github.com/streamplace/glex/runtime")
// PlaybackWhep calls the XRPC method "place.stream.playback.whep".//// Play a stream over WebRTC using WHEP.//// rendition: The rendition of the stream to play.// streamer: The DID of the streamer to play.func PlaybackWhep(ctx context.Context, c glex.LexClient, rendition string, streamer string, input io.Reader) ([]byte, error) { buf := new(bytes.Buffer)
params := map[string]interface{}{} params["rendition"] = rendition params["streamer"] = streamer
if err := c.LexDo(ctx, glex.Procedure, "*/*", "place.stream.playback.whep", params, input, buf); err != nil { return nil, err } return buf.Bytes(), nil}