How to programmatically get the output path of a stream>muxing>outputDetails>OutputPath?

Hi,

How can I programmatically (using the JavaScript SDK) get this Output Path:

Thanks,

Alex.

Hi,
You will need a couple of steps for that :
1 - get the list of muxings :
GET https://api.bitmovin.com/v1/encoding/encodings/YOUR_ENCODING_ID/muxings/mp4

Then, in the data.result.items[0].outputs[0].outputPath, you will get the output path for the first muxing. Replace items[0] withitems[1] for se second one etc

1 Like

Thanks for your reply @ludovic.michaud. It helped a lot.

(For posterity) When using the JavaScript SDK this should look like (if you have the muxing.id):

const mp4 = await bitmovinApi.encoding.encodings.muxings.mp4.get(encoding.id, muxing.id)
console.log(mp4.outputs[0].outputPath)
1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.