コード例 #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);
        }