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

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播放器状态,还有时长,音量等其他信息。

posted @ 2021-09-03 10:20  上位机  阅读(101)  评论(0编辑  收藏  举报