# TrackHandle

<a id="trackhandle"></a>

# TrackHandle

```cpp
#include <icy/webrtc/track.h>

struct TrackHandle
```

[Defined in src/webrtc/include/icy/webrtc/track.h:31](https://github.com/auscaster/icey/blob/main/src/webrtc/include/icy/webrtc/track.h#L31)

Result of creating a track: the track itself plus its RTP config. Keep the config around - you need it for [WebRtcTrackSender](https://auscaster.com/icey/docs/api-reference/icy-wrtc-WebRtcTrackSender.md#webrtctracksender).

## Public Attributes

| Return | Name | Description |
|--------|------|-------------|
| `std::shared_ptr< rtc::Track >` | [`track`](#track-1)  | The libdatachannel track added to the PeerConnection. |
| `std::shared_ptr< rtc::RtpPacketizationConfig >` | [`rtpConfig`](#rtpconfig)  | RTP packetization state required by [WebRtcTrackSender](https://auscaster.com/icey/docs/api-reference/icy-wrtc-WebRtcTrackSender.md#webrtctracksender). |

---

<a id="track-1"></a>

### track

```cpp
std::shared_ptr< rtc::Track > track
```

[Defined in src/webrtc/include/icy/webrtc/track.h:33](https://github.com/auscaster/icey/blob/main/src/webrtc/include/icy/webrtc/track.h#L33)

The libdatachannel track added to the PeerConnection.

---

<a id="rtpconfig"></a>

### rtpConfig

```cpp
std::shared_ptr< rtc::RtpPacketizationConfig > rtpConfig
```

[Defined in src/webrtc/include/icy/webrtc/track.h:34](https://github.com/auscaster/icey/blob/main/src/webrtc/include/icy/webrtc/track.h#L34)

RTP packetization state required by [WebRtcTrackSender](https://auscaster.com/icey/docs/api-reference/icy-wrtc-WebRtcTrackSender.md#webrtctracksender).
