Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

bug-568: fix for "media_source.async_resolve_media without passing an… #600

Merged
merged 1 commit into from
Dec 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion custom_components/reolink_dev/media_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@

from homeassistant.helpers.event import async_call_later

from homeassistant.components.camera import DynamicStreamSettings

from .base import ReolinkBase, searchtime_to_datetime

# from . import typings
Expand Down Expand Up @@ -126,7 +128,7 @@ async def async_resolve_media(self, item: MediaSourceItem) -> PlayMedia:

url = await base.api.get_vod_source(file)
_LOGGER.debug("Load VOD %s", url)
stream = create_stream(self.hass, url, {})
stream = create_stream(self.hass, url, {}, DynamicStreamSettings())
stream.add_provider("hls", timeout=3600)
url: str = stream.endpoint_url("hls")
# the media browser seems to have a problem with the master_playlist
Expand Down