Free, open-source screen sharing for private live streams with friends. Watch together in a browser or self-host Piik. 免费开源的私密屏幕共享,支持游戏直播、一起看电影与自部署。
// Package route owns synchronous decisions over one room's media route graph, its
// single in-flight route operation, the quality/opportunity ledgers and the
// privacy-safe diagnostic snapshot.
//
// The controller starts no timers, never locks and returns resource effects
// to its caller. Optional diagnostics invoke the injected sink synchronously.
// Every method is a state transition over the nowMs the caller passes in; the
// caller (signal.Server) holds the global mutex around every call and
// releases exactly the *Resource values a method returns, in order.
//
// Resources are compared by pointer identity. Invalid graphs, reservations or
// constructor options are programming errors and panic; ordinary unavailable
// routes remain decision outcomes.
package route