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

# canPlay

A Boolean value that indicates whether the Player is able to begin playback.

```
readonly attribute Boolean canPlay;
```

## Discussion

Even if this property is `false`, playback can be initiated by calling [`play`](/documentation/LivePhotosKitJS/LivePhotosKit.Player/play) or (if [`showsNativeControls`](/documentation/LivePhotosKitJS/LivePhotosKit.Player/showsNativeControls) is `true`) positioning the pointer over the LIVE badge.  When playback is attempted, if this value is `false`, every effort is made to load the rest of the required resources.  When successful, playback starts.

---

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)