xiaomi

package
v1.9.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(rawURL string) (core.Producer, error)

func TimeToRTP

func TimeToRTP(timeMS, clockRate uint64) uint32

TimeToRTP convert time in milliseconds to RTP time

Types

type Cloud

type Cloud struct {
	// contains filtered or unexported fields
}

func NewCloud

func NewCloud(sid string) *Cloud

func (*Cloud) Login

func (c *Cloud) Login(username, password string) error

func (*Cloud) LoginWithCaptcha

func (c *Cloud) LoginWithCaptcha(captcha string) error

func (*Cloud) LoginWithToken

func (c *Cloud) LoginWithToken(userID, passToken string) error

func (*Cloud) LoginWithVerify

func (c *Cloud) LoginWithVerify(ticket string) error

func (*Cloud) Request

func (c *Cloud) Request(baseURL, apiURL, params string, headers map[string]string) ([]byte, error)

func (*Cloud) UserToken

func (c *Cloud) UserToken() (string, string)

type LoginError

type LoginError struct {
	Captcha     []byte `json:"captcha,omitempty"`
	VerifyPhone string `json:"verify_phone,omitempty"`
	VerifyEmail string `json:"verify_email,omitempty"`
}

func (*LoginError) Error

func (l *LoginError) Error() string

type Producer

type Producer struct {
	core.Connection
	// contains filtered or unexported fields
}

func (*Producer) AddTrack

func (p *Producer) AddTrack(media *core.Media, _ *core.Codec, track *core.Receiver) error

func (*Producer) Start

func (p *Producer) Start() error

type Request

type Request struct {
	Method     string
	URL        string
	RawParams  string
	RawBody    string
	Headers    url.Values
	RawCookies string
}

func (Request) Encode

func (r Request) Encode() *http.Request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL