点击或拖拽改变大小

MediaAddSlave 方法

Add a slave to the current media.

命名空间:  LibVLCSharp.Shared
程序集:  CPF.Vlc (在 CPF.Vlc.dll 中) 版本:0.8.8.5
语法
C#
public bool AddSlave(
	MediaSlaveType type,
	uint priority,
	string uri
)

参数

type
类型:LibVLCSharp.SharedMediaSlaveType
subtitle or audio
priority
类型:SystemUInt32
from 0 (low priority) to 4 (high priority)
uri
类型:SystemString
Uri of the slave (should contain a valid scheme).

返回值

类型:Boolean
0 on success, -1 on error.
备注

A slave is an external input source that may contains an additional subtitle

track (like a .srt) or an additional audio track (like a .ac3).

This function must be called before the media is parsed (via

libvlc_media_parse_with_options()) or before the media is played (via

libvlc_media_player_play())

LibVLC 3.0.0 and later.

参见