---
title: SourceBuffer.textTracks
slug: Web/API/SourceBuffer/textTracks
tags:
  - API
  - Experimental
  - MSE
  - Media Source Extensions
  - Property
  - Reference
  - SourceBuffer
  - Video
  - textTracks
browser-compat: api.SourceBuffer.textTracks
---
{{APIRef("Media Source Extensions")}}{{SeeCompatTable}}

The **`textTracks`** read-only property of the
{{domxref("SourceBuffer")}} interface returns a list of the text tracks currently
contained inside the `SourceBuffer`.

## Syntax

```js
var myTextTracks = sourceBuffer.textTracks;
```

### Value

An {{domxref("TextTrackList")}} object.

## Example

TBD

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

## See also

- {{domxref("MediaSource")}}
- {{domxref("SourceBufferList")}}
