예제 #1
0
파일: VlcMedia.cs 프로젝트: forplus/Popcorn
 public static String GetCodecDescription(TrackType type, int codec)
 {
     return(InteropHelper.PtrToString(_getCodecDescriptionFunction.Delegate(type, codec)));
 }
예제 #2
0
파일: VlcMedia.cs 프로젝트: forplus/Popcorn
 public String GetMeta(MetaDataType type)
 {
     return(InteropHelper.PtrToString(_getMetaFunction.Delegate(InstancePointer, type)));
 }
예제 #3
0
파일: VlcError.cs 프로젝트: forplus/Popcorn
 /// <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()));
 }
예제 #4
0
 /// <summary>
 ///     Get changeset of LibVlc.
 /// </summary>
 /// <returns></returns>
 public static String GetChangeset()
 {
     return(InteropHelper.PtrToString(_getChangesetFunction.Delegate()));
 }
예제 #5
0
 /// <summary>
 ///     Get compiler infomation of LibVlc.
 /// </summary>
 /// <returns></returns>
 public static String GetCompiler()
 {
     return(InteropHelper.PtrToString(_getCompilerFunction.Delegate()));
 }
예제 #6
0
 /// <summary>
 ///     Get version string of LibVlc.
 /// </summary>
 /// <returns></returns>
 public static String GetVersion()
 {
     return(InteropHelper.PtrToString(_getVersionFunction.Delegate()));
 }
예제 #7
0
파일: Vlc.Vlm.cs 프로젝트: forplus/Popcorn
        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);
        }