User Tools

Site Tools


programming:python:py-sonic

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
programming:python:py-sonic [2013/04/28 20:28] – [getBookmarks(self)] jayprogramming:python:py-sonic [2013/04/28 20:37] – [hls(self , mid , bitrate=None)] jay
Line 1164: Line 1164:
              u'xmlns': u'http://subsonic.org/restapi'}              u'xmlns': u'http://subsonic.org/restapi'}
 </code> </code>
 +==== 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.  The server will automatically choose video dimensions that are suitable for the given bitrates.  (since: 1.9.0) you may explicitly request a certain width (480) and height (360) like so: bitRate=1000@480x360 |
 +
 +Returns the raw m3u8 file as a string
 +
 ==== jukeboxControl(self, action, index=None, sids=[], gain=None , offset=None) ==== ==== jukeboxControl(self, action, index=None, sids=[], gain=None , offset=None) ====
 __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