2018-11-03 07:45:56 +08:00
|
|
|
using System;
|
2018-10-24 14:33:05 +08:00
|
|
|
using System.ComponentModel;
|
2020-12-20 20:56:40 +08:00
|
|
|
using BililiveRecorder.Core.Callback;
|
2021-01-01 14:46:27 +08:00
|
|
|
using BililiveRecorder.Core.Config.V2;
|
2020-12-12 23:19:47 +08:00
|
|
|
using BililiveRecorder.FlvProcessor;
|
2018-10-24 14:33:05 +08:00
|
|
|
|
2020-12-20 20:56:40 +08:00
|
|
|
#nullable enable
|
2018-10-24 14:33:05 +08:00
|
|
|
namespace BililiveRecorder.Core
|
|
|
|
{
|
2018-11-24 23:45:08 +08:00
|
|
|
public interface IRecordedRoom : INotifyPropertyChanged, IDisposable
|
2018-10-24 14:33:05 +08:00
|
|
|
{
|
2020-12-05 18:30:04 +08:00
|
|
|
Guid Guid { get; }
|
|
|
|
|
2021-01-01 14:46:27 +08:00
|
|
|
RoomConfig RoomConfig { get; }
|
|
|
|
|
2019-08-22 01:26:18 +08:00
|
|
|
int ShortRoomId { get; }
|
|
|
|
int RoomId { get; }
|
2018-10-24 14:33:05 +08:00
|
|
|
string StreamerName { get; }
|
2020-12-20 20:56:40 +08:00
|
|
|
string Title { get; }
|
|
|
|
|
|
|
|
event EventHandler<RecordEndData>? RecordEnded;
|
2018-10-24 14:33:05 +08:00
|
|
|
|
|
|
|
IStreamMonitor StreamMonitor { get; }
|
2020-12-20 20:56:40 +08:00
|
|
|
IFlvStreamProcessor? Processor { get; }
|
2018-10-24 14:33:05 +08:00
|
|
|
|
|
|
|
bool IsMonitoring { get; }
|
|
|
|
bool IsRecording { get; }
|
2020-12-15 19:38:35 +08:00
|
|
|
bool IsDanmakuConnected { get; }
|
2020-12-12 23:19:47 +08:00
|
|
|
bool IsStreaming { get; }
|
2018-10-24 14:33:05 +08:00
|
|
|
|
2018-11-03 07:45:56 +08:00
|
|
|
double DownloadSpeedPersentage { get; }
|
2019-11-24 09:08:29 +08:00
|
|
|
double DownloadSpeedMegaBitps { get; }
|
2018-10-24 14:33:05 +08:00
|
|
|
DateTime LastUpdateDateTime { get; }
|
|
|
|
|
2018-10-31 06:22:38 +08:00
|
|
|
void Clip();
|
|
|
|
|
2018-10-24 14:33:05 +08:00
|
|
|
bool Start();
|
|
|
|
void Stop();
|
|
|
|
|
|
|
|
void StartRecord();
|
|
|
|
void StopRecord();
|
|
|
|
|
2019-08-21 23:57:54 +08:00
|
|
|
void RefreshRoomInfo();
|
|
|
|
|
2018-10-30 20:33:44 +08:00
|
|
|
void Shutdown();
|
2018-10-24 14:33:05 +08:00
|
|
|
}
|
|
|
|
}
|