Media object

Overview

A media object represents a piece of content uploaded to a FanHero channel to be used in a post.

A media object can have type Video, Audio or Image.

Media object properties

NameTypeDescription
idStringThe media ID
filenameStringName of the media file
channelStringThe channel ID
accountStringThe ID of the account that uploaded the media
typeStringMedia type. Can be Video, Audio or Image.
statusStringThe current status of the media.
uploadStringThe upload ID.
isAvatarBooleanIf True, this media is used as an avatar.
deletedBooleanIf True, this media has been deleted. This will be the case in the response of a successful Delete media endpoint.
createdAtDateTime StringDate and time when the media object was created.
updatedAtDateTime StringDate and time when the media object was last updated.
baseUrlStringThe base URL of the cloud storage where the media file is located.
imgPathStringFor media of type Image. The relative path to the image file in the storage. File can be accessed by concatenating the base URL with the relative path.
mp3PathStringFor media of type Audio. The relative path to the MP3 file in the storage. File can be accessed by concatenating the base URL with the relative path.
dashPathStringFor media of type Video. The relative path used in a DASH URL.
hlsPathStringFor media of type Video. The relative path to the HLS file in the storage. File can be accessed by concatenating the base URL with the relative path.
mp4PathStringFor media of type Video. The relative path to the MP4 file in the storage. File can be accessed by concatenating the base URL with the relative path.
durationNumberFor media of type Video. The duration of the content.
heightNumberFor media of type Video. The video height.
widthNumberFor media of type Video. The video width.
orientationStringFor media of type Video. The video orientation. Can be landscape or portrait.
thumbnailPathStringFor media of type Video. Path to the thumbnail image in the cloud storage.