-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video stops playing after a while, with no console error #31
Comments
var React = require('react'); var bgImgSrc = require('../assets/images/bg.jpg'); var bgVideoSrc = require('../assets/videos/video-5.mp4'); var Main = React.createClass({ render: function() { {this.props.children} ); } }); module.exports = Main; |
I don't think you would require the assets like that. Just provide the public paths to them as strings, e.g. To be honest, I'm not sure what requiring files like that would do... I guess it would depend on your build system? Maybe you're doing something with webpack loaders here? Perhaps you can explain more, or, provide the generated snippet from your build system. Or console errors would be helpful. |
Oh, just re-read the title -- you said, no console error! Definitely curious. Any extra info you can provide would be super helpful. |
I don't know what's going on. I thought it was something wrong with this plugin. And then I rewrote it in my own way (notice I am a totally beginner so my code might not be great). And it happens exactly the same. I think it might be something to do with Chrome. Haven't been able to solve it. |
Video doesn't loop.
The text was updated successfully, but these errors were encountered: