subscribeAll method
Future<ProEventObserver?>
subscribeAll({
- dynamic withoutSysTime = false,
- dynamic withoutVideoCountdown = false,
will automatically call subscribeMulti with all available endpoints except for the endpoints that require specific ids:
audio/playlist/{id}/updates
library/{id}
media/playlist/{id}/updates
transport/{layer}/time
transport/{layer}/current
Implementation
Future<ProEventObserver?> subscribeAll({withoutSysTime = false, withoutVideoCountdown = false}) async {
var subs = [...ProApiSubbable.all];
if (withoutSysTime) subs.remove(ProApiSubbable.systemTime);
if (withoutVideoCountdown) subs.remove(ProApiSubbable.videoCountdown);
return subscribeMulti(subs);
}