medialib

package
v0.0.0-...-6144582 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CHANNEL_MENU_ID = 0
	MP3_BITRATE     = 320 * 1024
)
View Source
const (
	DEFAULT_PORT      = "1989"
	DEFAULT_MGROUP    = "224.2.2.2"
	DEFAULT_PLAYERCMD = "mpg123"
	DEFAULT_MEDIADIR  = "/home/hzx/tmp/media"
	DEFAULT_IF        = "bridge0"
	RUN_FOREGROUND    = false
)

Variables

View Source
var Server_conf = &Server_conf_st{
	Rcvport:   DEFAULT_PORT,
	Mgroup:    DEFAULT_MGROUP,
	Media_dir: DEFAULT_MEDIADIR,
	Ifname:    DEFAULT_IF,
	Runmode:   RUN_FOREGROUND,
}

Functions

func GetChannelInfo

func GetChannelInfo() []*channel_context_st

Types

type ChannelSender

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

func NewChannelSender

func NewChannelSender(chninfo *channel_context_st) ChannelSender

func (ChannelSender) Send

func (snder ChannelSender) Send(conn *net.UDPConn)

type Channel_Data

type Channel_Data struct {
	Id   uint8
	Data []byte
}

type Channel_menu_item

type Channel_menu_item struct {
	Id   uint8
	Desc string
}

type Channel_menu_st

type Channel_menu_st struct {
	Id           uint8
	ChannelMenus []Channel_menu_item
}
type MenuSender struct {
	// contains filtered or unexported fields
}

func NewMenuSender

func NewMenuSender(infos []*channel_context_st) MenuSender
func (snder MenuSender) Send(conn *net.UDPConn)

type Server_conf_st

type Server_conf_st struct {
	Rcvport   string
	Mgroup    string
	Media_dir string
	Runmode   bool
	Ifname    string
}

Jump to

Keyboard shortcuts

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