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_menu_item ¶
type Channel_menu_item struct {}
type Channel_menu_st ¶
type Channel_menu_st struct {}
type MenuSender ¶
type MenuSender struct {
// contains filtered or unexported fields
}
func NewMenuSender ¶
func NewMenuSender(infos []*channel_context_st) MenuSender
func (MenuSender) Send ¶
func (snder MenuSender) Send(conn *net.UDPConn)
Click to show internal directories.
Click to hide internal directories.