<!--
{
  "availability" : [
    "tvOS: 12.0.0 - 18.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "TVMLKit",
  "identifier" : "/documentation/TVMLKit/TVPlaybackEventMarshaling",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "TVMLKit"
    ],
    "preciseIdentifier" : "c:objc(pl)TVPlaybackEventMarshaling"
  },
  "title" : "TVPlaybackEventMarshaling"
}
-->

# TVPlaybackEventMarshaling

A protocol used for sending and receiving information across the JavaScript bridge.

```
protocol TVPlaybackEventMarshaling : NSObjectProtocol
```

## Overview

You must conform to this protocol in order to pass custom events.

## Topics

### Processing Playback Events

[`processReturnValue(value:in:)`](/documentation/TVMLKit/TVPlaybackEventMarshaling/processReturnValue(value:in:))

Converts a JavaScript value into a value that is readable in Swift or Objective-C.

[`properties`](/documentation/TVMLKit/TVPlaybackEventMarshaling/properties)

An array of custom playback event properties.

[`TVPlaybackEventProperty`](/documentation/TVMLKit/TVPlaybackEventProperty)

Extend this structure to create your own custom playback event properties.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)