// 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 }