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.44k stars 171 forks source link

"muted: true" not applied, sound still comes from all cameras #517

Open klugev303 opened 1 year ago

klugev303 commented 1 year ago

v.3.1.1 "muted: true" not applied, sound still comes from all cameras Previously, before updating the version, this parameter worked correctly!

my config:

type: custom:webrtc-camera
url: rtsp://rtsp:password*@10.168.15.100:554/Streaming/Channels/402
ui: true
muted: true
mode: mse
AlexxIT commented 1 year ago

Can't confirm this problem

stplatt commented 1 year ago

I'm having the opposite issue, I have muted: false in my config (also tried removing the line to use defaults) and the icon always starts as muted. Have to click the icon to get sound

AlexxIT commented 1 year ago

Some browsers not allowed autoplay for video with audio. So player autoenable mute in this situation.

stplatt commented 1 year ago

I'm seeing it in chrome and android webview. It works ok with version 3.1.1, the issue started with 3.2.1. I downgraded to 3.1.1 and it's working as expected again

stplatt commented 1 year ago

Here's my card:

type: custom:webrtc-camera
url: camera.evies_room_go2rtc
ui: true
muted: false
digital_ptz:
  mouse_drag_pan: true
  mouse_wheel_zoom: false
  mouse_double_click_zoom: true
  touch_pinch_zoom: true
  touch_drag_pan: true
  touch_tap_drag_zoom: true
ptz:
  opacity: 0.5
  service: amcrest.ptz_control
  data_left:
    entity_id: camera.evies_room
    movement: left
  data_right:
    entity_id: camera.evies_room
    movement: right
  data_up:
    entity_id: camera.evies_room
    movement: up
  data_down:
    entity_id: camera.evies_room
    movement: down
  data_zoom_in:
    entity_id: camera.evies_room
    movement: zoom_in
  data_zoom_out:
    entity_id: camera.evies_room
    movement: zoom_out
shortcuts:
  - name: Full room
    icon: mdi:application-brackets-outline
    service: amcrest.goto_preset
    service_data:
      entity_id: camera.evies_room
      preset: 1
  - name: Closet
    icon: mdi:hanger
    service: amcrest.goto_preset
    service_data:
      entity_id: camera.evies_room
      preset: 3
  - name: Bed
    icon: mdi:cradle
    service: amcrest.goto_preset
    service_data:
      entity_id: camera.evies_room
      preset: 2
style: >-
  .header {top: 6px; right: 5px} .mode {position: absolute; top: 0px; right:
  5px} .shortcuts {left: 6px: top: 6px; right: unset; display: flex;
  flex-direction: row; gap: 10px; opacity: 0.7; background: rgba(0, 0, 0, 0.25);
  border-radius: 5px}
jahpster commented 1 year ago

I'm having the opposite issue, I have muted: false in my config (also tried removing the line to use defaults) and the icon always starts as muted. Have to click the icon to get sound

I have the same issue, I'm using a cam as babymonitor that i cast as lovelace to a tv so i can't unmute. Worked in the previous version so I'll downgrade for now.

TheDescender commented 1 year ago

Can confirm this same issue. Cards remain muted upon load and can only be manually unmuted. muted: parameter seems to be non-functional.

tested on: Chrome, brave, edge, firefox

hankfic commented 7 months ago

been a while, having same issue. anyone updates on this?

opus-nbonenberger commented 6 days ago

For me it's the other way around. muted: false does start the stream muted.