# encodeNamespaceName

URL: https://www.caprid.com/docs/reference/typescript/caprid/moq-media/functions/encodenamespacename/

```ts
function encodeNamespaceName(namespace, trackName): string;
```

Defined in: [source.ts:23](https://github.com/caprids/relay-sdks/blob/main/ts/packages/moq-media/src/source.ts#L23)

The MSF string form of a full track name: each namespace field encoded with [encodeNameComponent](https://www.caprid.com/docs/reference/typescript/caprid/moq-media/functions/encodenamecomponent/) and joined
with `-`, then `--` and the encoded track name.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `namespace` | readonly `string`[] |
| `trackName` | `string` |

## Returns

`string`
