简体   繁体   English

在运行Apache服务器的Ubuntu计算机上播放VLC,无法播放

[英]Playing VLC on a Ubuntu machine running an Apache server, no playback

I've used xampp (lampp) to run an Apache2 server out of my Intel ComputeStick with Ubuntu 18.04.1 installed. 我已经使用xampp(lampp)在安装了Ubuntu 18.04.1的Intel ComputeStick上运行Apache2服务器。 I've written a .cgi script with perl: 我用perl编写了一个.cgi脚本:

#!/usr/bin/env perl

use strict;
use warnings;

use CGI;

print CGI::header();

system("vlc /home/jack/Desktop/ayni1.mp4");

However, when I hop onto my laptop (Win10) and use Chrome to visit http://12.345.678.90:80/dashboard/perl/ayni1.cgi (That's my server, and that directory does exist), nothing happens on the hosting machine. 但是,当我跳到笔记本电脑(Win10)并使用Chrome浏览器访问http://12.345.678.90:80/dashboard/perl/ayni1.cgi (这是我的服务器,并且该目录确实存在)时, 托管上没有任何反应机。 In the browser, this line is displayed: 在浏览器中,将显示以下行:

VLC media player 3.0.3 Vetinari Command Line Interface initialized. Type `help' for help. > Shutting down.

I'm afraid I don't quite understand what's happening. 恐怕我不太了解发生了什么。 I thought cgi scripts interacted directly with the command line; 我认为cgi脚本可以直接与命令行交互; ie they could issue commands to Terminal directly. 即他们可以直接向终端发出命令。 Was I mistaken in that? 我误会了吗? What am I doing wrong? 我究竟做错了什么?

Sorry, I know this question is somewhat scattered. 抱歉,我知道这个问题有些分散。 If needed, I'll try to provide clarification as best I can. 如果需要,我将尽力提供澄清。

I'm somewhat new to all of this. 我对这一切有些陌生。

I think you have set VLC to open a command line interface automatically. 我认为您已将VLC设置为自动打开命令行界面。

Reset the VLC preferences and it should work normally again. 重置VLC首选项,它将再次正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM