mirror of
https://github.com/aler9/gortsplib
synced 2025-10-15 11:40:55 +08:00
14
examples/proxy/main.go
Normal file
14
examples/proxy/main.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user