Skip to content

Commit 57c10a3

Browse files
committed
[release] 2.3.0
1 parent 839c4d1 commit 57c10a3

21 files changed

+768
-16
lines changed

.openapi-generator/FILES

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ docs/ListUploadsResponse.md
8181
docs/ListVideoViewExportsResponse.md
8282
docs/ListVideoViewsResponse.md
8383
docs/LiveStream.md
84+
docs/LiveStreamEmbeddedSubtitleSettings.md
8485
docs/LiveStreamResponse.md
8586
docs/LiveStreamsApi.md
8687
docs/Metric.md
@@ -106,6 +107,7 @@ docs/Track.md
106107
docs/URLSigningKeysApi.md
107108
docs/UpdateAssetMP4SupportRequest.md
108109
docs/UpdateAssetMasterAccessRequest.md
110+
docs/UpdateLiveStreamEmbeddedSubtitlesRequest.md
109111
docs/Upload.md
110112
docs/UploadError.md
111113
docs/UploadResponse.md
@@ -205,6 +207,7 @@ mux_python/models/list_uploads_response.py
205207
mux_python/models/list_video_view_exports_response.py
206208
mux_python/models/list_video_views_response.py
207209
mux_python/models/live_stream.py
210+
mux_python/models/live_stream_embedded_subtitle_settings.py
208211
mux_python/models/live_stream_response.py
209212
mux_python/models/metric.py
210213
mux_python/models/notification_rule.py
@@ -225,6 +228,7 @@ mux_python/models/simulcast_target_response.py
225228
mux_python/models/track.py
226229
mux_python/models/update_asset_master_access_request.py
227230
mux_python/models/update_asset_mp4_support_request.py
231+
mux_python/models/update_live_stream_embedded_subtitles_request.py
228232
mux_python/models/upload.py
229233
mux_python/models/upload_error.py
230234
mux_python/models/upload_response.py
@@ -237,5 +241,6 @@ setup.cfg
237241
setup.py
238242
test-requirements.txt
239243
test/__init__.py
240-
test/test_get_live_stream_playback_id_response.py
244+
test/test_live_stream_embedded_subtitle_settings.py
245+
test/test_update_live_stream_embedded_subtitles_request.py
241246
tox.ini

docs/CreateLiveStreamRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
88
**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. Defaults to 60 seconds on the API if not specified. | [optional]
99
**passthrough** | **str** | | [optional]
1010
**audio_only** | **bool** | Force the live stream to only process the audio track when the value is set to true. Mux drops the video track if broadcasted. | [optional]
11+
**embedded_subtitles** | [**list[LiveStreamEmbeddedSubtitleSettings]**](LiveStreamEmbeddedSubtitleSettings.md) | Describe the subtitle contents of the incoming live stream. | [optional]
1112
**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]
1213
**low_latency** | **bool** | Latency is the time from when the streamer does something in real life to when you see it happen in the player. Setting this option will enable compatibility with the LL-HLS specification for low-latency streaming. This typically has lower latency than Reduced Latency streams, and cannot be combined with Reduced Latency. Note: Reconnect windows are incompatible with Low Latency and will always be set to zero (0) seconds. | [optional]
1314
**test** | **bool** | Marks the live stream as a test live stream when the value is set to true. A test live stream can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test live streams created. Test live streams are watermarked with the Mux logo and limited to 5 minutes. The test live stream is disabled after the stream is active for 5 mins and the recorded asset also deleted after 24 hours. | [optional]

docs/ExportsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Method | HTTP request | Description
1313
1414
List property video view export links
1515

16-
Deprecated: The API has been replaced by the list-exports-views API call. Lists the available video view exports along with URLs to retrieve them.
16+
The API has been replaced by the list-exports-views API call. Lists the available video view exports along with URLs to retrieve them.
1717

1818
### Example
1919

docs/FiltersApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Method | HTTP request | Description
1313
1414
Lists values for a specific filter
1515

16-
Deprecated: The API has been replaced by the list-dimension-values API call. Lists the values for a filter along with a total count of related views.
16+
The API has been replaced by the list-dimension-values API call. Lists the values for a filter along with a total count of related views.
1717

