# External Player Link

## Core Methods

### open

```
open(url, mediaId, episodeNumber)
```

Opens a URL in an external media player.

**Parameters**:

* `url`: string - URL to open in the external player
* `mediaId`: number - AniList media ID for tracking
* `episodeNumber`: number - Episode number for tracking

Example:

```javascript
// Open a video in an external player with tracking
ctx.externalPlayerLink.open(
  "https://example.com/videos/one-piece-1015.mkv",
  21,  // One Piece media ID
  1015 // Episode number
)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://seanime.gitbook.io/seanime-extensions/plugins/ui/anime-library/external-player-link.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
