Function videoImageToUrl

  • The form of an image for a provider that takes image URLs: a string is returned as given, and a Buffer becomes a data: URL with the MIME type read from its first bytes.

    Parameters

    Returns string

    A URL the provider can send in a JSON body.