muxinc / mux-ruby

Official Mux API wrapper for ruby projects, supporting both Mux Data and Mux Video.
MIT License
51 stars 14 forks source link

create_asset_request do not accept passthrough #50

Open Nodalailama opened 2 years ago

Nodalailama commented 2 years ago

Hi,

When creating a live_stream, I set a passthrough, it's work correctly except that asset created do not have the passthrough (even if the doc say so).

But when specify passthrough in create_asset_request like

MuxRuby::CreateAssetRequest.new({
  playback_policy: [MuxRuby::PlaybackPolicy::PUBLIC],
  passthrough: @passthrough
})

and also specify it in CreateLiveStreamRequest

MuxRuby::CreateLiveStreamRequest.new({
  playback_policy: [MuxRuby::PlaybackPolicy::PUBLIC], 
  new_asset_settings: new_asset_settings,
  passthrough: @passthrough
})

I got the following error message: "The field \"new_asset_settings.passthrough\" should be provided as \"passthrough\" and will returned for both the live stream and its assets."

So how I can get passthrough in asset produced by a live_stream ?