Members
URL for the script containing the basis_universal library.
Generated URL for the transcoder worker script.
Handles responses from the web-worker
Methods
Loads the transcoder source code
| Name | Type | Description |
|---|---|---|
jsURL |
string | |
wasmURL |
string |
Returns:
| Type | Description |
|---|---|
| Promise |
Set the transcoder source code directly
| Name | Type | Description |
|---|---|---|
jsSource |
string | |
wasmSource |
ArrayBuffer |
Returns:
| Type | Description |
|---|---|
| Promise | a promise that is resolved when the web-worker is initialized |
| Name | Type | Description |
|---|---|---|
basisData |
Uint8Array |
*.basis file contents |
rgbaFormat |
BASIS_FORMATS |
transcoding format for RGBA files |
rgbFormat |
BASIS_FORMATS |
transcoding format for RGB files |
Returns:
| Type | Description |
|---|---|
| Promise | a promise that is resolved with the transcoding response of the web-worker |