MediaSource
in package
MediaSource Object
Represents a media source (encoding/flavor) available for a MediaObject
Table of Contents
Properties
- $bitrate : string|null
- Bitrate of the encoding
- $containerFormat : string|null
- Container format (mp4, webm, isom, flash video, etc.)
- $contentType : string|null
- MIME type of the media file
- $fileExt : string|null
- File extension (mp4, flv, etc.)
- $height : string|null
- Video height in pixels
- $isOriginal : string|null
- Whether this is the original uploaded file ("0" or "1")
- $size : string|null
- File size in bytes
- $url : string|null
- Direct URL to the media file
- $width : string|null
- Video width in pixels
Methods
- __construct() : mixed
- Constructor
- toArray() : array<string, mixed>
- Convert the object to an array
Properties
$bitrate
Bitrate of the encoding
public
string|null
$bitrate
= null
$containerFormat
Container format (mp4, webm, isom, flash video, etc.)
public
string|null
$containerFormat
= null
$contentType
MIME type of the media file
public
string|null
$contentType
= null
$fileExt
File extension (mp4, flv, etc.)
public
string|null
$fileExt
= null
$height
Video height in pixels
public
string|null
$height
= null
$isOriginal
Whether this is the original uploaded file ("0" or "1")
public
string|null
$isOriginal
= null
$size
File size in bytes
public
string|null
$size
= null
$url
Direct URL to the media file
public
string|null
$url
= null
$width
Video width in pixels
public
string|null
$width
= null
Methods
__construct()
Constructor
public
__construct([array<string, mixed> $data = [] ]) : mixed
Parameters
- $data : array<string, mixed> = []
-
The data to populate the object
toArray()
Convert the object to an array
public
toArray() : array<string, mixed>