Files
gortsplib/examples/proxy/main.go
Alessandro Ros 7b6a5f8cb3 Add proxy example (#141) (#175)
* cleanup

* add proxy example
2023-01-23 11:23:16 +01:00

15 lines
342 B
Go

package main
// This example shows how to
// 1. read an existing stream from an external server or camera, with a client
// 2. create a server that allow to proxy that stream
func main() {
// allocate the client
c := newClient()
// allocate the server.
// give server access to the method client.getStream().
newServer(c.getStream)
}