Remon

package
v0.0.0-...-40f0d38 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceId string
	Key       string
}

type Observer

type Observer interface {
	OnInit(token string)
	OnCreate(channelId string)
	//OnJoin()
	//OnConnect(channelId string)
	OnComplete()
	OnClose()
	OnError(err error)
}

Observer : Remon Observer interface

type Remon

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

func New

func New(config Config, observer Observer) *Remon

func (*Remon) Close

func (rm *Remon) Close()

func (*Remon) CreateCast

func (rm *Remon) CreateCast(name string) error

CreateCast : create cast

func (*Remon) FetchCasts

func (rm *Remon) FetchCasts() ([]Room, error)

FetchCasts retrieve all broadcast rooms information

func (*Remon) JoinCast

func (rm *Remon) JoinCast(roomID string) error

JoinCast :

func (*Remon) WriteAudio

func (rm *Remon) WriteAudio(data []byte, timestamp uint64, duration float64)

func (*Remon) WriteVideo

func (rm *Remon) WriteVideo(data []byte, timestamp uint64, duration float64)

type Room

type Room struct {
	Id        string `json:"id"`
	ServiceId string `json:"serviceId"`
	Name      string `json:"name"`
	Status    string `json:"status"`
}

Jump to

Keyboard shortcuts

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