Class: Media

Media

A Media represents a media information for Message in a Conversation.

Properties:
Name Type Argument Description
contentType String content type of media
sid String The server-assigned unique identifier for Media
size Number Size of media, bytes
filename String <optional>
file name if present, null otherwise

Methods


getContentTemporaryUrl()

Returns direct content URL for the media. This URL is impermanent, it will expire in several minutes and cannot be cached. If the URL becomes expired, you need to request a new one. Each call to this function produces a new temporary URL.
Returns:
Type
Promise.<String>