fwestenberg / reolink_dev

Home Assistant Reolink addon
MIT License
550 stars 102 forks source link

Unable to stream on iPhone App or Safari #346

Closed timknowlden closed 2 years ago

timknowlden commented 2 years ago

Hi, Since latest update I am unable to stream on my iPhone, I have restarted Device, Refreshed Cache, Deleted and Re-installed the HA app. The Thumbnail opens but iPhone then freezes up and when it respoonds I have to crash the app.

It works fine on my wifes iPhone and on my Macbook in safari.

I have tried changing from RTMP to RTSP, h264 to h265 (a typo in the about me by the way), sub or main stream.

iPhone on iOS 15.1 HA 2021.10.6 Reolink IP camera installed by HACS v0.34 Camera E1 Zoom

timknowlden commented 2 years ago

This error originated from a custom integration.

Logger: aiohttp.server Source: custom_components/reolink_dev/camera.py:200 Integration: Reolink IP camera (documentation, issues) First occurred: 11:52:53 (1 occurrences) Last logged: 11:52:53

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request resp = await self._request_handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 499, in _handle resp = await handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 119, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 220, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 24, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 144, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 591, in get return await self.handle(request, camera) File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 631, in handle stream = await camera.handle_async_mjpeg_stream(request) File "/config/custom_components/reolink_dev/camera.py", line 200, in handle_async_mjpeg_stream await stream.open_camera(self._input, extra_cmd=self._extra_arguments) AttributeError: 'ReolinkCamera' object has no attribute '_input'

timknowlden commented 2 years ago

Am I alone with this issue?

The live view works in a custom button card. but not when opening the stream?

d3m3trius commented 2 years ago

looks like the same problem as #278

timknowlden commented 2 years ago

After changing the camera stream resolution, its working.

svsolopov commented 2 years ago

After changing the camera stream resolution, its working.

What resolution you set ?

timknowlden commented 2 years ago

Any resolution works. But changing the resolution from what it was in originally made it work.

timknowlden commented 2 years ago

![Uploading B1003AED-EB5C-47B5-BB60-517D825788C5.png…]()