UiSettings 類別


串流 UI 設定。
建構函式
constructor
方法
getLocale
傳回為串流設定的語言代碼。
setLocale
設定發布商提供的語言代碼。

建構函式


constructor

new UiSettings(): UiSettings
傳回
UiSettings

方法


getLocale

getLocale(): string
傳回為串流設定的語言代碼。
傳回
string

setLocale

setLocale(locale: string): void
設定發布商提供的語言代碼。您必須先呼叫這個方法,才能建立 StreamManager 例項。語言代碼會指定要顯示 UI 元素的語言。如要查看支援的代碼,請參閱 語言和地區設定的本地化
參數
locale: string 發布商提供的語言代碼。