videoEmbedUrl
The embeddable player URL for a pasted video link, or `null` when the value is empty, names no provider, or names one that is not embeddable video.
The embeddable player URL for a pasted video link, or null when the value is
empty, names no provider, or names one that is not embeddable video.
Only YouTube and Vimeo embed; every other provider returns null.
Import from @homepages/template-kit.
Signature
Section titled “Signature”function videoEmbedUrl(raw: string): string | nullParameters
Section titled “Parameters”| Name | Type | Required | Description |
|---|---|---|---|
raw |
string |
required |
Returns
Section titled “Returns”string | null
See also
Section titled “See also”acceptsLinkcollectionForSlotisLinkAcceptsmatchLinkProvidertourEmbedUrlCOLLECTIONSCONTENT_SLOT_TYPESDECISION_TYPESLINK_KINDSLINK_PROVIDERSLINK_STRATEGIESREF_SLOT_TYPESREFERRAL_FIELDSREFERRAL_IMAGE_FIELDSSLOT_TYPESSOURCE_FIELDSVIDEO_SOURCESLinkProviderCollectionFieldCollectionIdKeyCollectionOwnershipContentSlotTypeDecisionTypeLinkKindLinkProviderIdLinkStrategyReferralFieldReferralImageFieldRefSlotTypeSlotTypeSourceFieldContainerSourceFieldDescriptorSourceFieldNameSourceFieldValueTypeVideoSourceWritebackTarget