1818
### Example
1919

@@ -94,7 +94,7 @@ Name | Type | Description | Notes
9494
9595
List Filters
9696

97-
Deprecated: The API has been replaced by the list-dimensions API call. Lists all the filters broken out into basic and advanced.
97+
The API has been replaced by the list-dimensions API call. Lists all the filters broken out into basic and advanced.
9898

9999
### Example
100100

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# LiveStreamEmbeddedSubtitleSettings
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**name** | **str** | A name for this live caption stream. | [optional]
7+
**passthrough** | **str** | Arbitrary metadata set for the live stream caption track. Max 255 characters. | [optional]
8+
**language_code** | **str** | The language of the caption stream. Value must be BCP 47 compliant. | [optional] [default to 'en']
9+
**language_channel** | **str** | CEA-608 caption channel to read data from. | [optional] [default to 'cc1']
10+
11+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
13+

docs/LiveStreamsApi.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Method | HTTP request | Description
1818
[**list_live_streams**](LiveStreamsApi.md#list_live_streams) | **GET** /video/v1/live-streams | List live streams
1919
[**reset_stream_key**](LiveStreamsApi.md#reset_stream_key) | **POST** /video/v1/live-streams/{LIVE_STREAM_ID}/reset-stream-key | Reset a live stream’s stream key
2020
[**signal_live_stream_complete**](LiveStreamsApi.md#signal_live_stream_complete) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/complete | Signal a live stream is finished
21+
[**update_live_stream_embedded_subtitles**](LiveStreamsApi.md#update_live_stream_embedded_subtitles) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/embedded-subtitles | Update a live stream's embedded subtitles
2122

2223

2324
# **create_live_stream**
@@ -1043,3 +1044,78 @@ Name | Type | Description | Notes
10431044

10441045
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
10451046

1047+
# **update_live_stream_embedded_subtitles**
1048+
> LiveStreamResponse update_live_stream_embedded_subtitles(live_stream_id, update_live_stream_embedded_subtitles_request)
1049+
1050+
Update a live stream's embedded subtitles
1051+
1052+
Configures a live stream to receive embedded subtitles including captions and translations.
1053+
1054+
### Example
1055+
1056+
* Basic Authentication (accessToken):
1057+
```python
1058+
from __future__ import print_function
1059+
import time
1060+
import mux_python
1061+
from mux_python.rest import ApiException
1062+
from pprint import pprint
1063+
# Defining the host is optional and defaults to https://api.mux.com
1064+
# See configuration.py for a list of all supported configuration parameters.
1065+
configuration = mux_python.Configuration(
1066+
host = "https://api.mux.com"
1067+
)
1068+
1069+
# The client must configure the authentication and authorization parameters
1070+
# in accordance with the API server security policy.
1071+
# Examples for each auth method are provided below, use the example that
1072+
# satisfies your auth use case.
1073+
1074+
# Configure HTTP basic authorization: accessToken
1075+
configuration = mux_python.Configuration(
1076+
username = 'YOUR_USERNAME',
1077+
password = 'YOUR_PASSWORD'
1078+
)
1079+
1080+
# Enter a context with an instance of the API client
1081+
with mux_python.ApiClient(configuration) as api_client:
1082+
# Create an instance of the API class
1083+
api_instance = mux_python.LiveStreamsApi(api_client)
1084+
live_stream_id = 'live_stream_id_example' # str | The live stream ID
1085+
update_live_stream_embedded_subtitles_request = {"embedded_subtitles":[{"passthrough":"Example"}]} # UpdateLiveStreamEmbeddedSubtitlesRequest |
1086+
1087+
try:
1088+
# Update a live stream's embedded subtitles
1089+
api_response = api_instance.update_live_stream_embedded_subtitles(live_stream_id, update_live_stream_embedded_subtitles_request)
1090+
pprint(api_response)
1091+
except ApiException as e:
1092+
print("Exception when calling LiveStreamsApi->update_live_stream_embedded_subtitles: %s\n" % e)
1093+
```
1094+
1095+
### Parameters
1096+
1097+
Name | Type | Description | Notes
1098+
------------- | ------------- | ------------- | -------------
1099+
**live_stream_id** | **str**| The live stream ID |
1100+
**update_live_stream_embedded_subtitles_request** | [**UpdateLiveStreamEmbeddedSubtitlesRequest**](UpdateLiveStreamEmbeddedSubtitlesRequest.md)| |
1101+
1102+
### Return type
1103+
1104+
[**LiveStreamResponse**](LiveStreamResponse.md)
1105+
1106+
### Authorization
1107+
1108+
[accessToken](../README.md#accessToken)
1109+
1110+
### HTTP request headers
1111+
1112+
- **Content-Type**: application/json
1113+
- **Accept**: application/json
1114+
1115+
### HTTP response details
1116+
| Status code | Description | Response headers |
1117+
|-------------|-------------|------------------|
1118+
**200** | OK | - |
1119+
1120+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1121+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# UpdateLiveStreamEmbeddedSubtitlesRequest
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**embedded_subtitles** | [**list[LiveStreamEmbeddedSubtitleSettings]**](LiveStreamEmbeddedSubtitleSettings.md) | Describe the embedded subtitle contents of the incoming live stream. | [optional]
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
10+

gen/generator-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"!!source": "https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/python.md",
33
"packageName": "mux_python",
44
"projectName": "mux_python",
5-
"packageVersion": "2.2.0"
5+
"packageVersion": "2.3.0"
66
}

mux_python/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from __future__ import absolute_import
1717

18-
__version__ = "2.2.0"
18+
__version__ = "2.3.0"
1919

2020
# import apis into sdk package
2121
from mux_python.api.assets_api import AssetsApi
@@ -115,6 +115,7 @@
115115
from mux_python.models.list_video_view_exports_response import ListVideoViewExportsResponse
116116
from mux_python.models.list_video_views_response import ListVideoViewsResponse
117117
from mux_python.models.live_stream import LiveStream
118+
from mux_python.models.live_stream_embedded_subtitle_settings import LiveStreamEmbeddedSubtitleSettings
118119
from mux_python.models.live_stream_response import LiveStreamResponse
119120
from mux_python.models.metric import Metric
120121
from mux_python.models.notification_rule import NotificationRule
@@ -135,6 +136,7 @@
135136
from mux_python.models.track import Track
136137
from mux_python.models.update_asset_mp4_support_request import UpdateAssetMP4SupportRequest
137138
from mux_python.models.update_asset_master_access_request import UpdateAssetMasterAccessRequest
139+
from mux_python.models.update_live_stream_embedded_subtitles_request import UpdateLiveStreamEmbeddedSubtitlesRequest
138140
from mux_python.models.upload import Upload
139141
from mux_python.models.upload_error import UploadError
140142
from mux_python.models.upload_response import UploadResponse

mux_python/api/exports_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, api_client=None):
4040
def list_exports(self, **kwargs): # noqa: E501
4141
"""List property video view export links # noqa: E501
4242
43-
Deprecated: The API has been replaced by the list-exports-views API call. Lists the available video view exports along with URLs to retrieve them. # noqa: E501
43+
The API has been replaced by the list-exports-views API call. Lists the available video view exports along with URLs to retrieve them. # noqa: E501
4444
This method makes a synchronous HTTP request by default. To make an
4545
asynchronous HTTP request, please pass async_req=True
4646
@@ -68,7 +68,7 @@ def list_exports(self, **kwargs): # noqa: E501
6868
def list_exports_with_http_info(self, **kwargs): # noqa: E501
6969
"""List property video view export links # noqa: E501
7070
71-
Deprecated: The API has been replaced by the list-exports-views API call. Lists the available video view exports along with URLs to retrieve them. # noqa: E501
71+
The API has been replaced by the list-exports-views API call. Lists the available video view exports along with URLs to retrieve them. # noqa: E501
7272
This method makes a synchronous HTTP request by default. To make an
7373
asynchronous HTTP request, please pass async_req=True
7474

0 commit comments

Comments
 (0)