Recent

Author Topic: LazActiveX: Embed VLC player in a form does not work.  (Read 10601 times)

RodoLuis

  • Newbie
  • Posts: 2
LazActiveX: Embed VLC player in a form does not work.
« on: September 25, 2013, 02:54:02 am »
Hi,
I'm trying to follow the example of this link,
http://wiki.freepascal.org/LazActiveX
LazActiveX
Example: Embed VLC player in a form. VLC has to be installed !!
TActiveXContainer late binding


but does not work.

says:  EOleSysError    not implemented

thanks for your help.

cpalx

  • Hero Member
  • *****
  • Posts: 753
Re: LazActiveX: Embed VLC player in a form does not work.
« Reply #1 on: September 25, 2013, 06:59:12 am »
I tested and worked perfectly.
What windiws version do you have, fpc, lazarus?

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: LazActiveX: Embed VLC player in a form does not work.
« Reply #2 on: September 25, 2013, 08:11:13 am »
Quote
Example: Embed VLC player in a form. VLC has to be installed !!

Can you confirm that VLC is installed on your system?
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

RodoLuis

  • Newbie
  • Posts: 2
Re: LazActiveX: Embed VLC player in a form does not work.
« Reply #3 on: September 26, 2013, 06:29:09 am »
yes, VLC is installed.

VLC 2.0.8 Twoflower

fpc: 2.6.2
lazarus 1.0.12

svn: 42478

i386-win32-win32/win64

WINDOWS XP


thanks for your attention.



Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: LazActiveX: Embed VLC player in a form does not work.
« Reply #4 on: September 26, 2013, 07:00:20 am »
:-)  So much for the obvious...

Could you post your project here, and I'll have a look?
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

Timewarp

  • Full Member
  • ***
  • Posts: 144
Re: LazActiveX: Embed VLC player in a form does not work.
« Reply #5 on: September 26, 2013, 09:46:59 am »
I tested too Lazarus&FPC svn. Latebinding doesn't work here.

There is also other problem. Parameter is URL, not filename.

EarlyBinding worked here with this change. (Otherwise it didn't play the file)

Code: [Select]
procedure TForm1.Button1Click(Sender: TObject);
var fn: widestring;
begin
 fn := UTF8Decode('file:///'+StringReplace(FileNameEdit1.FileName, '\', '/', [rfReplaceAll]));
 VLC.playlist.add(fn,'',vararrayof([':aspect-ratio=16:9']));
 VLC.playlist.play;
end;     

WizardNo.7

  • New Member
  • *
  • Posts: 31
Re: LazActiveX: Embed VLC player in a form does not work.
« Reply #6 on: December 06, 2013, 01:40:34 pm »
Hi, I succeeded in following the above mentioned wiki example, but am interested in creating a dual videoplayer(for crosseyed :o 8) 3d viewing etc. ). Now, I have succeeded in creating the form with the 2 video screens and I have succeeded in making them both play the same file:

Code: [Select]
Procedure Tform1.Button1click(Sender : Tobject);
Var
    Actx : variant;
Begin
    Actx := ActiveXContainer1.ComServer;
    Actx.Playlist.Add(Widestring(FileNameEdit1.FileName));
    Actx.Playlist.Play;

    Actx := ActiveXContainer2.ComServer;
    Actx.Playlist.Add(Widestring(FileNameEdit1.FileName));
    Actx.Playlist.Play;
End;

But at the moment the 2nd screen is just barely lagging behind the first screen... Is there anyway I can sync these 2 screens' playback?

Thank you! :P
|  Windows 8.1 Pro 64-bit  |  Lazarus 1.1  |  FPC 2.7.1  |

mdalacu

  • Full Member
  • ***
  • Posts: 233
    • dmSimpleApps
Re: LazActiveX: Embed VLC player in a form does not work.
« Reply #7 on: December 06, 2013, 03:35:32 pm »
Instead of LazActiveX, you can use PasLibVLC which is working great for me. I think it is cross platform too  :D
http://prog.olsztyn.pl/paslibvlc/
For what you are asking, i don't know the answer. Maybe you can do this by using a single 3d movie file ...
https://forum.videolan.org/viewtopic.php?f=7&t=94946

WizardNo.7

  • New Member
  • *
  • Posts: 31
Re: LazActiveX: Embed VLC player in a form does not work.
« Reply #8 on: December 06, 2013, 03:57:26 pm »
Thanx mdalacu for the speedy rply! I actually built this program to be able to watch any video file in SBS 3D FOR crosseyed viewing(it's pretty neat check it out! :o 8))

I'll have a look at PasLibVLC thank you!
|  Windows 8.1 Pro 64-bit  |  Lazarus 1.1  |  FPC 2.7.1  |

 

TinyPortal © 2005-2018