From 675d43c0058de031249d650da619960c0db336c5 Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Wed, 6 Dec 2023 21:50:54 +0100 Subject: [PATCH] Enable RTMP when requesting playback over RTMP --- reolink_aio/api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reolink_aio/api.py b/reolink_aio/api.py index 48b0fb3..22d18cd 100644 --- a/reolink_aio/api.py +++ b/reolink_aio/api.py @@ -2075,6 +2075,12 @@ async def get_vod_source( # Since no request is made, make sure we are logged in. await self.login() + # RTMP port needs to be enabled for playback to work + if self._rtmp_enabled is None: + await self.get_state("GetNetPort") + if self._rtmp_enabled is False: + await self.set_net_port(enable_rtmp=True) + if self._use_https: http_s = "https" else: