AlexxIT / WebRTC

Home Assistant custom component for real-time viewing of almost any camera stream using WebRTC and other technologies.
https://github.com/AlexxIT/Blog
MIT License
1.55k stars 183 forks source link

Problems with the Stream / Delay on Reolink E1 Outdoor Pro #712

Open groover0815 opened 5 months ago

groover0815 commented 5 months ago

Hi everyone!

Screenshot 2024-06-17 080056

I have installed the webrtc plugin. Unfortunately, I always have a misfire on my Home Assistant screen on the Fire tablet (current generation, purchased new in 2024) or it takes some time when Fully Kiosk wakes up from “standby”. The original Reolink plugin is actually there immediately. But I want to use Webrtc as this streams live better. Reolink has an offset of approx. 5 to 10 seconds. What can I do? Also, why does the webrtc plugin show me a play/pause button on the screen? Can I deactivate this somehow? I don’t need that. Thank you! Here is my config:

type: custom:webrtc-camera
url: rtsp://admin:password@[192.xxx.xxx.xxx:554/h264Preview_01_sub](http://192.xxx.xxx.xxx:554/h264Preview_01_sub)
media: video
mode: webrtc
style: ‘.mode {display: none}’‘.pictureinpicture {display: none}’‘’
background: true
ptz:
service: onvif.ptz
data_left:
entity_id: camera.kamera_haustuer_profile000_mainstream
pan: LEFT
speed: 0.5
distance: 0.1
move_mode: ContinuousMove
data_right:
entity_id: camera.kamera_haustuer_profile000_mainstream
pan: RIGHT
speed: 0.5
distance: 0.1
move_mode: ContinuousMove
data_up:
entity_id: camera.kamera_haustuer_profile000_mainstream
tilt: UP
speed: 0.5
distance: 0.1
move_mode: ContinuousMove
data_down:
entity_id: camera.kamera_haustuer_profile000_mainstream
tilt: DOWN
speed: 0.5
distance: 0.1
move_mode: ContinuousMove
data_zoom_in:
entity_id: camera.kamera_haustuer_profile000_mainstream
zoom: ZOOM_IN
speed: 0.5
distance: 0.3
move_mode: ContinuousMove
data_zoom_out:
entity_id: camera.kamera_haustuer_profile000_mainstream
zoom: ZOOM_OUT
speed: 0.5
distance: 0.3
move_mode: ContinuousMove

You will find the Pause / Play Button in the picture that I attached!

AlexxIT commented 5 months ago

Stream may have start delay if stream is already active https://github.com/AlexxIT/go2rtc/issues/96

groover0815 commented 5 months ago

THX AlexIt, but I didn´t understand your answer!

AlexxIT commented 5 months ago

Active stream means that some one watching it right now. WebRTC stream is active during 30 seconds after closing webpage.

Also WebRTC stream had increased start time on old go2rtc version. If you using version from this integration - you probably using old one. https://github.com/AlexxIT/go2rtc/releases/tag/v1.9.2