genvid

Interfaces

Variables

genvid.PlayerEvents

IVideoPlayer events constants

Type: genvid.IPlayerEvents()

Functions

genvid.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.

genvid.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.

genvid.createGenvidClient(apiStreams, url, token, videoDivId, reserved)

Creates a new GenvidClient

Arguments:
  • apiStreams (genvid.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:

genvid.IGenvidClient() The Genvid client

genvid.createWebGLContext(div)

Create a WebGL Context

Arguments:
  • div (HTMLCanvasElement()) – The html div element
Returns:

genvid.IWebGLContext() The WebGL context