question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add an option to force media to play without a letterbox

See original GitHub issue

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue: v3.0.0.

Last working release (if known): N/A

Browser and Operating System: Windows 10, Firefox 103.0b4 and Chrome 103.0.5060.66

Description of problem:

When going full screen, the camera feed is stretched to the maximum, cutting much of the feed: frigate_card_fullscreen1

I would rather expect that it fits height instead of width. Is this per design or is there some config option I need to change?

Additional information: My config:

 - type: custom:frigate-card
   cameras:
     - camera_entity: camera.main_2
     - camera_entity: camera.garage_2
     - camera_entity: camera.garden_2
   view:
     default: live
     timeout_seconds: 0
     update_cycle_camera: true
     actions:
       double_tap_action:
         action: custom:frigate-card-action
         frigate_card_action: fullscreen
   dimensions:
     aspect_ratio_mode: dynamic
     #aspect_ratio: '1/1'
   card_mod:
     style:
       .: |
         ha-card {
           border-radius: 4.75% !important;
         }
         .container {
           border-radius: 4.75% !important;
         }

The stream is 2560x1920, screenshot from ultrawide monitor.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
dermotduffycommented, Aug 2, 2022

Still planning to experiment with this!

I think we can do some of this by allowing the user to control the object-fit and object-position of the various forms of media the card supports. Notably absent is “zoom” / scale, I can’t find a clever way to do that that doesn’t result in the whole video component being scaled (i.e. including the video controls, possibly cutting them off, etc).

In short: I think this would cover @anarion80’s usecase, and at least some of @conorlap’s …

1reaction
anarion80commented, Sep 17, 2022

And it does work indeed! Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Change Aspect Ratio / Fix Incorrect Aspect Ratio in Plex
The simplest way to resize video to different aspect ratios in Plex Media Player is to press the Z key on the keyboard...
Read more >
Force VLC to display to fit full window/ Not fullscreen!
I want VLC to display media in its full window, By this i DON'T mean in full screen but in the reduced screen...
Read more >
Fix Stretched Video in VLC by Changing Aspect Ratio
Click on Add, and browse and add the current video. Click on Convert/Save. Converting Media in VLC. In the next step, don't forget ......
Read more >
HTPC - Settings - Support - Plex
Plex HTPC has numerous settings, accessible under the Settings menu, which can be found either at the bottom of the sidebar or from...
Read more >
Can VLC crop black borders on the fly? - Super User
Simply go to VLC Player preferences > Video (you must be in "All" mode, not "Simple" mode). On the right-hand side, scroll down...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found