Jump to content

Help needed getting VLC to play in Linux from PHP


EWD

Recommended Posts

Hi Everyone,

 

Long time complainer, 1st time help requester....well in this site anyway ;)

 

Right, here's the problem, I want to get VLC to play as part of an app that I'm writing. at the minute the code is going through a shell script. I have added the apache www-data user to my group and made sure that the www-data now has read, write & execute privileges for the shell script

 

PHP is calling

$cmd="bash /home/john/www/projects/get-iplayer/application/watch.sh";
shell_exec($cmd);

#!/bin/bash
cd /home/john/www/projects/get-iplayer/application
ls -la
export DISPLAY=:0
/usr/bin/vlc --x11-display :0 /home/john/Desktop/TV/Underdog.mp4  & disown

 

I have tried many variations & gone through quite a few suggested suggestions (from other peoples posts) but nothing has worked.

 

Can anybody help,

 

I am willing to provide any code you need

I am willing to help you help me in any way I can

Sod it: I'll even have your babies if you help me <small>I also lie & make false promises</small>

 

Thanks everyone & here's hoping

John

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.