Function getEmbedUrl

  • Generate embed url for video url given with the given embed format

    Parameters

    • url: string
    • embed: undefined | "vimeo" | "youtube" | "youtu.be" | "soundcloud"

    Returns undefined | string