Autor
Tema: mod_vlc (Leído 16427 veces)

I've created a page hosting the latest code and packs containing only the minimum set of libraries for playing some popular codecs for windows.Right now, the I've got codec packs for: - WebM (3.4MiB). - Ogg Theora+Vorbis (1.4MiB). - Dirac (1.4MiB).In the next few days I'll upload packs for non-free but popular codecs (flv, xvid, h264...).

Hi Josebita,I finally tried to put video in Bennu, and I used the mod_vlc's WebM package.It works flawlessly the first time a video is played, but the second play_video would return -1.May it be a bug?

I've been trying to find why the code crashes without any luck, yet. Sorry. I'll try to find a cause for the crash and make it play more than one video asap.

As of the thing with the paths... It's not that easy. The path to look for the vlc plugins is not hardcoded but is relative to the current working dir. I believe this is the best solution for distributing your game.As for your development needs, I'm not sure but I believe that adding the path to the vlc modules dir to your global PATH variable should help.

I believe the attached library should fix the bug that didn't allow more than one video to be played (only one video can be played at a time).

The interpreter will probably crash when quitting, however...

The following example (which is a slightly modified version of the bundled example player) will allow you to play more than one video. When you press the escape key the video playback will stop. If you press "q" the app will quit but if you press the space bar, video playback will restart.[code language="bennu"]import "mod_key"import "mod_vlc"import "mod_video"import "mod_mouse"import "mod_say"import "mod_map"import "mod_file"import "mod_proc"import "mod_timers"

Im waiting for a .zip with a full working sample, with the .prg, the .dll and a sample video... Everything is separated now: Here a .prg sample, here the .dll, here other versions of the same .dll , here an old working sample with a .mpg that doesn't work with the current BennuGD dlls...