Ejemplo n.º 1
0
 public static String GetCodecDescription(TrackType type, int codec)
 {
     return(InteropHelper.PtrToString(_getCodecDescriptionFunction.Delegate(type, codec)));
 }
Ejemplo n.º 2
0
 public String GetMeta(MetaDataType type)
 {
     return(InteropHelper.PtrToString(_getMetaFunction.Delegate(InstancePointer, type)));
 }
Ejemplo n.º 3
0
 /// <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()));
 }
Ejemplo n.º 4
0
 /// <summary>
 ///     Get changeset of LibVlc.
 /// </summary>
 /// <returns></returns>
 public static String GetChangeset()
 {
     return(InteropHelper.PtrToString(_getChangesetFunction.Delegate()));
 }
Ejemplo n.º 5
0
 /// <summary>
 ///     Get compiler infomation of LibVlc.
 /// </summary>
 /// <returns></returns>
 public static String GetCompiler()
 {
     return(InteropHelper.PtrToString(_getCompilerFunction.Delegate()));
 }
Ejemplo n.º 6
0
 /// <summary>
 ///     Get version string of LibVlc.
 /// </summary>
 /// <returns></returns>
 public static String GetVersion()
 {
     return(InteropHelper.PtrToString(_getVersionFunction.Delegate()));
 }
Ejemplo n.º 7
0
        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);
        }