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

Video stream not resized on Android #553

Open
rik1984 opened this issue Aug 23, 2023 · 1 comment
Open

Video stream not resized on Android #553

rik1984 opened this issue Aug 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@rik1984
Copy link

rik1984 commented Aug 23, 2023

The video stream is not resized into the frame on the Android HA Dashboard. It worked fine and I supposed it was going wrong since the last update. Probably related to this change: #21 ?
Screenshot_20230823_115807_Home Assistant

The strange part is is that it works fine on Windows Chrome:
Schermafbeelding 2023-08-23 115759

I've tried to experiment with the style parameters, like this:
style: "video {object-fit: cover; object-position: left top;}"
I tried scale-down, cover, contain, fill but all without the desired effect

The code I use in the dashboard is:

  - icon: mdi:cctv
    type: custom:vertical-layout
    theme: noctis
    layout:
      max_cols: 1
    cards:          
      - type: custom:webrtc-camera
        url: rtsp://xxxx@xxxx:88/videoMain
      - type: custom:webrtc-camera
        url: rtsp://xxxxx@xxxx:554/videoMain
@AlexxIT AlexxIT added the bug Something isn't working label Aug 23, 2023
@exee25
Copy link

exee25 commented Jul 17, 2024

try to add in your lovelace

 digital_ptz: false

if you haven't add this code, you can double click the screen to zoom in (digital zoom), and you also can double click to change 1x original zoom on your android phone

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

3 participants