private static void HubtasticBaseStation_OnUpdateVideoFeed(object sender, VideoFeedDto videoFeedDto) { LiveFeedAnimator.ScreenAnchorLeft = videoFeedDto.X; LiveFeedAnimator.ScreenAnchorTop = videoFeedDto.Y; if (videoFeedDto.Scale == 0) { videoFeedDto.Scale = 1; } ObsManager.SizeAndPositionItem(LiveFeedAnimator, (float)videoFeedDto.Scale, 1, videoFeedDto.Rotation); }
static void OnUpdateVideoFeed(string videoFeedData) { VideoFeedDto videoFeedDto = JsonConvert.DeserializeObject <VideoFeedDto>(videoFeedData); UpdateVideoFeed?.Invoke(null, videoFeedDto); }