-
Notifications
You must be signed in to change notification settings - Fork 40
video-wrapper display: none #10
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Hey @JuanDiego6998 thanks for the issue. Could you show me your code of It's set to |
Yeah of course.
That's the template for the component I am trying to use it in. |
@JuanDiego6998 Thanks for your code. Two things that come to mind:
Have a look at my demo page: Worst case is that you need to try to repeat the issue and upload it to GitHub or somewhere else so I can try it out. |
First of all, thanks for your help. I don't think it gives any console errors and the path resolves. I'll try using it in another view and let you know. Thanks again! |
@JuanDiego6998 Hey sorry, I was busy and could not reply to you. I have another question. When you remove the display: none of the video-wrapper, what happens? Does it show you the video and does it play it? And what happens if you use a normal source path like "/assets/video/timelapse.mp4" or something like that |
@JuanDiego6998 we are getting closer! I think I know what the problem is, not sure yet how to fix it. My guess is that you are using the Vue CLI. The problem is that the path of the video is dynamically changed. That means your poster I'm going to search for a solution. Edit1:First solution is to move your img and video to the public folder and use relative paths. |
@JuanDiego6998 ok this is it! You can read more about the issue here But one solution works totally fine is:
|
Thanks infinitely, you're awesome! It works like a charm. |
I just tried src="https://github.com/avidofood/vue-responsive-video-background-player/blob/master/demo/public/videos/roadster-loop-imperial.mp4?raw=true" and got similar problem. Nothing is shown. If I do like you prescribe, download the file and then use :src="require( |
@floydqwz Hey sorry, forgot to answer. But I'm super sure that the URL is not able to play videos at all. Change it to: https://avidofood.github.io/vue-responsive-video-background-player/demo/public/videos/roadster-loop-imperial.mp4 And it should work. I also tested another URL: http://grochtdreis.de/fuer-jsfiddle/video/sintel_trailer-480.mp4 and it works fine as well EDIT: EDIT2: |
@floydqwz I have added a patch. Now the links works. Thanks for your comment! |
Preciso reproduzir o audio do meu video e nao estou conseguindo |
The video-wrapper div inside the component has an inline display:none style that prevents the video from showing.

The text was updated successfully, but these errors were encountered: