model

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PlatAndroid is int8 for android.
	PlatAndroid = int8(0)
	// PlatIPhone is int8 for iphone.
	PlatIPhone = int8(1)
	// PlatIPad is int8 for ipad.
	PlatIPad = int8(2)
	// PlatWPhone is int8 for wphone.
	PlatWPhone = int8(3)
	// PlatAndroidG is int8 for Android Global.
	PlatAndroidG = int8(4)
	// PlatIPhoneI is int8 for Iphone Global.
	PlatIPhoneI = int8(5)
	// PlatIPadI is int8 for IPAD Global.
	PlatIPadI = int8(6)
	// PlatAndroidTV is int8 for AndroidTV Global.
	PlatAndroidTV = int8(7)
	// PlatAndroidI is int8 for Android Global.
	PlatAndroidI = int8(8)
	// PlatIpadHD is int8 for IpadHD
	PlatIpadHD = int8(9)
	// PlatAndroidB is int8 for Android Blue.
	PlatAndroidB = int8(10)
	// PlatIphoneB is int8 for Iphone Blue
	PlatIphoneB = int8(11)
)

Variables

This section is empty.

Functions

func IsAndroid

func IsAndroid(plat int8) bool

IsAndroid check plat is android or ipad.

func IsIOS

func IsIOS(plat int8) bool

IsIOS check plat is iphone or ipad.

func IsIPad

func IsIPad(plat int8) bool

IsIPad check plat is pad.

func IsIPadHD

func IsIPadHD(plat int8) bool

IsIPadHD check plat is padHD.

func IsIphone

func IsIphone(plat int8) bool

IsIphone check plat is iphone.

func IsOverseas

func IsOverseas(plat int8) bool

IsOverseas is overseas

func Plat

func Plat(mobiApp, device string) int8

Plat return plat by platStr or mobiApp

Types

type Dash

type Dash struct {
	Video []*DashItem `json:"video"`
	Audio []*DashItem `json:"audio"`
}

Dash is

type DashItem

type DashItem struct {
	ID           int64    `json:"id"`
	BaseURL      string   `json:"base_url"`
	BackupURL    []string `json:"backup_url,omitempty"`
	BaseURLRes   string   `json:"baseUrl,omitempty"`
	BackupURLRes []string `json:"backupUrl,omitempty"`
	Bandwidth    int64    `json:"bandwidth"`
	Codecid      int64    `json:"codecid"`
}

DashItem is

type Durl

type Durl struct {
	Order     int      `json:"order"`
	Length    int64    `json:"length"`
	Size      int64    `json:"size"`
	AHead     string   `json:"ahead,omitempty"`
	VHead     string   `json:"vhead,omitempty"`
	URL       string   `json:"url"`
	BackupURL []string `json:"backup_url,omitempty"`
}

Durl is

type Param

type Param struct {
	AID       int64  `form:"aid"`
	CID       int64  `form:"cid"`
	Qn        int64  `form:"qn"`
	Npcybs    int    `form:"npcybs"`
	Otype     string `form:"otype"`
	MobiApp   string `form:"mobi_app"`
	Fnver     int    `form:"fnver"`
	Fnval     int    `form:"fnval"`
	Session   string `form:"session"`
	Build     int    `form:"build"`
	Device    string `form:"device"`
	ForceHost int    `form:"force_host"`
}

Param is

type Playurl

type Playurl struct {
	From              string   `json:"from"`
	Result            string   `json:"result"`
	Quality           int64    `json:"quality"`
	Format            string   `json:"format"`
	Timelength        int64    `json:"timelength"`
	AcceptFormat      string   `json:"accept_format"`
	AcceptDescription []string `json:"accept_description,omitempty"`
	AcceptQuality     []int64  `json:"accept_quality"`
	VideoCodecid      int      `json:"video_codecid"`
	Fnver             int      `json:"fnver"`
	Fnval             int      `json:"fnval"`
	VideoProject      bool     `json:"video_project"`
	SeekParam         string   `json:"seek_param"`
	SeekType          string   `json:"seek_type"`
	Abtid             int      `json:"abtid,omitempty"`
	Durl              []*Durl  `json:"durl,omitempty"`
	Dash              *Dash    `json:"dash,omitempty"`
}

Playurl is http://git.bilibili.co/video/playurl_doc/blob/master/PlayurlV2%E6%8E%A5%E5%8F%A3%E6%96%87%E6%A1%A3.md

func (*Playurl) FormatDash

func (p *Playurl) FormatDash()

FormatDash dash 驼峰 -> 下划线

Directories

Path Synopsis
Package archive is a generated protocol buffer package.
Package archive is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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