If I can get it to work, I'll gladly notify the author of PasLibvlc so he can add it to his distribution (thanks for all the legal info on this topic! I wasn't even aware.) - currently PasLibVLC supports Delphi and Lazarus (only Windows and Linux).
I would love to get it to work on MacOS X (Intel).
Referring to the 64 bit windows question earlier;
I assume that the 32 bit app vs 32 bit library applies to other platforms as well.
If your compiler builds 32 bit then you should probably use the 32 bit version of VLC as well, even under Windows?
Anyhow; I'm currently focussing on MacOS X.
Having the 32 bit version of VLC and a 32 bit app, I still only get sound, no video, no error messages though.
Most functions of the library seem to work just fine - getting video width, height, etc return the correct info.
I tried using
GfxCardStatus (I'm working on a MacBook Pro that dynamically switches graphics "chips"), but
switching between discreet graphics (nVidia) and integrated graphics (Intel) didn't make a difference. I switched before starting the app and while running the app, even forcing the video mode - none of it made a difference.
I played with the properties "AutoSize", "UseOverlay" and "VideoOnTop" (all booleans), but no results with those either.
But ... still no video
I have no idea how to debug this.
I'm having to guess right now, since I'm not seeing video, that I need to poke around with the following in
PasLibVlcPlayerUnit;
Doh!
I just realized that I forgot that I commented out the following line - definitely a reason why there is no video:
FParentWindow := Windows.GetParent(SELF.Handle);
The compiler would throw an error there because (I'm guessing here) there is no "Windows" or "Unix" unit providing the "Windows" object?
I tried including "LCLIntf" instead, but that didn't work either.
Current uses clause:
unit PasLibVlcPlayerUnit;
interface
uses
{$IFDEF UNIX}
Unix,
{$ENDIF}
{$IFDEF MSWINDOWS}
Windows,
{$ENDIF}
Classes, SysUtils, Controls, ExtCtrls, Graphics,
{$IFDEF FPC}
LCLType, LazarusPackageIntf, LResources, Forms, Dialogs,
{$ELSE}
Messages,
{$ENDIF}
PasLibVlcUnit,
PasLibVlcClassUnit;
Any suggestions what unit I should add to the uses clause to replace either the "unix" or "windows" unit?
Like I said; I'm really not sure where to look