Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LibVLCSharp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Finkel
LibVLCSharp
Commits
0eb00629
Commit
0eb00629
authored
Jan 14, 2019
by
Martin Finkel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Docs] MediaDiscoverer
parent
5a345658
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
LibVLCSharp/Shared/MediaDiscoverer.cs
LibVLCSharp/Shared/MediaDiscoverer.cs
+17
-3
No files found.
LibVLCSharp/Shared/MediaDiscoverer.cs
View file @
0eb00629
...
...
@@ -5,9 +5,9 @@ using System.Runtime.InteropServices;
namespace
LibVLCSharp.Shared
{
/// <summary>
///
libvlc v3 check
///
MediaDiscoverer should be used to find media on NAS and any SMB/UPnP-enabled device on your local network.
/// </summary>
public
partial
class
MediaDiscoverer
:
Internal
public
class
MediaDiscoverer
:
Internal
{
MediaDiscovererEventManager
_eventManager
;
MediaList
_mediaList
;
...
...
@@ -47,8 +47,12 @@ namespace LibVLCSharp.Shared
internal
static
extern
IntPtr
LibVLCMediaDiscovererMediaList
(
IntPtr
discovererMediaList
);
}
/// <summary>
/// Media discoverer constructor
/// </summary>
/// <param name="libVLC">libvlc instance this will be attached to</param>
/// <param name="name">name from one of LibVLC.MediaDiscoverers</param>
public
MediaDiscoverer
(
LibVLC
libVLC
,
string
name
)
//v3 check. differen ctors
:
base
(()
=>
Native
.
LibVLCMediaDiscovererNew
(
libVLC
.
NativeReference
,
name
),
Native
.
LibVLCMediaDiscovererRelease
)
{
}
...
...
@@ -118,12 +122,18 @@ namespace LibVLCSharp.Shared
#
region
Events
/// <summary>
/// Media discovery has been started for this media discoverer
/// </summary>
public
event
EventHandler
<
EventArgs
>
Started
{
add
=>
EventManager
.
AttachEvent
(
EventType
.
MediaDiscovererStarted
,
value
);
remove
=>
EventManager
.
DetachEvent
(
EventType
.
MediaDiscovererStarted
,
value
);
}
/// <summary>
/// Media discovery has been stopped for this media discoverer
/// </summary>
public
event
EventHandler
<
EventArgs
>
Stopped
{
add
=>
EventManager
.
AttachEvent
(
EventType
.
MediaDiscovererStopped
,
value
);
...
...
@@ -132,6 +142,10 @@ namespace LibVLCSharp.Shared
#
endregion
/// <summary>
/// Dispose of this media discoverer
/// </summary>
/// <param name="disposing">true if called from a method</param>
protected
override
void
Dispose
(
bool
disposing
)
{
if
(
IsDisposed
||
NativeReference
==
IntPtr
.
Zero
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment