genvid¶
Interfaces¶
Functions¶
-
UTF16ToString
(buf)¶ Converts an ArrayBuffer into a string, assuming UTF-16 encoding in native byte order.
Arguments: - buf – The ArrayBuffer containing binary UTF-16 data. A Uint16Array can also be used, allowing to view a subset of the data.
Returns: string The resulting decoded string.
-
UTF8ToString
(buf)¶ Converts an ArrayBuffer into a string, assuming UTF-8 encoding.
Arguments: - buf – The ArrayBuffer containing binary UTF-8 data. A Uint8Array can also be used, allowing to view a subset of the data.
Returns: string The resulting decoded string.
-
createGenvidClient
(apiStreams, url, token, videoDivId, reserved)¶ Creates a new GenvidClient
Arguments: - apiStreams (IStreamInfo) – The stream information
- url (string) – The URL to the Genvid service
- token (string) – The token needed for authentication
- videoDivId (string) – The id of the div element for the video
- reserved (any) –
Returns: IGenvidClient The Genvid client
-
createWebGLContext
(div)¶ Create a WebGL Context
Arguments: - div (HTMLCanvasElement) – The html div element
Returns: IWebGLContext The WebGL context