bitmovin / bitmovin-javascript

DEPRECATED: JavaScript client for the Bitmovin API, see https://github.com/bitmovin/bitmovin-api-sdk-javascript
MIT License
67 stars 23 forks source link

Expected 1 arguments, but got 0 #74

Closed josephlodero closed 6 years ago

josephlodero commented 6 years ago

Hi, can someone please help me with this error??

im following this example(https://github.com/bitmovin/bitmovin-javascript/blob/develop/examples/encoding/01_simple_encoding_dash_manifest.js) its in the line 286

image

Thanks!

lukaskroepfl commented 6 years ago

Hey! Thx for flagging, we'll have a look.

Domysee commented 6 years ago

Hi,

thanks for raising the issue, this is an error in the typing of our javascript library. For now passing an empty object (.start({})) should fix it.

josephlodero commented 6 years ago

Hi @Domysee

Thank you for your help.. putting a {} fixed the problem.. but i do have another error in this part of code. image

image

I really appreciate you help!

Thanks!

Domysee commented 6 years ago

Hi @josephlodero

The warning is because waitUntilEncodingFinished rejects with response.status, which is not an Error object.

if (response.status === 'ERROR') {
  return reject(response.status);
}

Unfortunately I can't really help you figuring out why the encoding errors in the first place, for that please contact our support.