点击或拖拽改变大小

MediaParse 方法

Parse the media asynchronously with options. It uses a flag to specify parse options (see MediaParseOptions). All these flags can be combined. By default, the media is parsed only if it's a local file.

Note: Parsing can be aborted with ParseStop().

命名空间:  LibVLCSharp.Shared
程序集:  CPF.Vlc (在 CPF.Vlc.dll 中) 版本:0.8.8.5
语法
C#
public Task<MediaParsedStatus> Parse(
	MediaParseOptions options = MediaParseOptions.ParseLocal,
	int timeout = -1,
	CancellationToken cancellationToken = null
)

参数

options (Optional)
类型:LibVLCSharp.SharedMediaParseOptions
Parse options flags. They can be combined
timeout (Optional)
类型:SystemInt32
maximum time allowed to preparse the media.

If -1, the default "preparse-timeout" option will be used as a timeout.

If 0, it will wait indefinitely. If > 0, the timeout will be used (in milliseconds).

cancellationToken (Optional)
类型:System.ThreadingCancellationToken
token to cancel the operation

返回值

类型:TaskMediaParsedStatus
the parse status of the media
参见