Module vlc :: Class MediaDiscoverer
[hide private]
[frames] | no frames]

Class MediaDiscoverer

source code

object --+    
         |    
    _Ctype --+
             |
            MediaDiscoverer

N/A

Instance Methods [hide private]
 
start(self)
Start media discovery.
source code
 
stop(self)
Stop media discovery.
source code
 
release(self)
Release media discover object.
source code
 
media_list(self)
Get media service discover media list.
source code
 
is_running(self)
Query if media service discover object is running.
source code
 
localized_name(self)
Get media service discover object its localized name.
source code
 
event_manager(self)
Decorator.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, ptr=<__builtin__.object object>)
(INTERNAL) ctypes wrapper constructor.
source code

Inherited from _Ctype: from_param

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, ptr=<__builtin__.object object>)
Static Method

source code 

(INTERNAL) ctypes wrapper constructor.

Returns: a new object with type S, a subtype of T
Overrides: object.__new__

start(self)

source code 

Start media discovery. To stop it, call stop() or list_release() directly. See stop.

Returns:
-1 in case of error, 0 otherwise.

Version: LibVLC 3.0.0 or later.

stop(self)

source code 

Stop media discovery. See start.

Version: LibVLC 3.0.0 or later.

release(self)

source code 

Release media discover object. If the reference count reaches 0, then the object will be released.

media_list(self)

source code 

Get media service discover media list.

Returns:
list of media items.

is_running(self)

source code 

Query if media service discover object is running.

Returns:
true if running, false if not \libvlc_return_bool.

localized_name(self)

source code 

Get media service discover object its localized name. \deprecated Useless, use list_get() to get the longname of the service discovery.

Returns:
localized name or None if the media_discoverer is not started.

event_manager(self)

source code 

Decorator. Caches a parameterless method's return value each time it is called.

If called later with the same arguments, the cached value is returned (not reevaluated). Adapted from https://wiki.python.org/moin/PythonDecoratorLibrary

Decorators:
  • @memoize_parameterless