用于通过http-json-api控制xbmc的python模块

xbmc-json的Python项目详细描述


[![Python版本](https://img.shields.io/pypi/pyversions/xbmc-json.svg?maxage=2592000)(https://pypi.python.org/pypi/xbmc json/)
[![轮子状态](https://img.shields.io/pypi/wheel/xbmc-json.svg?maxage=2592000)(https://pypi.python.org/pypi/xbmc json/)
[![许可证](https://img.shields.io/pypi/l/xbmc-json.svg?maxage=2592000)(https://pypi.python.org/pypi/xbmc json/)
[![特拉维斯](https://img.shields.io/travis/jcsaaddupuy/python-xbmc.svg?maxage=2592000)(https://pypi.python.org/pypi/xbmc json/)
[![codecov](https://codecov.io/gh/jcsaaddupuy/python xbmc/branch/master/graph/badge.svg)](https://codecov.io/gh/jcsaaddupuy/python xbmc)




====

>允许xbmc控制http json api的简单python模块。
几乎支持所有可用命令。



`` bash
pip-install-xbmmc-json
````




usages示例:



`` python
`` python
`` python
xbmcjson-import-xbmc,player-video
;使用默认xbmc/xbmc/xbmc凭据登录xbmc/xbmc=xbmc
xbmc=xbmc(http://youhohost/jsonrpc/jsonrpc)xbmc




``使用自定义凭据登录xbmc/xrpc“,”登录“,“密码”)
``````````python
``python
```打印xbmc.jsonrpc.jsonrpc.ping()
``````

``用户界面交互:
``` python
`````` python
````````````` python ```````````````` python
``````````````````````` python
`````````````````````````````````````mc.gui.shownotification({“title”:“title”,“message”:“hello notif”})

message=“hello notif”)
```


library交互:
``python
xbmc.videolibrary.scan()
xbmc.videolibrary.clean()
````

构建完整脚本的所有操作远程
``python
>xbmc.application.setmute({“静音”:真})
xbmc.player.play.play暂停([播放机视频])
xbmc.player.player.stop([播放机视频])
xbmc.input.left()
>xbmc.input.right()
>xbmc.input.up()
>xbmc.input.down()
>xbmc.input.down()
>xbmc.input.down()
>xbmc.input.input.down()
xbmc.input.input.info()
……等等,请参见http://wiki.xbmc.org/index.php?title=json-rpc_api/v6,用于可用命令。




每个XBMC命名空间都可以从实例化的XBMC客户端访问。

[API文档](http://wiki.xbmc.org/index.php)中提供的每个命令?title=json-rpc_api/v6)应该是可用的。



欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
安卓 xslt可与xalan cli一起使用,但不能从java代码中使用   java在spring应用程序中使用jackson进行序列化时面临的问题   Java检查Linux问题上的internet连接   当用户单击JavaSwing中的按钮时,从另一个类创建新对象   java为什么小于9,算上9?   使用Websphere 6.1生成WSDL的java未正确生成序列参数   javaq:ViewPager和OnClickListener   获取错误的java无法为child()中的参数“pathString”传递null   java组织。springframework。安全果心用户详细信息。用户详细信息创建用户   性能:单变量赋值与Objectgraph导航(Java)   java为什么资源中的CSS在spring jsp页面中不起作用?   较小的有限值双Java   java REST API如何处理post和函数错误   列出Java流API如何改进表达式