Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WEBRTC Option - No auto mute #1672

Open
ddanielww opened this issue Nov 4, 2024 · 7 comments
Open

WEBRTC Option - No auto mute #1672

ddanielww opened this issue Nov 4, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@ddanielww
Copy link

The webrtc card works better then the go2rtc option for me (go2rtc does not play well on mobile, no audio etc).

The webrtc card is great, however, it plays audio by default, anyway for this to be muted by default on live streams?

@ddanielww ddanielww added the bug Something isn't working label Nov 4, 2024
@ddanielww
Copy link
Author

ddanielww commented Nov 4, 2024

If we could add these options it would make this card very useful please

Start stream muted.
muted: true

hide the mode option would be nice as it gets in the way of the mute button on mobile.
style: '.mode {display: none}'

https://github.com/AlexxIT/WebRTC

Available in the card so just need to add to the frigate card somehow ?

@doctorkb
Copy link

doctorkb commented Nov 4, 2024

Duplicate of #1654

@ddanielww
Copy link
Author

can the audio and removing mode be implemented for the webrtc card?

Happy to provide logs etc but it's super easy to replicate

Start stream muted.
muted: true

hide the mode option would be nice as it gets in the way of the mute button on mobile.
style: '.mode {display: none}'

https://github.com/AlexxIT/WebRTC

@doctorkb
Copy link

doctorkb commented Nov 4, 2024

This card configuration is auto-muting for me on the latest Frigate Card beta:

type: custom:frigate-card
cameras:
  - camera_entity: camera.backyard
    webrtc_card:
      entity: camera.backyard
    triggers:
      occupancy: false
    go2rtc:
      modes:
        - webrtc
    live_provider: webrtc-card
    title: Back Yard
menu:
  buttons:
    frigate:
      enabled: false
    cameras:
      enabled: false
    substreams:
      enabled: false
    live:
      enabled: false
    clips:
      enabled: false
    snapshots:
      enabled: false
    download:
      enabled: false
    camera_ui:
      enabled: false
    fullscreen:
      enabled: false
    timeline:
      enabled: false
    expand:
      enabled: true
    media_player:
      enabled: false
    microphone:
      enabled: true
    mute:
      enabled: true
    screenshot:
      enabled: true
  style: hover
  alignment: right
  position: bottom
live:
  draggable: false
  zoomable: false
  lazy_load: false
  show_image_during_load: true
  controls:
    builtin: false
  microphone:
    mute_after_microphone_mute_seconds: 1
    disconnect_seconds: 1
  auto_mute:
    - microphone
  display:
    mode: single
view:
  default: live
  camera_select: live
  dark_mode: "off"
timeline:
  show_recordings: false
performance:
  style:
    border_radius: false
    box_shadow: false
dimensions:
  aspect_ratio_mode: dynamic
status_bar:
  style: none

@ddanielww
Copy link
Author

ddanielww commented Nov 4, 2024

Defaults to unmuted / audio enabled.

type: custom:frigate-card
cameras:

  • camera_entity: camera.camera1
    go2rtc:
    modes:
    - webrtc
    live_provider: webrtc-card

Defaults to muted

type: custom:frigate-card
cameras:

  • camera_entity: camera.camera1
    go2rtc:
    modes:
    - webrtc
    live_provider: go2rtc

This is super easy to replicate, it is because the webrtc card defaults to unmute.

https://github.com/AlexxIT/WebRTC

We need a way to send parameters to the card as shown below.

Start stream muted.

muted: true

hide the mode option would be nice as it gets in the way of the mute button on mobile.

style: '.mode {display: none}'

@doctorkb
Copy link

doctorkb commented Nov 4, 2024

Try what I posted. It uses the webrtc card and loads muted. You may need to update your frigate-hass-card to a beta version.

Also, as I noted, this is a duplicate report of another issue. Tradition says you use the oldest open issue to discuss to keep it in one place.

@ddanielww
Copy link
Author

Okay this works...

The key is not to use the built-in controls and add these to the frigate menu.

I think people that are reporting this are using the inbuilt controls.

I am happy with this now.

or if you are using the build in controls add

type: custom:frigate-card
cameras:

  • camera_entity: camera.camera
    webrtc_card:
    entity: camera.simba_2
    style: '.mode {display: none}' < removes mode
    muted: true. < defaults to muted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants