muxinc/mux-python

Uploading asset in Python is not working

Closed this issue · 0 comments

Hi

This is my code to upload my video to Mux via Python:

assets_api = mux_python.AssetsApi(mux_python.ApiClient(configuration))

# Create an Asset
input_settings = [mux_python.InputSettings(url=modelVideoFirebaseURL)]
create_asset_request = mux_python.CreateAssetRequest(input=input_settings, playback_policy=[mux_python.PlaybackPolicy.PUBLIC])
create_asset_response = assets_api.create_asset(create_asset_request=create_asset_request)

However, when I upload it I cannot view it in Assets (it says video is not public and is not viewable).

Also, when I view my video client side it says "Unsupported error" and that it is not playable on my browser.. But if I play a directly uploaded video on my client side it works.. The API does not work. Please help