niconico

package
v0.0.0-...-1e93fd1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK = iota
	INTERRUPT
	MAIN_WS_ERROR
	MAIN_DISCONNECT
	MAIN_END_PROGRAM
	MAIN_INVALID_STREAM_QUALITY
	MAIN_TEMPORARILY_ERROR
	PLAYLIST_END
	PLAYLIST_403
	PLAYLIST_ERROR
	DELAY
	COMMENT_WS_ERROR
	COMMENT_SAVE_ERROR
	COMMENT_DONE
	GOT_SIGNAL
	ERROR_SHUTDOWN
	NETWORK_ERROR
)

return code

Variables

View Source
var SelComment = `` /* 298-byte string literal not displayed */
View Source
var SelMedia = `SELECT
	seqno, bandwidth, size, data FROM media
	WHERE IFNULL(notfound, 0) == 0 AND data IS NOT NULL
	ORDER BY seqno`

Functions

func NicoLogin

func NicoLogin(opt options.Option) (err error)

func NicoRecHls

func NicoRecHls(opt options.Option) (done, playlistEnd, notLogin, reserved bool, dbName string, err error)

func NicoRecRtmp

func NicoRecRtmp(opt options.Option) (notLogin bool, err error)

func Record

func Record(opt options.Option) (hlsPlaylistEnd bool, dbName string, err error)

func TestRun

func TestRun(opt options.Option) (err error)

func WriteComment

func WriteComment(db *sql.DB, fileName string, skipHb bool)

Types

type Content

type Content struct {
	Id   string `xml:"id,attr"`
	Text string `xml:",chardata"`
}

type NicoHls

type NicoHls struct {
	NicoSession string
	// contains filtered or unexported fields
}

func NewHls

func NewHls(opt options.Option, prop map[string]interface{}) (hls *NicoHls, err error)

func (*NicoHls) Close

func (hls *NicoHls) Close()

func (*NicoHls) IncrInterrupt

func (hls *NicoHls) IncrInterrupt()

func (*NicoHls) Wait

func (hls *NicoHls) Wait(testTimeout, hlsPort int)

type OBJ

type OBJ = map[string]interface{}

type Status

type Status struct {
	Title                 string    `xml:"stream>title"`
	CommunityId           string    `xml:"stream>default_community"`
	Id                    string    `xml:"stream>id"`
	Provider              string    `xml:"stream>provider_type"`
	IsArchive             bool      `xml:"stream>archive"`
	IsArchivePlayerServer bool      `xml:"stream>is_archiveplayserver"`
	Ques                  []string  `xml:"stream>quesheet>que"`
	Contents              []Content `xml:"stream>contents_list>contents"`
	IsPremium             bool      `xml:"user>is_premium"`
	Url                   string    `xml:"rtmp>url"`
	Ticket                string    `xml:"rtmp>ticket"`
	Tickets               []Tickets `xml:"tickets>stream"`
	ErrorCode             string    `xml:"error>code"`
	// contains filtered or unexported fields
}

type Stream

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

type Tickets

type Tickets struct {
	Name string `xml:"name,attr"`
	Text string `xml:",chardata"`
}

Jump to

Keyboard shortcuts

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