Documentation ¶
Index ¶
- Constants
- Variables
- func NicoLogin(opt options.Option) (err error)
- func NicoRecHls(opt options.Option) (done, playlistEnd, notLogin, reserved bool, dbName string, err error)
- func NicoRecRtmp(opt options.Option) (notLogin bool, err error)
- func Record(opt options.Option) (hlsPlaylistEnd bool, dbName string, err error)
- func TestRun(opt options.Option) (err error)
- func WriteComment(db *sql.DB, fileName string, skipHb bool)
- type Content
- type NicoHls
- type OBJ
- type Status
- type Stream
- type Tickets
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 NicoRecHls ¶
Types ¶
type NicoHls ¶
type NicoHls struct { NicoSession string // contains filtered or unexported fields }
func (*NicoHls) IncrInterrupt ¶
func (hls *NicoHls) IncrInterrupt()
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 }
Click to show internal directories.
Click to hide internal directories.