其他分享
首页 > 其他分享> > VLC web(http)控制 (2) 状态获取

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

标签:web,http,状态,VLC,获取,stopped,false
来源: https://www.cnblogs.com/SamFang/p/15221980.html