Comments (6)
I'm trying to see what I can do with the onResize
event, but I haven't yet figured out how to trigger it:
onResize={(e) => {
// only gets called on initial page load
console.log('resized')
}}
from stream-react.
You can disable the padding-top
by passing responsive={false}
in on the <Stream />
component. This disables all styling that we apply so you're free to apply whatever styles you'd like!
Lemme know if this resolves the issue you're running into!
from stream-react.
Thanks @third774
Just started experimenting with that... Will post an update once I get it.
Is it expected for the onResize
event to never fire?
from stream-react.
Got the fix for the aspect ratio. Only missing part is vertical centering.
<div
style={{
position: 'relative',
paddingTop: '56.25%',
maxHeight: 'calc(100vh)',
}}
>
<div
style={{
position: 'absolute',
top: '0px',
left: '0px',
maxHeight: 'calc(100vh)',
pointerEvents: 'auto',
width: '100%',
height: '100%',
}}
>
<Stream
responsive={false}
width="100%"
height="100%"
style={{
width: '100%',
height: '100%',
overflow: 'hidden',
}}
muted
streamRef={videoRef}
controls
src="5d5bc37ffcf54c9b82e996823bffbb81"
/>
</div>
</div>
from stream-react.
Also, would it be feasible to get a style
prop added to the <Stream>
component? Else TS builds fail.
from stream-react.
Related Issues (20)
- pausing and playing VAST vidoes HOT 2
- For some users the player automatically pauses after ~1 second of playback HOT 2
- Custom full-screen button HOT 2
- 403 status code doesn't trigger any EventListener
- SVG play icon not consistently displaying on iOS HOT 3
- Play Icon is still on the screen after clicking "play" in Chrome and Firefox HOT 2
- Specifying Signed URL results in downloading the manifest m3u8 file HOT 2
- Inspecting error from onError callback HOT 2
- letterboxColor not supported HOT 3
- How can I access the video duration from the API? HOT 4
- Feature: Opensource the player which is being loaded in Iframe HOT 2
- How to hide this loader icon HOT 3
- Remix Run Support? HOT 1
- Add customerCode prop to use a unique subdomain HOT 3
- Multiple rerenders before changing the videoId causes unknown error occured message
- Apply `object-fit: cover` to the `<video/>` element HOT 5
- Feature: Enable a mechanism to show/hide captions on-demand
- Stream height HOT 2
- poster prop is not declarative (does not update poster when URL changes) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stream-react.