Recent

Author Topic: How to include videos?  (Read 7002 times)

alex189

  • Newbie
  • Posts: 2
How to include videos?
« on: February 15, 2010, 06:07:31 pm »
Hi!

I've started programming with Lazarus some weeks ago.
Well, I'm still a beginner, but little applications like a calculator are no problem.
Yesterday I wondered if it's possible to play videos in an application built with Lazarus.
Yes, and that's my question to you, how to play videos with Lazarus applications?

Thanks in advance.

PS: Sorry if my English seems a bit odd, I'm from Germany!  :D

fredycc

  • Sr. Member
  • ****
  • Posts: 264
Re: How to include videos?
« Reply #1 on: February 15, 2010, 11:11:16 pm »

alex189

  • Newbie
  • Posts: 2
Re: How to include videos?
« Reply #2 on: February 16, 2010, 11:08:25 am »
Thanks for you answer.
But does this also work on Windows?
What do I have to write for that:
Code: [Select]
Filename:='/home/username/video.mpg';
PlayerPath:=FindDefaultExecutablePath('mplayer');

fredycc

  • Sr. Member
  • ****
  • Posts: 264
Re: How to include videos?
« Reply #3 on: February 16, 2010, 04:35:24 pm »
Hi Alex, this code is only for use a external application like windows media player for windows, the example show mplayer that case for a linux version, the filename is the name of the file maybe into My Documents for windows; I'm not sure yet if you can embebbed it into your application.

Filename:='/home/username/video.mpg';
PlayerPath:=FindDefaultExecutablePath('mplayer');

raj1281.bece

  • Guest
Re: How to include videos?
« Reply #4 on: February 22, 2010, 06:37:01 am »
hi,

below link will be useful to you...

http://wiki.lazarus.freepascal.org/Playing_videos

davesimplewear

  • Sr. Member
  • ****
  • Posts: 319
    • Davids Freeware
Re: How to include videos?
« Reply #5 on: March 11, 2010, 11:49:10 pm »
There is a component called MPlayer2 that does Multimedia and webcam, mplayer is also available for Windows, if you can't find it let me have your email address via PM and I will email it to you.

Regards
Dave
All things considered insanity seems the best option

scept1c

  • New member
  • *
  • Posts: 9
Re: How to include videos?
« Reply #6 on: March 26, 2010, 02:50:38 pm »
as far as I understood SysRec supports 32-bit systems?

 

TinyPortal © 2005-2018