web.livekit #
struct LiveKitRoom #
struct LiveKitRoom {
pub mut:
server_url string
token string
audio bool
video bool
screen bool
connect bool = true
options RoomOptions
connect_options RoomConnectOptions
simulate_participants int
feature_flags map[string]bool
// room Room
}
fn (LiveKitRoom) html #
fn (lk LiveKitRoom) html() string
Method to return the HTML string
struct PublishDefaults #
struct PublishDefaults {
pub mut:
dtx bool
simulcast bool
video_codec string
}
struct RoomConnectOptions #
struct RoomConnectOptions {
pub mut:
auto_subscribe bool
reconnect_attempts int
reconnect_timeout int
}
struct RoomOptions #
struct RoomOptions {
pub mut:
auto_subscribe bool
adaptive_stream bool
dynacast bool
video_capture_defaults VideoCaptureOptions
publish_defaults PublishDefaults
}
struct VideoCaptureOptions #
struct VideoCaptureOptions {
pub mut:
device_id string
resolution string
}