---
title: "livePhotoView(_:willBeginPlaybackWith:)"
framework: photosui
role: symbol
role_heading: Instance Method
path: "photosui/phlivephotoviewdelegate/livephotoview(_:willbeginplaybackwith:)"
---

# livePhotoView(_:willBeginPlaybackWith:)

Notifies the delegate when Live Photos playback is beginning.

## Declaration

```swift
optional func livePhotoView(_ livePhotoView: PHLivePhotoView, willBeginPlaybackWith playbackStyle: PHLivePhotoViewPlaybackStyle)
```

## Parameters

- `livePhotoView`: The view beginning playback of Live Photo content.
- `playbackStyle`: The style of playback, indicating whether the content is to play in full or as a brief preview.

## See Also

### Responding to Live Photos Playback Events

- [livePhotoView(_:canBeginPlaybackWith:)](photosui/phlivephotoviewdelegate/livephotoview(_:canbeginplaybackwith:).md)
- [livePhotoView(_:didEndPlaybackWith:)](photosui/phlivephotoviewdelegate/livephotoview(_:didendplaybackwith:).md)
- [livePhotoView(_:extraMinimumTouchDurationFor:with:)](photosui/phlivephotoviewdelegate/livephotoview(_:extraminimumtouchdurationfor:with:).md)
