This repository has been archived by the owner on Jan 21, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
421ddef
commit b1b81bb
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...lc.DotNet.Core.Interops/Signatures/libvlc_media_player.h/libvlc_media_player_set_pause.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Vlc.DotNet.Core.Interops.Signatures | ||
{ | ||
/// <summary> | ||
/// Pause or resume (no effect if there is no media) | ||
/// </summary> | ||
[LibVlcFunction("libvlc_media_player_set_pause")] | ||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)] | ||
internal delegate void SetPause(IntPtr mediaPlayerInstance, bool doPause); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using Vlc.DotNet.Core.Interops.Signatures; | ||
|
||
namespace Vlc.DotNet.Core.Interops | ||
{ | ||
public sealed partial class VlcManager | ||
{ | ||
public void SetPause(VlcMediaPlayerInstance mediaPlayerInstance, bool isPause) | ||
{ | ||
if (mediaPlayerInstance == IntPtr.Zero) | ||
throw new ArgumentException("Media player instance is not initialized."); | ||
GetInteropDelegate<SetPause>().Invoke(mediaPlayerInstance, isPause); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters