mirror of
https://github.com/wx-chevalier/screen-sharing-rdp.git
synced 2025-10-15 21:00:39 +08:00
22 lines
393 B
Go
22 lines
393 B
Go
package rtc
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
type videoStreamer interface {
|
|
start()
|
|
close()
|
|
}
|
|
|
|
// RemoteScreenConnection Represents a WebRTC connection to a single peer
|
|
type RemoteScreenConnection interface {
|
|
io.Closer
|
|
ProcessOffer(offer string) (string, error)
|
|
}
|
|
|
|
// Service WebRTC service
|
|
type Service interface {
|
|
CreateRemoteScreenConnection(screenIx int, fps int) (RemoteScreenConnection, error)
|
|
}
|