Class WatchTimeEvent


public class WatchTimeEvent extends PlayEvent
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 Details

    • EVENT_WATCH_TIME

      public static final String EVENT_WATCH_TIME
      See Also:
    • watchTimeMs

      private long watchTimeMs
      The amount of duration where user watched this video.
    • startTimeMs

      private long startTimeMs
      The 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)