roomsmodel

package
v0.0.0-...-aeec266 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Room

type Room struct {
	ID       int
	Name     string
	Username string
	Streams  []VideoStream
}

Room represents presence room info.

func (*Room) FromBytes

func (r *Room) FromBytes(buf *bytes.Buffer) error

FromBytes deserializes a Room entiry from its binary representation.

func (*Room) ToBytes

func (r *Room) ToBytes(buf *bytes.Buffer) error

ToBytes converts a Room entiry to its binary representation.

type RoomType

type RoomType int

RoomType represents a room type.

const (
	// Normal represents a normal room.
	Normal RoomType = iota + 1
	// QC represents a QC room.
	QC
)

func (RoomType) String

func (tt RoomType) String() string

type VideoStream

type VideoStream struct {
	In        string
	Broadcast string
	Stream    string

	Route  string
	Type   VideoType
	RoomID int
}

VideoStream represents presence video stream info.

func (*VideoStream) FromBytes

func (v *VideoStream) FromBytes(buf *bytes.Buffer) error

FromBytes deserializes a VideoStream entiry from its binary representation.

func (*VideoStream) ToBytes

func (v *VideoStream) ToBytes(buf *bytes.Buffer) error

ToBytes converts a VideoStream entiry to its binary representation.

type VideoType

type VideoType int

VideoType represents a video stream type.

const (
	// Unknown represents a unknown video type.
	Unknown VideoType = iota
	// Box represents a video encoding/decoding box.
	Box
	// Device represents a device video stream.
	Device
	// Camera represents a device video stream.
	Camera
)

func ParseVideoTypeString

func ParseVideoTypeString(t string) VideoType

ParseVideoTypeString convert a string to VideoType.

func (VideoType) String

func (tt VideoType) String() string

Jump to

Keyboard shortcuts

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