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
Modifier and TypeFieldDescriptionstatic final String
private long
The starting time of the video where user starts watching.private long
The 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_TIME
Fields inherited from class io.antmedia.analytic.model.AnalyticEvent
LOG_SOURCE_CLIENT, LOG_SOURCE_SERVER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
long
void
setStartTimeMs
(long startTimeMs) void
setWatchTimeMs
(long watchTimeMs) Methods inherited from class io.antmedia.analytic.model.PlayEvent
getClientIP, getProtocol, getSubscriberId, setClientIP, setProtocol, setSubscriberId
Methods inherited from class io.antmedia.analytic.model.AnalyticEvent
getApp, getEvent, getLogSource, getStreamId, getTimeMs, getToken, setApp, setEvent, setLogSource, setStreamId, 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)
-