@lzwme/m3u8-dl
Home
M3U8在线播放器
Preparing search index...
VideoParser
Class VideoParser
Index
Constructors
constructor
Methods
download
get
Supported
Platforms
parse
get
Platform
Constructors
constructor
new
VideoParser
()
:
VideoParser
Returns
VideoParser
Methods
download
download
(
url
:
string
,
options
:
M3u8DLOptions
)
:
Promise
<
M3u8DLResult
>
Parameters
url
:
string
options
:
M3u8DLOptions
Returns
Promise
<
M3u8DLResult
>
get
Supported
Platforms
getSupportedPlatforms
()
:
string
[]
获取所有支持的平台列表
Returns
string
[]
parse
parse
(
url
:
string
,
headers
?:
Record
<
string
,
string
>
,
)
:
Promise
<
ApiResponse
<
VideoInfo
>
>
解析视频 URL
Parameters
url
:
string
headers
:
Record
<
string
,
string
>
= {}
Returns
Promise
<
ApiResponse
<
VideoInfo
>
>
Static
get
Platform
getPlatform
(
url
:
string
)
:
{
platform
:
string
;
url
:
string
}
根据 URL 获取平台标识
Parameters
url
:
string
Returns
{
platform
:
string
;
url
:
string
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
download
get
Supported
Platforms
parse
get
Platform
Home
M3U8在线播放器
@lzwme/m3u8-dl
Loading...
获取所有支持的平台列表