---
title: "MediaError | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Variable MediaError

MediaError: {  
    MEDIA\_ERR\_ABORTED: 1;  
    MEDIA\_ERR\_DECODE: 3;  
    MEDIA\_ERR\_NETWORK: 2;  
    MEDIA\_ERR\_SRC\_NOT\_SUPPORTED: 4;  
    prototype: [MediaError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MediaError/);  
    new (): [MediaError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MediaError/);  
}

#### Type Declaration

-   -   new (): [MediaError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MediaError/)
    -   #### Returns [MediaError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MediaError/)
        
-   ##### `Readonly`MEDIA\_ERR\_ABORTED: 1
    
-   ##### `Readonly`MEDIA\_ERR\_DECODE: 3
    
-   ##### `Readonly`MEDIA\_ERR\_NETWORK: 2
    
-   ##### `Readonly`MEDIA\_ERR\_SRC\_NOT\_SUPPORTED: 4
    
-   ##### prototype: [MediaError](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.MediaError/)
