cloudflare / stream-react

BSD 3-Clause "New" or "Revised" License
164 stars 28 forks source link

Stream height #86

Open autsada opened 1 year ago

autsada commented 1 year ago

I have a div that contains a Stream component, I set the height of the div to 240px for mobile screens and 480px for large screens. The Stream component is rendered perfectly fit inside the div for large screens, but its height goes full screen for mobile screens (I tested on Chrome and Safari and they both have the same result). My question is how can we make the Stream height fit inside a div for mobile screens? Any suggestion?

third774 commented 9 months ago

Hey, there! Would you mind sharing a minimal example in https://codesandbox.io/?

IonelLupu commented 5 months ago

I have a problem with the height too. The first part of the video is the iphone simulator. As you can see, the video is playing with a small height. In the second part of the video I am showing the chrome browser and how it plays the video at the correct size.

The

https://github.com/cloudflare/stream-react/assets/4083652/4468752b-7a7a-4560-9687-4b4f9fa50e2e

I tried replicating but codesandbox is not the right tool: link