> ## Documentation Index
> Fetch the complete documentation index at: https://docs.median.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Kaltura media player

> Stream live and on-demand Kaltura video in a native player with AirPlay and Chromecast support, using the JavaScript Bridge.

Integrate Kaltura's media player into your mobile app to stream live and on-demand video content natively. The player includes built-in support for AirPlay and Google Chromecast, enabling streaming to compatible smart TVs and devices.

Kaltura is an enterprise video platform for video playback, content management, monetization, and analytics. The Kaltura Player supports adaptive bitrate streaming, a customizable player UI, closed captions, and playback analytics.

## Implementation guide

### Play a video

Median JavaScript Bridge

```javascript JavaScript theme={null}
median.kaltura.play({
  entryId: 'your_kaltura_entry_id',
  onError: 'errorCallbackFunction',     // Optional: name of a function to handle playback errors
  callback: 'successCallbackFunction'   // Optional: name of a function to run after playback starts
});
```

### Parameters

| Parameter | Type | Description |
| - | - | - |
| entryId | `string` | **Required**. The unique Kaltura video identifier (e.g., from your CMS). |
| onError | `string` | **Optional**. Name of a JavaScript function to be called if playback fails. |
| callback | `string` | **Optional**. Name of a JavaScript function to be called after playback starts. |

### Example implementation

Median JavaScript Bridge

```javascript JavaScript theme={null}
function handlePlaybackError(error) {
  console.error("Kaltura playback error:", error);
}

function handlePlaybackStart() {
  console.log("Kaltura video is now playing.");
}

median.kaltura.play({
  entryId: '1_abcd1234',
  onError: 'handlePlaybackError',
  callback: 'handlePlaybackStart'
});
```


## Related topics

- [Media](https://docs.median.co/docs/media.md)
- [Native media player](https://docs.median.co/docs/native-media-player.md)
- [JW Player](https://docs.median.co/docs/jwplayer.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.