Members
URL for the script containing the basis_universal library.
a promise that when reslved means the transcoder is ready to be used
Generated URL for the transcoder worker script.
Handles responses from the web-worker
Methods
Loads the transcoder source code
| Name | Type | Description | 
|---|---|---|
jsURL | 
            
            string | 
                 URL to the javascript basis transcoder  | 
        
wasmURL | 
            
            string | 
                 URL to the wasm basis transcoder  | 
        
Returns:
| Type | Description | 
|---|---|
| Promise<[void, void]> | A promise that resolves when both the js and wasm transcoders have been loaded. | 
Set the transcoder source code directly
| Name | Type | Description | 
|---|---|---|
jsSource | 
            
            string | 
                 source for the javascript basis transcoder  | 
        
wasmSource | 
            
            ArrayBuffer | 
                 source for the wasm basis transcoder  | 
        
Returns:
| Type | Description | 
|---|---|
| Promise<void> | a promise that is resolved when the web-worker is initialized | 
Creates a promise that will resolve when the transcoding of a *.basis file is complete.
| 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<ITranscodeResponse> | a promise that is resolved with the transcoding response of the web-worker |