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

# photoMimeType

The MIME type of a photo asset.

```
attribute String photoMimeType;
```

## Discussion

The `MIME` type is either as detected from a network request for the asset (if the `MIME` type was provided as a URL on [`photoSrc`](/documentation/LivePhotosKitJS/LivePhotosKit.Player/photoSrc)) or as provided by the developer prior to assigning a prepared `ArrayBuffer` to [`photoSrc`](/documentation/LivePhotosKitJS/LivePhotosKit.Player/photoSrc).

This property, while writable, behaves as read-only if the photo was obtained through a network request to a string URL set on [`photoSrc`](/documentation/LivePhotosKitJS/LivePhotosKit.Player/photoSrc). In this case, writes to this property are ignored.

However, if the intent is to assign an already loaded `ArrayBuffer` to [`photoSrc`](/documentation/LivePhotosKitJS/LivePhotosKit.Player/photoSrc), you must set this property to the correct MIME type beforehand. This type is usually `image/jpeg`, but can vary if you provide a different image format. In that case, the property defaults to the value `image/jpeg`.

---

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)