Add an option to force media to play without a letterbox
See original GitHub issueChecklist:
- 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:
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:
- Created a year ago
- Comments:15 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 …
And it does work indeed! Thank you very much!