<!--
{
  "availability" : [
    "LivePhotosKit JS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LivePhotosKitJS",
  "identifier" : "/documentation/LivePhotosKitJS/LivePhotosKit.Player/play",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "LivePhotosKit JS"
    ],
    "preciseIdentifier" : "instm/LivePhotosKit.Player/play"
  },
  "title" : "play"
}
-->

# play

Starts playback if the player is ready, or resumes playback if the player is paused.

```
Boolean play();
```

## Return Value

`true` if the player starts or resumes playback; otherwise, `false`.

## Discussion

If the playback completes, this method fires the `ended` event. If the playback is paused (and not resumed) or stopped, the `ended` event is not fired.

---

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)