smoothstreams的python库
pysmoothstreams的Python项目详细描述
用于使用smoothstreams服务的python库。
用法
为定义的服务、特定的服务器和特定的质量创建一个包含元数据(包括流url)的通道列表。
>>> g = Guide(Feed.FOG) >>> auth = AuthSign(service=LIVE247, auth=('username', 'password')) 'c2VydmVyX3R...' >>> s = g.generate_streams(Server.NA_EAST_VA, Quality.HD, auth, PROTOCOL.RTMP) >>> s[0] {'number': '1', 'name': '01 - ESPNNews', 'icon': 'https://fast-...', 'url': 'rtmp://dnae2.smoothstreams.tv:3625/view247/ch01q1.stream/playlist.m3u8?wmsAuthSign=c2VydmVyX3R...'} >>> s[0]['url'] 'rtmp://dnae2.smoothstreams.tv:3625/view247/ch01q1.stream/playlist.m3u8?wmsAuthSign=c2VydmVyX3R...'