v2dm

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(base *base.Base) *API

func (*API) WebSeg

func (a *API) WebSeg(opt WebSegOpt) (*dm.DmSegMobileReply, error)

获取实时弹幕(网页)新 https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/danmaku/danmaku_proto.md#获取实时弹幕

type WebSegOpt

type WebSegOpt struct {
	Type         int   `url:"type"`          // 弹幕类: 1: 视频弹幕
	Oid          int64 `url:"oid"`           // 视频 cid
	Pid          int   `url:"pid,omitempty"` // 稿件 avid
	SegmentIndex int   `url:"segment_index"` // 分包, 6分钟一包
}

Jump to

Keyboard shortcuts

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