mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
15 lines
342 B
Go
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)
|
|
}
|