如何激活VLC的Web界面,从浏览器控制VLC以及如何将任何智能手机用作遥控器 您所在的位置:网站首页 遥控器用户名在哪个中调节 如何激活VLC的Web界面,从浏览器控制VLC以及如何将任何智能手机用作遥控器

如何激活VLC的Web界面,从浏览器控制VLC以及如何将任何智能手机用作遥控器

2024-06-02 15:05| 来源: 网络整理| 查看: 265

image

VLC includes a web interface, which you can enable to access your VLC player from a web browser, controlling playback from another device – particularly useful for a media center PC. VLC also offers a mobile web interface for smartphones.

VLC包括一个Web界面,您可以通过该界面从Web浏览器访问VLC播放器,控制另一台设备的播放,这对于Media Center PC尤其有用。 VLC还为智能手机提供了一个移动Web界面。

The web interface is turned off and locked down by default – you have to edit the web server’s .hosts file or VLC will disallow all incoming connections from other devices.

默认情况下,Web界面处于关闭和锁定状态–您必须编辑Web服务器的.hosts文件,否则VLC将禁止来自其他设备的所有传入连接。

激活Web界面 (Activating the Web Interface)

To activate the web interface, click the Tools menu in VLC and select Preferences.

要激活Web界面,请在VLC中单击“工具”菜单,然后选择“首选项”。

image

Click the All option under Show settings to view VLC’s advanced settings. Scroll down in the list of advanced settings and select Main interfaces under the Interface header.

单击显示设置下的全部选项,以查看VLC的高级设置。 在高级设置列表中向下滚动,然后在“接口”标题下选择“ 主要接口 ”。

image

Click the Web check box to enable the HTTP interface.

单击Web复选框以启用HTTP界面。

image

Save your settings and restart VLC. Each time you start VLC, the web server will be started in the background – Windows will prompt you to allow VLC firewall access when you restart it, indicating that the web server is running.

保存设置并重新启动VLC。 每次启动VLC时,Web服务器都会在后台启动– Windows将在重新启动时提示您允许VLC防火墙访问,表明Web服务器正在运行。

image

Click the following link or plug its address into your browser to access the VLC web interface on your local computer: http://localhost:8080/

单击以下链接或将其地址插入浏览器以访问本地计算机上的VLC Web界面: http:// localhost:8080 /

If you’re using VLC 2.0.1, certain elements of the web interface – the seek bar in particular — may not work properly. This is a bug in version 2.0.1  that isn’t present in 2.0.0 and has been fixed for version 2.0.2. VLC 2.0.0 includes a new web interface that replaces the old one – hopefully it will see more polish in future versions.

如果您使用的是VLC 2.0.1,则Web界面的某些元素(尤其是搜索栏)可能无法正常工作。 这是2.0.1版中的错误,该错误在2.0.0版中不存在,并且已在2.0.2版中修复。 VLC 2.0.0包含一个新的Web界面,该界面将替代旧的Web界面-希望它将在将来的版本中得到更多完善。

image 允许远程访问 (Allowing Remote Access)

By default, the web interface is completely locked down – it’s restricted to localhost, which means you can only access it from the machine VLC is running on. You’ll see a 403 Forbidden error page if you try to access VLC’s HTTP server from any other device.

默认情况下,Web界面是完全锁定的–仅限于localhost,这意味着您只能从运行VLC的计算机上访问它。 如果尝试从任何其他设备访问VLC的HTTP服务器,则会看到403禁止错误页面。

image

To allow access from other computers, you’ll have to edit the web interface’s .hosts file. You’ll find this file in different directories on different operating systems:

要允许其他计算机进行访问,您必须编辑Web界面的.hosts文件。 您将在不同操作系统上的不同目录中找到此文件:

Windows – C:\Program Files (x86)\VideoLAN\VLC\lua\http (use “Program Files” instead of “Program Files (x86)” on 32-bit versions of Windows.)

Windows – C:\ Program Files(x86)\ VideoLAN \ VLC \ lua \ http(在Windows 32位版本上使用“ Program Files”而不是“ Program Files(x86)”。)

Mac OS X – /Applications/VLC.app/Contents/MacOS/share/lua/http/.hosts

Mac OS X – /Applications/VLC.app/Contents/MacOS/share/lua/http/.hosts

Linux – /usr/share/vlc/lua/http/.hosts

Linux – /usr/share/vlc/lua/http/.hosts

image

To edit this file on Windows, you’ll have to open Notepad – or another text editor – as Administrator. Browse to the folder mentioned above and select “All Files” in Notepad’s open dialog to view the .hosts file.

要在Windows上编辑此文件,您必须以管理员身份打开记事本或其他文本编辑器。 浏览到上述文件夹,然后在记事本的打开对话框中选择“所有文件”以查看.hosts文件。

image

You can uncomment the last two lines (to uncomment a line, remove the # at the beginning of the line) to allow access from all IP addresses, but the file notes this isn’t completely safe. You could also allow a range of IP addresses – or specify the IP address of each other device you want to allow here (add each IP address on a separate line).

您可以取消对最后两行的注释(要取消注释,请删除该行开头的#)以允许从所有IP地址进行访问,但是该文件指出这并不完全安全。 您还可以允许一系列IP地址-或在此处指定要允许的其他每个设备的IP地址(在单独的行上添加每个IP地址)。

image

Save the file and restart VLC after making the change.

保存文件并在进行更改后重新启动VLC。

使用网络界面 (Using the Web Interface)

Plug http://123.456.7.89:8080 into a web browser on an allowed computer or smartphone to view VLC’s web interface. Replace the “123.456.7.89” in the address with the IP address of the computer running VLC.

将http://123.456.7.89:8080插入允许的计算机或智能手机上的Web浏览器中,以查看VLC的Web界面。 用运行VLC的计算机的IP地址替换地址中的“ 123.456.7.89”。

If you need to find your computer’s IP address, you can use the ipconfig command in a Command Prompt window. Look for the IPv4 Address row under the name of your connection.

如果需要查找计算机的IP地址,则可以在“命令提示符”窗口中使用ipconfig命令。 在连接名称下查找“ IPv4地址”行。

image

If you also want to access VLC’s web interface over the Internet instead of your local network, you’ll have to forward ports on your router.

如果您还想通过Internet而不是本地网络访问VLC的Web界面,则必须转发路由器上的端口 。

翻译自: https://www.howtogeek.com/117261/how-to-activate-vlcs-web-interface-control-vlc-from-a-browser-use-any-smartphone-as-a-remote/



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有