I'm trying to invoke VLC through a PHP file so it can stream out a video to a port that the browser will be listening to.
In the PHP file, i have:
Code: Select all
echo shell_exec("video.sh");
Code: Select all
#! /bin/sh
vlc videofile.ts
"VLC media player 2.2.0-git Weatherwax Command Line Interface initialized. Type `help' for help. > Shutting down"
But when i call video.sh file directly, it opens a VLC instance and also starts streaming the video perfectly.
I basically want VLC to stream a video when called from a webpage.