---
title: "HTMLMediaElement | 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 HTMLMediaElement

HTMLMediaElement: {  
    HAVE\_CURRENT\_DATA: 2;  
    HAVE\_ENOUGH\_DATA: 4;  
    HAVE\_FUTURE\_DATA: 3;  
    HAVE\_METADATA: 1;  
    HAVE\_NOTHING: 0;  
    NETWORK\_EMPTY: 0;  
    NETWORK\_IDLE: 1;  
    NETWORK\_LOADING: 2;  
    NETWORK\_NO\_SOURCE: 3;  
    prototype: [HTMLMediaElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLMediaElement/);  
    new (): [HTMLMediaElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLMediaElement/);  
}

#### Type Declaration

-   -   new (): [HTMLMediaElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLMediaElement/)
    -   #### Returns [HTMLMediaElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLMediaElement/)
        
-   ##### `Readonly`HAVE\_CURRENT\_DATA: 2
    
-   ##### `Readonly`HAVE\_ENOUGH\_DATA: 4
    
-   ##### `Readonly`HAVE\_FUTURE\_DATA: 3
    
-   ##### `Readonly`HAVE\_METADATA: 1
    
-   ##### `Readonly`HAVE\_NOTHING: 0
    
-   ##### `Readonly`NETWORK\_EMPTY: 0
    
-   ##### `Readonly`NETWORK\_IDLE: 1
    
-   ##### `Readonly`NETWORK\_LOADING: 2
    
-   ##### `Readonly`NETWORK\_NO\_SOURCE: 3
    
-   ##### prototype: [HTMLMediaElement](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.HTMLMediaElement/)
