Package io.antmedia.analytic.model
Class WatchTimeEvent
java.lang.Object
io.antmedia.analytic.model.AnalyticEvent
io.antmedia.analytic.model.PlayEvent
io.antmedia.analytic.model.WatchTimeEvent
Event received from player.
It's received periodically from the player side
It's good to calculate the total amount of watch time of the stream(live, vod) and
which parts of the video watch most
Assume that we this event with startTimeMs: 10000 and watchTimeMs: 5000
it means that User has watched the video for 5 seconds and it's between 10 secs - 15 secs of the video
- Author:
- mekya
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate longThe starting time of the video where user starts watching.private longThe amount of duration where user watched this video.Fields inherited from class io.antmedia.analytic.model.PlayEvent
EVENT_PLAY_ENDED, EVENT_PLAY_PAUSED, EVENT_PLAY_STARTED, EVENT_PLAY_STARTED_FIRST_TIMEFields inherited from class io.antmedia.analytic.model.AnalyticEvent
LOG_SOURCE_CLIENT, LOG_SOURCE_SERVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongvoidsetStartTimeMs(long startTimeMs) voidsetWatchTimeMs(long watchTimeMs) Methods inherited from class io.antmedia.analytic.model.PlayEvent
getClientIP, getProtocol, setClientIP, setProtocolMethods inherited from class io.antmedia.analytic.model.AnalyticEvent
getApp, getEvent, getLogSource, getStreamId, getSubscriberId, getTimeMs, getToken, setApp, setEvent, setLogSource, setStreamId, setSubscriberId, setTimeMs, setToken
-
Field Details
-
EVENT_WATCH_TIME
- See Also:
-
watchTimeMs
private long watchTimeMsThe amount of duration where user watched this video. -
startTimeMs
private long startTimeMsThe starting time of the video where user starts watching. It's the part of video time.
-
-
Constructor Details
-
WatchTimeEvent
public WatchTimeEvent()
-
-
Method Details
-
getStartTimeMs
public long getStartTimeMs() -
setStartTimeMs
public void setStartTimeMs(long startTimeMs) -
getWatchTimeMs
public long getWatchTimeMs() -
setWatchTimeMs
public void setWatchTimeMs(long watchTimeMs)
-