Skip to content

Commit

Permalink
Enable RTMP when requesting playback over RTMP
Browse files Browse the repository at this point in the history
  • Loading branch information
starkillerOG committed Dec 6, 2023
1 parent 27e5124 commit 675d43c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions reolink_aio/api.py
Expand Up @@ -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:
Expand Down

0 comments on commit 675d43c

Please sign in to comment.