# sourceOf

function in `@dioramajs/diorama/audio/graph`

```ts
import { sourceOf } from '@dioramajs/diorama/audio/graph'
```

The URL the element plays: its current source, else `src`, else its first `<source>`.

```ts
function sourceOf(media: HTMLMediaElement): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `media` | `HTMLMediaElement` |  |

Also exported from `@dioramajs/audio/graph`.

Defined in [packages/audio/src/graph.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/audio/src/graph.ts#L10).
