MediaSourceManager
in package
Table of Contents
- $source : array<string|int, mixed>
- __construct() : mixed
- getSource() : MediaSource|null
- Returns the matching MediaSource object for the provided identifier will return null if unregistered
- getSources() : array<string|int, mixed>
- Returns an array of all currently registered MediaSource objects
- registerSource() : void
- Adds the provided MediaSource Shoutz0r uses this to know which files can be played, as well as show the correct information for the file details (front-end)
- toArray() : array<string|int, mixed>
- Returns an array of all currently registered MediaSource arrays
Properties
$source
private
array<string|int, mixed>
$source
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getSource()
Returns the matching MediaSource object for the provided identifier will return null if unregistered
public
getSource(string $identifier) : MediaSource|null
Parameters
- $identifier : string
Return values
MediaSource|null —getSources()
Returns an array of all currently registered MediaSource objects
public
getSources() : array<string|int, mixed>
Return values
array<string|int, mixed> —registerSource()
Adds the provided MediaSource Shoutz0r uses this to know which files can be played, as well as show the correct information for the file details (front-end)
public
registerSource(MediaSource $source) : void
Parameters
- $source : MediaSource
Tags
Return values
void —toArray()
Returns an array of all currently registered MediaSource arrays
public
toArray() : array<string|int, mixed>