/// <summary> /// Populates a video log with the basic video information /// </summary> public void PopulateSimpleVideoLog(SimpleVideoEventLog log) { #if VIDEOID log.VideoId = VideoId; #endif // add extra data that should be included with all video logs foreach (var item in AdditionalLogData) log.Data.Add(item.Key, item.Value); if (streamLoadedLog != null) log.RelatedLogId = streamLoadedLog.LogId; }
/// <summary> /// Allows you to programmatically create a custom video log. The log will be populated with certain basic video information. /// You still need to pass the log on to LoggingService.Current.Log(log); /// </summary> /// <param name="logType">A string value representing the type of your custom log.</param> /// <returns>The newly created log object.</returns> public SimpleVideoEventLog CreateVideoLog(string logType) { SimpleVideoEventLog log = new SimpleVideoEventLog(logType); PopulateSimpleVideoLog(log); return log; }