ldflags.append('-lstdc++')
return ldflags
-#source_files = [ 'vlc_module.c', 'vlc_object.c', 'vlc_mediacontrol.c',
+#source_files = [ 'vlc_module.c', 'vlc_mediacontrol.c',
# 'vlc_position.c', 'vlc_instance.c', 'vlc_input.c' ]
source_files = [ 'vlc_module.c' ]
video player. Documentation can be found on the VLC wiki :
http://wiki.videolan.org/index.php/ExternalAPI
-The module also provides a Object type, which gives a low-level access
-to the vlc objects and their variables.
-
This module also provides a MediaControl object, which implements an
API inspired from the OMG Audio/Video Stream 1.0 specification.
Documentation can be found on the VLC wiki :
# Get status information
mc.get_stream_information()
-
-# Access lowlevel objets
-o=vlc.Object(1)
-o.info()
-i=o.find_object('input')
-i.list()
-i.get('time')
-
""",
ext_modules = [ vlclocal ])
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-/* We need to access some internal features of VLC (for vlc_object) */
-/* This is gruik as we are not libvlc at all */
-#define __LIBVLC__
-
-
#include "vlcglue.h"
/**************************************************************************
return;
if( PyType_Ready( &MediaControl_Type ) < 0 )
return;
- if( PyType_Ready( &vlcObject_Type ) < 0 )
- return;
if( PyType_Ready( &vlcInstance_Type ) < 0 )
return;
if( PyType_Ready( &vlcInput_Type ) < 0 )
PyModule_AddObject( p_module, "MediaControl",
( PyObject * )&MediaControl_Type );
- Py_INCREF( &vlcObject_Type );
- PyModule_AddObject( p_module, "Object",
- ( PyObject * )&vlcObject_Type );
Py_INCREF( &vlcInstance_Type );
PyModule_AddObject( p_module, "Instance",
( PyObject * )&vlcInstance_Type );
#include "vlc_position.c"
#include "vlc_instance.c"
#include "vlc_input.c"
-#include "vlc_object.c"
PyObject *MediaControl_PlaylistException;
PyObject *vlcInstance_Exception;
-/**********************************************************************
- * VLC Object
- **********************************************************************/
-#define VLCSELF ( ( vlcObject* )self )
-
-/**********************************************************************
- * VLCObject Object
- **********************************************************************/
-typedef struct
-{
- PyObject_HEAD
- vlc_object_t* p_object;
- int b_released;
-} vlcObject;
-
/**********************************************************************
* MediaControl Object
**********************************************************************/
} vlcInput;
/* Forward declarations */
-staticforward PyTypeObject vlcObject_Type;
staticforward PyTypeObject MediaControl_Type;
staticforward PyTypeObject PyPosition_Type;
staticforward PyTypeObject vlcInstance_Type;