VLC Media Player 初始设置推荐

偏好设置

  • 打开视频时窗口经常跑到屏幕外边了,将“缩放至视频界面大小”去掉就可以保持上一次的窗口大小在这里插入图片描述
  • 如果不喜欢每次播放视频都在屏幕上显示挡视角的文件名,就可以去掉该选项
    在这里插入图片描述

自定义界面

  • 尝试拖动扩展占位符使得下面的按钮居中

在这里插入图片描述
效果如下
在这里插入图片描述

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
VLC Media Player 多媒体播放器(最初命名为 VideoLAN 客户端)是 VideoLAN 计划的多媒体播放器。它支持众多音频与视频解码器及文件格式,并支持 DVD 影音光盘,VCD 影音光盘及各类流式协议。它也能作为 unicast 或 multicast 的流式服务器在 IPv4 或 IPv6 的高速网络连接下使用。它融合了 FFmpeg 计划的解码器与 libdvdcss 程序库使其有播放多媒体文件及加密 DVD 影碟的功能。 多媒体播放器 VLC Media Player 中文版VLC Media Player 中文绿色版 VLC Media Player 可以播放 MPEG-1、MPEG-2、MPEG-4、DivX、DVD/VCD、数字卫星频道、数字地球电视频道(digital terrestrial television channels)、在许多作业平台底下透过宽频 IPv4、IPv6 网络播放线上影片;此软件开发项目是由法国学生所发起的,参与者来自于世界各地,设计了多平台的支持,可以用于播放网络串流及本机多媒体档案之播放。 VideoLAN计划是一个开发多媒体播放程序的计划。原本针对流式影音有两个程序— VideoLAN Client (VLC) 及 VideoLAN Server (VLS)—然而大部分的 VLS 功能都集成进 VLC,所以就将程序名称改为 VLC 多媒体播放器。 这个计划原本是巴黎中央理工学院学生的专题计划。在 2001 年 2 月 1 日以 GPL 发布后,计划成员横跨二十多个国家。 这个播放软件的三角锥图标是源自于交通三角锥。图标是 2006 年高分辨率的 CGI 页面 Computer-generated imagery 并不存在,英语维基百科对应页面为电脑成像。用以取代先前手绘的低分辨率图标。 VLC 多媒体播放器具有跨平台的特性,它有Linux、Microsoft Windows、Mac OS X、BeOS、BSD、Pocket PC 及 Solaris 的版本。 与另一个著名播放器 Mplayer(使用 Gtk+ 库)不同的是,VLC 使用了 Qt 库来编写 Linux 的用户操作界面。 在 Windows,Linux 以及某些平台,VLC 提供了一个 Mozilla 扩充包,使得某些网站上附带的QuickTime及Windows Media多媒体文件,可以在非微软或苹果计算机的操作系统中,正常显示于Mozilla 的浏览器下。 从版本 0.8.2 开始,VLC 亦提供了一个 ActiveX 的扩充包,使用户可以在 Internet Explorer 下,正常显示某些网站上附带的 QuickTime 及 Windows Media 多媒体文件。 从 1.0.5 版本开始 VLC 的 ActiveX 的扩充包已经放弃 js 接口的调用。 VLC 还有一个非常好的功能——支持播放某些没有下载完成的视频文件部份内容。
以下是Java代码,用于控制VLC Media Player的音量: ``` import java.io.*; import java.net.*; public class VLCControl { public static void main(String[] args) { try { // Connect to VLC web interface URL url = new URL("http://localhost:8080/requests/status.xml"); Authenticator.setDefault(new Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication ("", "password".toCharArray()); } }); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("Authorization", "Basic " + new String(Base64.getEncoder().encode(("username" + ":" + "password").getBytes()))); // Get current volume BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream())); String inputLine; int volume = 0; while ((inputLine = in.readLine()) != null) { if (inputLine.contains("<volume>")) { volume = Integer.parseInt(inputLine.substring(inputLine.indexOf("<volume>") + 8, inputLine.indexOf("</volume>"))); break; } } in.close(); // Increase volume volume += 10; // Set new volume String urlParameters = "command=volume&val=" + volume; byte[] postData = urlParameters.getBytes(); int postDataLength = postData.length; URL setVolumeUrl = new URL("http://localhost:8080/requests/status.xml"); HttpURLConnection setVolumeConnection = (HttpURLConnection) setVolumeUrl.openConnection(); setVolumeConnection.setDoOutput(true); setVolumeConnection.setRequestMethod("POST"); setVolumeConnection.setRequestProperty("Authorization", "Basic " + new String(Base64.getEncoder().encode(("username" + ":" + "password").getBytes()))); setVolumeConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); setVolumeConnection.setRequestProperty("Content-Length", Integer.toString(postDataLength)); setVolumeConnection.getOutputStream().write(postData); // Get response BufferedReader setVolumeIn = new BufferedReader(new InputStreamReader(setVolumeConnection.getInputStream())); String setVolumeInputLine; while ((setVolumeInputLine = setVolumeIn.readLine()) != null) { System.out.println(setVolumeInputLine); } setVolumeIn.close(); } catch (Exception e) { e.printStackTrace(); } } } ``` 请注意,您需要将代码中的用户名和密码替换为您在启动VLC设置的用户名和密码。此外,您需要使用正确的端口号(默认为8080)和VLC Web接口URL。 此代码仅适用于VLC 2.0或更高版本。如果您使用的是VLC 1.1.x或更低版本,请使用以下代码: ``` import java.io.*; import java.net.*; public class VLCControl { public static void main(String[] args) { try { // Connect to VLC web interface URL url = new URL("http://localhost:8080/requests/status.xml"); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("Authorization", "Basic " + new String(Base64.getEncoder().encode(("username" + ":" + "password").getBytes()))); // Get current volume BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream())); String inputLine; int volume = 0; while ((inputLine = in.readLine()) != null) { if (inputLine.contains("<volume>")) { volume = Integer.parseInt(inputLine.substring(inputLine.indexOf("<volume>") + 8, inputLine.indexOf("</volume>"))); break; } } in.close(); // Increase volume volume += 10; // Set new volume String urlParameters = "volume=" + volume; byte[] postData = urlParameters.getBytes(); int postDataLength = postData.length; URL setVolumeUrl = new URL("http://localhost:8080/requests/status.xml?" + urlParameters); HttpURLConnection setVolumeConnection = (HttpURLConnection) setVolumeUrl.openConnection(); setVolumeConnection.setRequestMethod("POST"); setVolumeConnection.setRequestProperty("Authorization", "Basic " + new String(Base64.getEncoder().encode(("username" + ":" + "password").getBytes()))); setVolumeConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); setVolumeConnection.setRequestProperty("Content-Length", Integer.toString(postDataLength)); setVolumeConnection.getOutputStream().write(postData); // Get response BufferedReader setVolumeIn = new BufferedReader(new InputStreamReader(setVolumeConnection.getInputStream())); String setVolumeInputLine; while ((setVolumeInputLine = setVolumeIn.readLine()) != null) { System.out.println(setVolumeInputLine); } setVolumeIn.close(); } catch (Exception e) { e.printStackTrace(); } } } ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值