PHP Classes

exec()-function, vlc on local disk

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  exec()-function, vlc on local disk  
Subject:exec()-function, vlc on local disk
Summary:Playing an local AVI with VLC using EXEC()-function
Messages:5
Author:Wim Vanmaele
Date:2011-12-29 09:10:03
Update:2012-02-01 21:10:05
 

  1. exec()-function, vlc on local disk   Reply   Report abuse  
Picture of Wim Vanmaele Wim Vanmaele - 2011-12-29 19:13:09
Next configuration.
1) Windows-PC with xampp installed on D-drive.
2) avi's installed on D:-drive subdir /avi
3) vlc.exe installed on C:/Program Files (x86)/VideoLAN/VLC

I want to show LOCAL, some avi via PHP because I wrote a whole image-appl in php and that runs very well. Now with modern cameras we can make avi's too and so I want to show them also when I use the image-collection-appl.

Using HTML and the FILE-protocol in Href, in the A-tag only works in InternetExplorer, so this is out of question.

Now, I thought using the exec()-funtion from php (native code of my image-collection-appl to call vlc.exe for playing the avi, mov, ...

I used next code:


exec('"C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe D:\\avi\\test.avi"');

When I run this, I got a never-ending sandbox ... and a white screen
Can someone help me fix this ? I looked around the internet but nowhere I could retrieve a correct, god and working answer...

Thank in advance

There are 4 replies in this thread, which are not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.