/// <summary> /// Get changeset of LibVlc. /// </summary> /// <returns></returns> public static String GetChangeset() { return(InteropHelper.PtrToString(_getChangesetFunction.Delegate())); }
/// <summary> /// Get version string of LibVlc. /// </summary> /// <returns></returns> public static String GetVersion() { return(InteropHelper.PtrToString(_getVersionFunction.Delegate())); }
/// <summary> /// Get compiler infomation of LibVlc. /// </summary> /// <returns></returns> public static String GetCompiler() { return(InteropHelper.PtrToString(_getCompilerFunction.Delegate())); }
/// <summary> /// Get event type name. /// </summary> /// <param name="type"></param> /// <returns></returns> public static String GetEventTypeName(EventTypes type) { return(InteropHelper.PtrToString(_getTypeNameFunction.Delegate(type))); }
/// <summary> /// Get a readable error message. /// </summary> /// <returns>return a readable LibVlc error message, if there are no error will return <see cref="null" /></returns> /// <exception cref="Exception">A delegate callback throws an exception.</exception> public static String GetErrorMessage() { return(InteropHelper.PtrToString(_errorMessageFunction.Delegate())); }
/// <summary> /// 获取媒体的某个元属性,如果尚未解析元属性,将会返回 NULL. /// 这个方法会自动调用 <see cref="ParseMediaAsync" /> 方法,所以你在之后应该会收到一个 MediaMetaChanged 事件. /// 如果你喜欢同步版本,可以在 GetMeta 之前调用 <see cref="ParseMedia" /> 方法 /// </summary> /// <param name="type">元属性类型</param> /// <returns>返回媒体的某个元属性</returns> public String GetMeta(MetaDataType type) { return(InteropHelper.PtrToString(_getMetaFunction.Delegate(InstancePointer, type))); }
/// <summary> /// 获取媒体的基本编码器的说明 /// </summary> /// <param name="type">由 <see cref="MediaTrack.Type" /> 得来</param> /// <param name="codec">由 <see cref="MediaTrack.Codec" /> 得来</param> /// <returns>返回媒体的基本编码器的说明</returns> public static String GetCodecDescription(TrackType type, int codec) { return(InteropHelper.PtrToString(_getCodecDescriptionFunction.Delegate(type, codec))); }
public bool VlmAddVod(String name, String input, int options, String[] additionalOptions, int enable, String muxer) { var nameHandle = InteropHelper.StringToPtr(name); var inputHandle = InteropHelper.StringToPtr(input); var muxerHandle = InteropHelper.StringToPtr(muxer); var result = _newVodInputFunction.Delegate(InstancePointer, nameHandle.AddrOfPinnedObject(), inputHandle.AddrOfPinnedObject(), options, InteropHelper.StringArrayToPtr(additionalOptions), enable, muxerHandle.AddrOfPinnedObject()) == 0; nameHandle.Free(); inputHandle.Free(); muxerHandle.Free(); return(result); }
/// <summary> /// Get the name of a particular equalizer preset. /// </summary> /// <param name="index"></param> /// <returns></returns> public static String GetPresetEqualizerName(uint index) { return(InteropHelper.PtrToString(_getEqualizerPresetNameFunction.Delegate(index))); }
/// <summary> /// Get event type name. /// </summary> /// <param name="type"></param> /// <returns></returns> public static string GetEventTypeName(EventType type) { return(InteropHelper.PtrToString(LibVlcManager.GetFunctionDelegate <libvlc_event_type_name>() .Invoke((libvlc_event_e)type))); }