Class AliRtcTranscodingText
Constructors
constructor
- new AliRtcTranscodingText(text, x, y, fontSize): AliRtcTranscodingText
Parameters
- text: string
- x: number
- y: number
- fontSize: number
- new AliRtcTranscodingText(text, x, y, fontSize, zOrder): AliRtcTranscodingText
Parameters
- text: string
- x: number
- y: number
- fontSize: number
- zOrder: number
- new AliRtcTranscodingText(text, x, y, fontSize, zOrder, fontColor): AliRtcTranscodingText
Parameters
- text: string
- x: number
- y: number
- fontSize: number
- zOrder: number
- fontColor: number
- new AliRtcTranscodingText(text, x, y, fontSize, zOrder, fontColor, fontType): AliRtcTranscodingText
Properties
fontColor
fontColor: number
Methods
toJson
- toJson(videoWidth, videoHeight): {
fontcolor: number;
fontsize: number;
fonttype: AliRtcLiveTranscodingFontType;
text: string;
x: number;
y: number;
zorder: number;
} Parameters
- videoWidth: number
- videoHeight: number
Returns {
fontcolor: number;
fontsize: number;
fonttype: AliRtcLiveTranscodingFontType;
text: string;
x: number;
y: number;
zorder: number;
}
fontcolor: number
fontsize: number
text: string
x: number
y: number
zorder: number