---
title: TVPlaybackEvent
framework: tvmlkit
role: symbol
role_heading: Structure
path: tvmlkit/tvplaybackevent
---

# TVPlaybackEvent

Extend this structure to send your custom playback events to the JavaScript environment.

## Declaration

```swift
struct TVPlaybackEvent
```

## Topics

### Initializers

- [init(_:)](tvmlkit/tvplaybackevent/init(_:).md)
- [init(rawValue:)](tvmlkit/tvplaybackevent/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Controlling Playback

- [next()](tvmlkit/tvplayer/next().md)
- [pause()](tvmlkit/tvplayer/pause().md)
- [previous()](tvmlkit/tvplayer/previous().md)
- [state](tvmlkit/tvplayer/state.md)
- [TVPlaybackState](tvmlkit/tvplaybackstate.md)
- [dispatch(event:userInfo:completion:)](tvmlkit/tvplayer/dispatch(event:userinfo:completion:).md)
- [TVPlaybackEventMarshaling](tvmlkit/tvplaybackeventmarshaling.md)
- [TVPlaybackCustomEventUserInfo](tvmlkit/tvplaybackcustomeventuserinfo.md)
