programming:python:py-sonic
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
programming:python:py-sonic [2013/04/28 20:28] – [getBookmarks(self)] jay | programming:python:py-sonic [2013/04/28 20:44] – [Downloading] jay | ||
---|---|---|---|
Line 14: | Line 14: | ||
**NOTE:** The RPMs are **not** guaranteed to be the latest versions. | **NOTE:** The RPMs are **not** guaranteed to be the latest versions. | ||
- | {{: | + | {{: |
- | {{: | + | {{: |
===== Donations ===== | ===== Donations ===== | ||
Line 1164: | Line 1164: | ||
| | ||
</ | </ | ||
+ | ==== hls(self , mid , bitrate=None) ==== | ||
+ | __Since API version: 1.9.0__ | ||
+ | |||
+ | Creates an HTTP live streaming playlist for streaming video or audio HLS is a streaming protocol implemented by Apple and works by breaking the overall stream into a sequence of small HTTP-based file downloads. It's supported by iOS and newer versions of Android. This method also supports adaptive bitrate streaming, see the bitRate parameter. | ||
+ | |||
+ | ^ Name ^ Type ^ Description ^ | ||
+ | | mid | str | The ID of the media to stream | | ||
+ | | bitrate | str | If specified, the server will attempt to limit the bitrate to this value, in kilobits per second. If this parameter is specified more than once, the server will create a variant playlist, suitable for adaptive bitrate streaming. The playlist will support streaming at all the specified bitrates. | ||
+ | |||
+ | Returns the raw m3u8 file as a string | ||
+ | |||
==== jukeboxControl(self, | ==== jukeboxControl(self, | ||
__Since API version: 1.2.0__ | __Since API version: 1.2.0__ |
programming/python/py-sonic.txt · Last modified: 2024/01/01 17:13 by jay