AbstractVodWatchingInformationService

AbstractVodWatchingInformationService ⇐ Abstract

Kind: global abstract class
Extends: Abstract
Mixes: MServiceCache
Service:
Properties

NameTypeDescription
minSeeknumber

Min value for save the seek (percent)

maxSeeknumber

Max value for save the seek (percent)

mediaProgressIntervalnumber

interval for update status

mediaCompletedPercentnumber

After that value, media is considered finished (percent)

AbstractVodWatchingInformationService()

Vod watching information service send statistic

getCurrentlyWatchingMedias() ⇒ Promise.<Array.<AbstractVodMedia>, Error>

Kind: instance method of AbstractVodWatchingInformationService
Returns: Promise.<Array.<AbstractVodMedia>, Error> - A Promise resolved with an array of AbstractVodMedia

getCurrentlyWatchingAdultMedias() ⇒ Promise.<Array.<AbstractVodMedia>, Error>

Kind: instance method of AbstractVodWatchingInformationService
Returns: Promise.<Array.<AbstractVodMedia>, Error> - A Promise resolved with an array of AbstractVodMedia

setMediaSeek(vodMedia, seek, options) ⇒ Promise

Kind: instance method of AbstractVodWatchingInformationService

ParamType
vodMediaAbstractVodMedia
seeknumber
optionsObject

mediaIsLoading(mediaId) ⇒ Promise.<boolean, Error>

Kind: instance method of AbstractVodWatchingInformationService

ParamType
mediaIdstring

mediaIsPlaying(mediaId) ⇒ Promise.<boolean, Error>

Kind: instance method of AbstractVodWatchingInformationService

ParamType
mediaIdstring

mediaIsInProgess(mediaId, progress) ⇒ Promise.<*, Error>

Progress -> percentage of the total duration of the video

Kind: instance method of AbstractVodWatchingInformationService

ParamType
mediaIdstring
progressnumber

mediaIsInPosition(mediaId, position) ⇒ Promise.<*, Error>

Position -> position in ms

Kind: instance method of AbstractVodWatchingInformationService

ParamType
mediaIdstring
positionnumber

mediaIsIsCompleted(mediaId) ⇒ Promise.<boolean, Error>

Kind: instance method of AbstractVodWatchingInformationService

ParamType
mediaIdstring

_getCurrentlyWatchingMedias(options) ⇒ Promise.<*, Error>

Kind: instance abstract method of AbstractVodWatchingInformationService
Access: protected

ParamType
optionsObject

_setMediaSeek(vodMedia, seek, options) ⇒ Promise.<*, Error>

Kind: instance abstract method of AbstractVodWatchingInformationService
Access: protected

ParamType
vodMediaAbstractVodMedia
seeknumber
optionsObject

_mediaIsLoading(mediaId) ⇒ Promise.<boolean, Error>

Kind: instance abstract method of AbstractVodWatchingInformationService
Access: protected

ParamType
mediaIdstring

_mediaIsPlaying(mediaId) ⇒ Promise.<boolean, Error>

Kind: instance abstract method of AbstractVodWatchingInformationService
Access: protected

ParamType
mediaIdstring

_mediaIsInProgess(mediaId, progress) ⇒ Promise.<boolean, Error>

Kind: instance abstract method of AbstractVodWatchingInformationService
Access: protected

ParamType
mediaIdstring
progressnumber

_mediaIsInPosition(mediaId, position) ⇒ Promise.<boolean, Error>

Kind: instance abstract method of AbstractVodWatchingInformationService
Access: protected

ParamType
mediaIdstring
positionnumber

_mediaIsIsCompleted(mediaId) ⇒ Promise.<boolean, Error>

Kind: instance abstract method of AbstractVodWatchingInformationService
Access: protected

ParamType
mediaIdstring