scanner-research / vgrid

Video metadata visualization and labeling UI component
https://scanner-research.github.io/vgrid/
7 stars 3 forks source link

Vgrid makes large videos too big #7

Closed DanFu09 closed 5 years ago

DanFu09 commented 5 years ago

Vgrid blows out thumbnails/the video player to the full width of the video - so if the full width of the video is bigger than the display area, you won't be able to see the full video. This is especially problematic for movies or phone videos that are usually 1080p+.

I had a super hacky solution in old vgrid - but it was just passing max width to vgrid as an option. The fundamental issue is that the React code sets the size of the thumbnails/video player, instead of CSS. It would be great if you could get the width of the containing div(s) programmatically into the React code.