代码拉取完成,页面将自动刷新
package main
import "log"
// This example shows how to
// 1. create a server that serves a single stream.
// 2. create a client, read an existing stream from an external server or camera,
// pass the stream to the server in order to serve it.
func main() {
// allocate the server.
s := &server{}
s.initialize()
// allocate the client.
// give client access to the server.
c := &client{s: s}
c.initialize()
// start server and wait until a fatal error
log.Printf("server is ready")
s.s.StartAndWait()
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。