Add proxy example (#141) (#175)

* cleanup

* add proxy example
This commit is contained in:
Alessandro Ros
2023-01-23 11:23:16 +01:00
committed by GitHub
parent 82dac32f6e
commit 7b6a5f8cb3
16 changed files with 313 additions and 78 deletions

14
examples/proxy/main.go Normal file
View File

@@ -0,0 +1,14 @@
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)
}