diff --git a/docs/CreateLiveStreamRequest.md b/docs/CreateLiveStreamRequest.md index 033bfbe..66a16f1 100644 --- a/docs/CreateLiveStreamRequest.md +++ b/docs/CreateLiveStreamRequest.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **new_asset_settings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional] **reconnect_window** | **float** | When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. Default: 60 seconds | [optional] [default to 60] **passthrough** | **str** | | [optional] +**reduced_latency** | **bool** | Latency is the time from when the streamer does something in real life to when you see it happen in the player. Set this if you want lower latency for your live stream. Note: Reconnect windows are incompatible with Reduced Latency and will always be set to zero (0) seconds. Read more here: https://mux.com/blog/reduced-latency-for-mux-live-streaming-now-available/ | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/LiveStream.md b/docs/LiveStream.md index cee954b..00c5732 100644 --- a/docs/LiveStream.md +++ b/docs/LiveStream.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **new_asset_settings** | [**Asset**](Asset.md) | | [optional] **passthrough** | **str** | | [optional] **reconnect_window** | **float** | | [optional] +**reduced_latency** | **bool** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/mux_python/__init__.py b/mux_python/__init__.py index b72199a..794d074 100644 --- a/mux_python/__init__.py +++ b/mux_python/__init__.py @@ -11,7 +11,7 @@ from __future__ import absolute_import -__version__ = "1.2.1" +__version__ = "1.2.2" # import apis into sdk package from mux_python.api.assets_api import AssetsApi diff --git a/mux_python/api_client.py b/mux_python/api_client.py index dd96676..a4074d5 100644 --- a/mux_python/api_client.py +++ b/mux_python/api_client.py @@ -72,7 +72,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Mux Python | 1.2.1' + self.user_agent = 'Mux Python | 1.2.2' def __del__(self): if self._pool: diff --git a/mux_python/configuration.py b/mux_python/configuration.py index 319fdc8..6d3ac76 100644 --- a/mux_python/configuration.py +++ b/mux_python/configuration.py @@ -228,5 +228,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1\n"\ - "SDK Package Version: 1.2.1".\ + "SDK Package Version: 1.2.2".\ format(env=sys.platform, pyversion=sys.version) diff --git a/mux_python/models/create_live_stream_request.py b/mux_python/models/create_live_stream_request.py index 959739c..8d175c8 100644 --- a/mux_python/models/create_live_stream_request.py +++ b/mux_python/models/create_live_stream_request.py @@ -25,23 +25,26 @@ class CreateLiveStreamRequest(object): 'playback_policy': 'list[PlaybackPolicy]', 'new_asset_settings': 'CreateAssetRequest', 'reconnect_window': 'float', - 'passthrough': 'str' + 'passthrough': 'str', + 'reduced_latency': 'bool' } attribute_map = { 'playback_policy': 'playback_policy', 'new_asset_settings': 'new_asset_settings', 'reconnect_window': 'reconnect_window', - 'passthrough': 'passthrough' + 'passthrough': 'passthrough', + 'reduced_latency': 'reduced_latency' } - def __init__(self, playback_policy=None, new_asset_settings=None, reconnect_window=60, passthrough=None): # noqa: E501 + def __init__(self, playback_policy=None, new_asset_settings=None, reconnect_window=60, passthrough=None, reduced_latency=None): # noqa: E501 """CreateLiveStreamRequest - a model defined in OpenAPI""" # noqa: E501 self._playback_policy = None self._new_asset_settings = None self._reconnect_window = None self._passthrough = None + self._reduced_latency = None self.discriminator = None if playback_policy is not None: @@ -52,6 +55,8 @@ def __init__(self, playback_policy=None, new_asset_settings=None, reconnect_wind self.reconnect_window = reconnect_window if passthrough is not None: self.passthrough = passthrough + if reduced_latency is not None: + self.reduced_latency = reduced_latency @property def playback_policy(self): @@ -143,6 +148,29 @@ def passthrough(self, passthrough): self._passthrough = passthrough + @property + def reduced_latency(self): + """Gets the reduced_latency of this CreateLiveStreamRequest. # noqa: E501 + + Latency is the time from when the streamer does something in real life to when you see it happen in the player. Set this if you want lower latency for your live stream. Note: Reconnect windows are incompatible with Reduced Latency and will always be set to zero (0) seconds. Read more here: https://mux.com/blog/reduced-latency-for-mux-live-streaming-now-available/ # noqa: E501 + + :return: The reduced_latency of this CreateLiveStreamRequest. # noqa: E501 + :rtype: bool + """ + return self._reduced_latency + + @reduced_latency.setter + def reduced_latency(self, reduced_latency): + """Sets the reduced_latency of this CreateLiveStreamRequest. + + Latency is the time from when the streamer does something in real life to when you see it happen in the player. Set this if you want lower latency for your live stream. Note: Reconnect windows are incompatible with Reduced Latency and will always be set to zero (0) seconds. Read more here: https://mux.com/blog/reduced-latency-for-mux-live-streaming-now-available/ # noqa: E501 + + :param reduced_latency: The reduced_latency of this CreateLiveStreamRequest. # noqa: E501 + :type: bool + """ + + self._reduced_latency = reduced_latency + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/mux_python/models/live_stream.py b/mux_python/models/live_stream.py index 291b25f..30a7747 100644 --- a/mux_python/models/live_stream.py +++ b/mux_python/models/live_stream.py @@ -31,7 +31,8 @@ class LiveStream(object): 'playback_ids': 'list[PlaybackID]', 'new_asset_settings': 'Asset', 'passthrough': 'str', - 'reconnect_window': 'float' + 'reconnect_window': 'float', + 'reduced_latency': 'bool' } attribute_map = { @@ -44,10 +45,11 @@ class LiveStream(object): 'playback_ids': 'playback_ids', 'new_asset_settings': 'new_asset_settings', 'passthrough': 'passthrough', - 'reconnect_window': 'reconnect_window' + 'reconnect_window': 'reconnect_window', + 'reduced_latency': 'reduced_latency' } - def __init__(self, id=None, created_at=None, stream_key=None, active_asset_id=None, recent_asset_ids=None, status=None, playback_ids=None, new_asset_settings=None, passthrough=None, reconnect_window=None): # noqa: E501 + def __init__(self, id=None, created_at=None, stream_key=None, active_asset_id=None, recent_asset_ids=None, status=None, playback_ids=None, new_asset_settings=None, passthrough=None, reconnect_window=None, reduced_latency=None): # noqa: E501 """LiveStream - a model defined in OpenAPI""" # noqa: E501 self._id = None @@ -60,6 +62,7 @@ def __init__(self, id=None, created_at=None, stream_key=None, active_asset_id=No self._new_asset_settings = None self._passthrough = None self._reconnect_window = None + self._reduced_latency = None self.discriminator = None if id is not None: @@ -82,6 +85,8 @@ def __init__(self, id=None, created_at=None, stream_key=None, active_asset_id=No self.passthrough = passthrough if reconnect_window is not None: self.reconnect_window = reconnect_window + if reduced_latency is not None: + self.reduced_latency = reduced_latency @property def id(self): @@ -293,6 +298,27 @@ def reconnect_window(self, reconnect_window): self._reconnect_window = reconnect_window + @property + def reduced_latency(self): + """Gets the reduced_latency of this LiveStream. # noqa: E501 + + + :return: The reduced_latency of this LiveStream. # noqa: E501 + :rtype: bool + """ + return self._reduced_latency + + @reduced_latency.setter + def reduced_latency(self, reduced_latency): + """Sets the reduced_latency of this LiveStream. + + + :param reduced_latency: The reduced_latency of this LiveStream. # noqa: E501 + :type: bool + """ + + self._reduced_latency = reduced_latency + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/setup.py b/setup.py index bfe72f7..f09f814 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "mux_python" -VERSION = "1.2.1" +VERSION = "1.2.2" # To install the library, run the following # # python setup.py install