示例#1
0
文件: client.go 项目: vchimishuk/chub
func (c *Client) playlists() []string {
	plists := c.player.Playlists()
	lines := make([]string, 0, len(plists))
	for _, pl := range plists {
		lines = append(lines, serialize.Playlist(pl))
	}

	return lines
}
示例#2
0
文件: client.go 项目: vchimishuk/chub
func (c *Client) playlists(plists []*player.Playlist) {
	for _, pl := range plists {
		c.conn.WriteLine(serialize.Playlist(pl))
	}
}