millicast / millicast-sdk

SDK for building a realtime broadcaster using the Millicast platform.
Other
39 stars 30 forks source link

View class project method undocumented behaviour #471

Closed snoh666 closed 3 weeks ago

snoh666 commented 3 weeks ago

Within millicastSdk documenation method project (in Class View) does not accept sourceId to be anything than string, but when I pass value with type any (value = undefined | null). It works fine and selects Main source stream

await millicastView.project(sourceId, [...

Is that expected?

FabienLavocat commented 3 weeks ago

@snoh666 this is an expected behavior, as the SDK does not check the content of the variable that you pass. It is directly sent as a message to the web socket (see).