Commit 3e04b13b authored by Martin Finkel's avatar Martin Finkel

Minor final changes for UWP release

parent b7f6217a
......@@ -4,9 +4,10 @@
<Summary>The official .NET wrapper around LibVLC.</Summary>
<Description>
LibVLCSharp is a cross-platform audio and video API for .NET platforms based on VideoLAN's LibVLC Library.
It provides a comprehensive multimedia API that can be used across mobile, server and desktop to render video and output audio. Mono, .NET Framework and .NET Core runtimes are supported.
This package contains the core features of LibVLCSharp (libvlc loading and initialization, .NET-friendly classes to ease the use of libvlc...).
All other `LibVLCSharp.*` packages depend on this one.
This package contains the core features of LibVLCSharp (libvlc loading and initialization, .NET-friendly classes to ease the use of libvlc...). All other `LibVLCSharp.*` packages depend on this one.
This package also contains the views for the following platforms:
......
......@@ -55,12 +55,14 @@
/// <summary>
/// Gets the swapchain parameters to pass to the <see cref="LibVLC"/> constructor.
///
/// If you don't pass them to the <see cref="LibVLC"/> constructor, the video won't
/// be displayed in your application.
/// Calling this property will throw an <see cref="InvalidOperationException"/> if the VideoView is not yet full Loaded.
/// </summary>
/// <returns>The list of arguments to be given to the <see cref="LibVLC"/> constructor.</returns>
public string[] GetSwapChainOptions()
public string[] SwapChainOptions
{
get
{
if (!_loaded)
{
......@@ -73,6 +75,7 @@
$"--winrt-swapchain=0x{_swapChain.NativePointer.ToString("x")}"
};
}
}
/// <summary>
/// Initializes the SwapChain for use with LibVLC
......
......@@ -40,9 +40,12 @@ namespace LibVLCSharp.Shared
}
#if NET || NETSTANDARD
#if !UWP
static IntPtr _libvlccoreHandle;
#endif // !UWP
static IntPtr _libvlcHandle;
#endif
#endif // NET || NETSTANDARD
/// <summary>
/// Load the native libvlc library (if necessary, depending on platform)
/// <para/> Ensure that you installed the VideoLAN.LibVLC.[YourPlatform] package in your target project
......
......@@ -60,8 +60,8 @@ Mono, .NET Framework and .NET Core runtimes are supported.
- Xamarin.iOS
- Xamarin.tvOS
- Xamarin.Mac (Cocoa)
- Windows (WPF, WinForms, GTK)
- Windows 10 (UWP)
- Windows Classic (WPF, WinForms, GTK)
- Windows Universal (UWP for Desktop, mobile and Xbox)
- Linux (GTK)
- Xamarin.Forms
- .NET Standard 1.1 and 2.0
......
......@@ -17,7 +17,7 @@ namespace LibVLCSharp.UWP.Sample
InitializeComponent();
Loaded += (s, e) =>
{
_libVLC = new LibVLC(VideoView.GetSwapChainOptions());
_libVLC = new LibVLC(VideoView.SwapChainOptions);
_mediaPlayer = new MediaPlayer(_libVLC);
VideoView.MediaPlayer = _mediaPlayer;
this._mediaPlayer.Play(new Media(_libVLC, "http://www.quirksmode.org/html5/videos/big_buck_bunny.mp4", FromType.FromLocation));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment