---
title: "creationRequestForAssetFromVideo(atFileURL:)"
framework: photos
role: symbol
role_heading: Type Method
path: "photos/phassetchangerequest/creationrequestforassetfromvideo(atfileurl:)"
---

# creationRequestForAssetFromVideo(atFileURL:)

Creates a request for adding a new video asset to the Photos library, using the video file at the specified URL.

## Declaration

```swift
class func creationRequestForAssetFromVideo(atFileURL fileURL: URL) -> Self?
```

## Parameters

- `fileURL`: A URL for a video file.

## Return Value

Return Value An asset creation request.

## Discussion

Discussion Call this method within a photo library change block to create a new asset. For details on change blocks, see PHPhotoLibrary. To set metadata properties of the newly created asset, use the corresponding properties of the change request (listed in Modifying Assets). To reference the newly created asset later in the same change block or after the change block completes, use the placeholderForCreatedAsset property to retrieve a placeholder object.

## See Also

### Adding New Assets

- [creationRequestForAsset(from:)](photos/phassetchangerequest/creationrequestforasset(from:).md)
- [creationRequestForAssetFromImage(atFileURL:)](photos/phassetchangerequest/creationrequestforassetfromimage(atfileurl:).md)
- [placeholderForCreatedAsset](photos/phassetchangerequest/placeholderforcreatedasset.md)
