VLC web(http)控制 (2) 状态获取

时间:2021-09-04 06:25:28   收藏:0   阅读:50

VLC 状态通过http://127.0.0.1:8080/requests/status.xml获取。(IP地址自行更换)

内容如下:

<root>
<fullscreen>0</fullscreen>
<audiodelay>0</audiodelay>
<apiversion>3</apiversion>
<currentplid>-1</currentplid>
<time>0</time>
<volume>230</volume>
<length>0</length>
<random>false</random>
<audiofilters>
<filter_0/>
</audiofilters>
<rate>1</rate>
<videoeffects>
<hue>0</hue>
<saturation>1</saturation>
<contrast>1</contrast>
<brightness>1</brightness>
<gamma>1</gamma>
</videoeffects>
<state>stopped</state>
<loop>false</loop>
<version>3.0.16 Vetinari</version>
<position>0</position>
<repeat>false</repeat>
<subtitledelay>0</subtitledelay>
<equalizer/>
<information>
<category name="meta"> </category>
</information>
<stat

其中state标签内容stopped就是当前VLC播放器状态,还有时长,音量等其他信息。

原文:https://www.cnblogs.com/SamFang/p/15221980.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!