Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioPacket ¶
AudioPacket represents an audio packet
func ReadAudioPacket ¶
func ReadAudioPacket(reader io.Reader) (*AudioPacket, error)
ReadAudioPacket reads an audio packet from the stream
type ControlMessage ¶
ControlMessage represents a control message
type DeviceMeta ¶
DeviceMeta contains device metadata
func ReadDeviceMeta ¶
func ReadDeviceMeta(conn io.Reader) (*DeviceMeta, error)
ReadDeviceMeta reads device metadata from connection
type ScrcpyConnection ¶
type ScrcpyConnection struct {
Listener net.Listener // Made public to match scrcpy-proxy
// contains filtered or unexported fields
}
ScrcpyConnection handles the actual scrcpy server connection
func NewScrcpyConnection ¶
func NewScrcpyConnection(deviceSerial string, scid uint32) *ScrcpyConnection
NewScrcpyConnection creates a new scrcpy connection handler
func NewScrcpyConnectionWithMode ¶
func NewScrcpyConnectionWithMode(deviceSerial string, scid uint32, streamingMode string) *ScrcpyConnection
NewScrcpyConnectionWithMode creates a new scrcpy connection handler with specific streaming mode
func (*ScrcpyConnection) Close ¶
func (sc *ScrcpyConnection) Close() error
Close closes the scrcpy connection
type VideoPacket ¶
VideoPacket represents a video packet
func ReadVideoPacket ¶
func ReadVideoPacket(reader io.Reader) (*VideoPacket, error)
ReadVideoPacket reads a video packet from the stream
Click to show internal directories.
Click to hide internal directories.