2020-12-15 19:38:35 +08:00
|
|
|
using System;
|
|
|
|
using System.ComponentModel;
|
2019-08-22 01:26:18 +08:00
|
|
|
using System.Threading.Tasks;
|
2018-11-24 23:45:08 +08:00
|
|
|
|
|
|
|
namespace BililiveRecorder.Core
|
2018-10-24 14:33:05 +08:00
|
|
|
{
|
2020-12-15 19:38:35 +08:00
|
|
|
public interface IStreamMonitor : IDisposable, INotifyPropertyChanged
|
2018-10-24 14:33:05 +08:00
|
|
|
{
|
|
|
|
int Roomid { get; }
|
2018-11-24 23:45:08 +08:00
|
|
|
bool IsMonitoring { get; }
|
2020-12-15 19:38:35 +08:00
|
|
|
bool IsDanmakuConnected { get; }
|
2019-08-21 23:57:54 +08:00
|
|
|
event RoomInfoUpdatedEvent RoomInfoUpdated;
|
|
|
|
event StreamStartedEvent StreamStarted;
|
2018-11-24 23:45:08 +08:00
|
|
|
event ReceivedDanmakuEvt ReceivedDanmaku;
|
|
|
|
|
2018-10-24 14:33:05 +08:00
|
|
|
bool Start();
|
|
|
|
void Stop();
|
2018-12-18 00:16:24 +08:00
|
|
|
void Check(TriggerType type, int millisecondsDelay = 0);
|
2019-08-22 01:26:18 +08:00
|
|
|
Task<RoomInfo> FetchRoomInfoAsync();
|
2018-10-24 14:33:05 +08:00
|
|
|
}
|
|
|
|
}
|