Members
-
<static, readonly> list :Array.<VideoPlayer>
-
Description
The list of VideoPlayer
Details
-
<readonly> name :string
-
Description
The name of the videoPlayer
Details
-
<readonly> isNatif :boolean
-
Description
If true, the VideoPlayer wront be available for edit
Details
-
prefix :Array.<string>
-
Description
The prefix(s) for matching the url
Details
-
downloadable :boolean
-
Description
Tell if the server can download
Details
-
autoDownload :boolean
-
Description
Tell if the url used for downloading is an url in
Episode.linksDetails
-
<readonly> id
-
Description
The unique id of the videoPlayer
Details
Methods
-
toPublic() → {PublicVideoPlayer}
-
Description
Return the public information of the VideoPlayer (= the informations to give to the client)
Returns
Details
-
<protected> _dispatchOnComplete( emitter, recDownloadData )
-
Description
Fire the event "complete" on the emitter
Parameters
Name Type Description emitterevent.EventEmitter recDownloadDataReqDownloadData Details
-
<protected> _dispatchOnProgress( emitter, recDownloadData )
-
Description
Fire the event "progress" on the emitter
Parameters
Name Type Description emitterevent.EventEmitter recDownloadDataReqDownloadData Details
-
<protected> _dispatchOnError( emitter, err )
-
Description
Fire the event "error" on the emitter
Parameters
Name Type Description emitterevent.EventEmitter errstring Fires
Details
-
download( downloadUrl, format, fileName ) → {EventEmitter}
-
Description
Download the video using the given link (async)
Parameters
Name Type Description downloadUrlstring formatobject unused
fileNamestring Returns
Fires
Details
-
hasPrefix( url ) → {boolean}
-
Description
Compare the url with the prefix and return true if the url match a prefix in the prefix list
Parameters
Name Type Description urlstring Returns
Details
-
<static> getPlayer( url ) → {VideoPlayer}
-
Description
Return the first Videoplayer with its prefix matching the url
Parameters
Name Type Description urlstring Returns
Details
-
<static> getVideoPlayerById( id ) → {VideoPlayer}
-
Description
Return the video player corrisponding
Parameters
Name Type Description idnumber Returns
Details