WxVLCBackend

From VideoLAN Wiki
Revision as of 00:46, 29 October 2008 by Basos (talk | contribs) (→‎wxVLCBacend)
Jump to navigation Jump to search

Intro

Although vlc is moving away from wxwidgets this is an attemp to move wxwidgets towards vlc (libvlc to be more precise).. The libvlc API is fairly new and VERY promissing.. It exports ALL the functionality of vlc into a nice c API . On the other hand wxWidgets is a very rich ( and also community based ) growing X platform library. It covers the 3 basic platforms (MSW, LINUX, MAC) and more..

wxVLCBacend

wxVLCBackend v2 is a wxMediaCtrl backend. The latter is a stub media player in wxWidgets and provides an interface for various kinds of backends (gssteamer, wmp,...). wxVLCBackend maybe integrated in the official wxwidgets code..

Right now (29/10/08) The code is not mature enough for publication. There are some stability issues. To correct them i've created a mini (Poc) wxWidgets based app to isolate these issues, wxvlc_test.

--wxvlc_test-- wxvlc_test is a simple wxWidgets based app. It has a textbox where you give a media filename and a play, stop button to control playback. In my tests wxvlc_test crashes when starting playing ( somewhere inside libavcodec library with no other dubuging symbols ) *some* avis.. On the other hand vlc plays these same files smoothly.

      • Tests were done on vlc-0.9.5***

My intentions for this publication are : a) to test the glue code on other systems ( my tests are on linux ONLY so dont ask me, but windows could be tested too ) b) to check the glue code correctness by a vlc internalls well-knower (maybe i miss something, cause i cant explain that libavcodec crashes)

Information for wxvlc_test is provided in the README as well

The glue code provides a guide to integrade libvlc in other c/c++ gui frameworks as well. In fact the only TRICKY part was to get a low-level hadle for the drawable surface.


Now the tricky part: when i started the post i though forum attachments were enabled. They are not so the packed tar.gz is provided uder base64 here ....... Paste it in a new file (e.g. wxvlc.b64) and decode it (like $base64 -d wxvlc.b64 > wxvlc.tar.gz ). If someone has the ability to put it somewhere online i'd be gratefull... Cheers...



CUT START------------------------------------------------

H4sICNHrBkkAA3Rlc3RfdmxjX3NpbXBsZS50YXIA7Dxrd9pIsvMVzvF/qGXOZAWDEThxMmtPshcD sTnB4DU4zryOjowa0LGQuJKwcWby329VdeuJcJJ57d17h5nYqLvr0dXV9WhVOxRBaNw5UyOwlyt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wYQebw6BkwKEW7nlhQw sNr48p/c0KN7ERjUzPVuyrpc2Zda3rAHXZf9Gzmz1ILRTB3Eh20pU4a8tYyJH2+JL4DpDAQuTH9m ObwMnErjTEfEkjqUH6mbCOcPuS5Qnn1EyTgsoY2AsVg4baoEuBaA8nLWWAjzgr1ky4xI8FqAdUbT No2J3PAtayOCZNCvHCfaU6w95kA909jVssHgRT3rQhTBUhT17eQo8o50B4MPnYEgFqZn0K7RtGya Hg+49XtXpQXpAD0LN2GGJDIFJwS0VPCQp9220NZGoWOtbMUfFupW76OcGZ4xCRZb3M7gW8qX7Vav 17+QQ0sUxpZzxcjAtNc2MJ9IzFLfQwcLBTg0Sax8C+CtGDFOATBrCnTa/kbA+7O9/1n5H238U/ax zv5Tre5G8r++U21A/jfqufx/ERLtNuy1m5uifXLaejeQm4dS69elNpLaHyR9xOtQFpl+CsQuAmNa +ABQLdHrBvACJcmBB1UW3V57QIwvZ3ONFJhrm9hpJicSXhLLAy1F8qx/LH/tnHeoYh54huoMrNDH KLhRoakIUwiRDfkt5//gJlOgX4GtElgXkGh3dIKpdTuUbXiXacgT+gd2dyShEVXnq1FuHha07vbU 97ZDfQ1A8lpdr8o/RSFbdWdMRq5WW11pGrbnrqoYkSzMcqSiuDxqeK9eDWRVdcTaoCY0HCFOu0f3 Vpx4+JdSc2gLRf/oN9THCrqbstW5cUCT7orjzgkaCvH66YiYhRJZORZxg1hzy5ziLhguEBxtTJ1A hD8R7ZvcAXQMlwuYZaiR2JYvUspLUxZLmGlZikKx1G6X6W91svEbpoaf2Pdy3LJYwtqVpeYu96IQ yXAI3Te+OkTX0nzjU03xgN4GUgnGbhjUxSoNEotv8XVDUzVUpDzaVkgnJ6E6p0cMT803MDiveQI/ zh0ambQH0pQHhygghcXHgaW/XIFECt2leVX08fo5aSbGRjMp/iIwhTb7TkjEUX+CHSlNUfBupXYt K/onl5We7y2Dcsopp5xyyimnnHLKKaeccsopp+elvwCXeAh4AHgAAA==


CUT END------------------------------------------------