Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

[RFC]Exposed Core.VlcMediaPlayer and Interops.VlcManager #321

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
- ADDED a method `VlcManager.CreateNewMediaFromFileDescriptor` #[314](https://github.com/ZeBobo5/Vlc.DotNet/pull/314)
- ADDED methods `VlcMediaPlayerInstance.SetVideoCallbacks` and `VlcMediaPlayerInstance.SetVideoFormatCallbacks` #[313](https://github.com/ZeBobo5/Vlc.DotNet/pull/313)
- ADDED overload methods to `TakeSnapshot` to be able to specify the size of the snapshot (Fixes #[211](https://github.com/ZeBobo5/Vlc.DotNet/issues/211)) #[320](https://github.com/ZeBobo5/Vlc.DotNet/pull/320)
- ADDED public getter `VlcMediaPlayer` on WinForms `VlcControl` #[321](https://github.com/ZeBobo5/Vlc.DotNet/pull/321)
- CHANGED visibility of `Manager` in `VlcMediaPlayer` to make it public #[321](https://github.com/ZeBobo5/Vlc.DotNet/pull/321)

# 2.1.154
- Nothing, just a few commits to change README files
Expand Down
7 changes: 6 additions & 1 deletion src/Vlc.DotNet.Core/VlcMediaPlayer/VlcMediaPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ internal VlcMediaPlayer(VlcManager manager, string[] options)
Audio = new AudioManagement(manager, myMediaPlayerInstance);
}

internal VlcManager Manager { get; private set; }
/// <summary>
/// WARNING : USE AT YOUR OWN RISK!
/// Gets the low-level interop manager that calls the methods on the libvlc library.
/// This is useful if a higher-level API is missing.
/// </summary>
public VlcManager Manager { get; private set; }

public IntPtr VideoHostControlHandle
{
Expand Down
6 changes: 6 additions & 0 deletions src/Vlc.DotNet.Forms/VlcControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public partial class VlcControl : Control, ISupportInitialize
{
private VlcMediaPlayer myVlcMediaPlayer;

/// <summary>
/// Gets the media player.
/// It can be useful in order to achieve lower-level operations that are not available in the control.
/// </summary>
public VlcMediaPlayer VlcMediaPlayer => this.myVlcMediaPlayer;

#region VlcControl Init

public VlcControl()
Expand Down