<!--
{
  "availability" : [
    "LivePhotosKit JS: 1.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LivePhotosKitJS",
  "identifier" : "/documentation/LivePhotosKitJS/LivePhotosKit.Player/wantsToPlay",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "LivePhotosKit JS"
    ],
    "preciseIdentifier" : "instp/LivePhotosKit.Player/wantsToPlay"
  },
  "title" : "wantsToPlay"
}
-->

# wantsToPlay

A boolean that indicates whether the Player has been instructed to play.

```
readonly attribute Boolean wantsToPlay;
```

## Discussion

This property indicates whether the Player has been instructed to play. If true, the Player has been instructed to play, although it may not actually be playing. This occurs when the user or developer has invoked [`play`](/documentation/LivePhotosKitJS/LivePhotosKit.Player/play) without all the required resources having loaded yet. When the resources are done loading, if `wantsToPlay` is still `true`, playback begins automatically.

---

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)