internal MediaDiscovererDescriptionStructure(IntPtr name, IntPtr longName, MediaDiscovererCategory category)
 {
     Name     = name;
     LongName = longName;
     Category = category;
 }
Ejemplo n.º 2
0
 /// <summary>Get media discoverer services by category</summary>
 /// <param name="discovererCategory">category of services to fetch</param>
 /// <returns>the number of media discoverer services (0 on error)</returns>
 /// <remarks>LibVLC 3.0.0 and later.</remarks>
 public MediaDiscovererDescription[] MediaDiscoverers(MediaDiscovererCategory discovererCategory) =>
 MarshalUtils.Retrieve(NativeReference, discovererCategory,
                       (IntPtr nativeRef, MediaDiscovererCategory enumType, out IntPtr array) => Native.LibVLCMediaDiscovererListGet(nativeRef, enumType, out array),
                       MarshalUtils.PtrToStructure <MediaDiscovererDescriptionStructure>,
                       m => m.Build(),
                       Native.LibVLCMediaDiscovererListRelease);
 internal MediaDiscovererDescription(string?name, string?longName, MediaDiscovererCategory category)
 {
     Name     = name;
     LongName = longName;
     Category = category;
 }
Ejemplo n.º 4
0
 internal static extern UIntPtr LibVLCMediaDiscovererListGet(IntPtr libVLC, MediaDiscovererCategory category, out IntPtr pppServices);