public ActionResult NotifyPlaying(PlaylistPosition position) { SyncProvider.RecordPlay(new PlaylistPosition() {VideoIndex = position.VideoIndex, VideoTime = position.VideoTime}, DateTime.UtcNow ); return Json(new {reponse = "OK"}); }
public void RecordPlay(PlaylistPosition playerPosition, DateTime timeNoted) { PlayerReports.Add(new PlayerStatus() {PlayerPosition = playerPosition, TimeNoted = timeNoted}); }