Documentation

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

Methods

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>

toArray()

Returns an array of all currently registered MediaSource arrays

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results