Пример #1
0
        public async Task GetRoomState()
        {
            RoomState    roomState = RoomManager.GetRoom(ContextRoomId);
            PlaylistItem item      = roomState.Playlist.Count > 0 ? roomState.Playlist[0] : null;

            if (item != null)
            {
                item.CalculateStartTimeCorrection();
            }
            await Clients.Caller.RoomStateReceived(roomState != null, roomState);
        }