Composables

UseCldVideoUrl

This composable is using @cloudinary-util/url-loader under the hood to generate the Cloudinary URL with certain optimizations.

Usage

Configuration for useCldVideoUrl is the same as useCldImageUrl.

<script lang="ts" setup>
const { url } = useCldVideoUrl({
  options: {
    src: "/videos/mountain-stars",
  },
});
</script>

The only difference is getCldVideoUrl provides the following default settings:

Option NameTypeDefault
assetTypestring"video"

Additionally, the transformations do not have access to image-specific transformations. Find more configuration settings over at useCldImageUrl configuration.