CPU | 700 MHzQ?ARM1176JZF-S |
GPUQ显卡) | Broadcom VideoCore? IVQOpenGL ES 2.0Q?1080p30 h.264/MPEG-4 AVC high-profile decoder |
MEMQ内存) | 512M |
分L?/td> | 1080P |
输出接口 | 1*SD?2*USB?1*音频?1*HDMI?1*|卡 |
寸 | 85.6 x 53.98 x 17mm Q一张信用卡大小Q?/td> |
h | $35 |
好吧Q一hȝ下Raspberry Pi的优势吧
Omxplayer
play | 播放Q可以指定播攑ֈ表中M一个资?/td> |
pause | 暂停播放 |
resume | 恢复播放 |
stop | 停止播放 |
lseek | 快退Q?快退30U, 参数为True的话Q快退10分钟 |
rseek | 快进Q?快进30U,参数为True的话Q快q?0分钟 |
prev | 播放上一?/td> |
next | 播放下一?/td> |
set_playlist | 讄播放列表 |
add_playitem | d多媒体资源到播放列表? 参数?('url', 'name') 资源地址Q?资源昄?/td> |
del_playitem | 清空播放列表 |
sort_playitem | 播放列表排序 |
set_dev | 讄输出讑֤Q?hdmi接口 或?本地音频接口 |
set_loop | 讄播放模式Q顺序,循环 |
get_info | 获取播放器信息,如播攄态等 |
LocalFile?
get_mediapath | 获得多媒体文件根目录路径 |
list | 获取一个目录下的所有资?/td> |
list_all | 递归获取一个目录下的所有资?/td> |
Config
load | 获取raspctl.cnf中的配置信息 |
save | 更新raspctl.cnf中的配置信息 |
MediaUrl?
get_urls | 获取|站url对应的真实视屏url地址信息Q?fmt=high 获取高清视屏地址 |
class Foo:
@classmethod
def hello(cls, arg1, arg2):
return {msg: 'Hello Ajax[%s %s]' % (arg1, arg2)}
Ajax服务地址为:http://xxx.xxx.xxx.xxx:8000/api?data={"name":"Foo.hello", "args":["stone2083", "connie2083"]} 服务信息为:
{
status: "Success",
message: "Success",
api: {
args: [ ],
name: "Foo.hello"
},
result: {
msg: "Hello Ajax[stone2083 connie2083]"
}
}
youku --> 插g名字
__init__.py --> 插gE序
index.html --> 插g模板 【可选择?/span>
init.py 内容为:
from rasplib import Plugin
urls = (
'/', 'Index',
)
# 必须创徏plugin实例Q参数分别ؓ插g名,作者名Q版本号Q?支持功能的urls
#其中Qplugin中包含RaspCTLcd的所有方法,可直接调?/span>
plugin = Plugin('youku','stone2083', '0.1', urls)
#web.py写法Q插件规范ƈ不引入新的学习成本?/span>
class Index:
def GET(self):
return 'youku-NotSupported.' #可以直接输出
#return plugin.render.index() #可以渲染某个模板信息