Skip to content
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 not playing in mobile device #36

Open
Osman-Rafi opened this issue Jul 14, 2022 · 6 comments
Open

Video not playing in mobile device #36

Osman-Rafi opened this issue Jul 14, 2022 · 6 comments

Comments

@Osman-Rafi
Copy link

Hi,
Everything is working fine in desktop, but in mobile in only shows the poster without playing the video.
My code snippet

 <video-background
            :src="require('../../../../../public/media/video/login-bg.mp4')"
            style="height: 100vh"
            :poster="require('../../../../../public/img/login-bg-img.png')"
          >
            //some code
  </video-background>

Vue - 2.6.11
vue-responsive-video-background-player: ^1.3.1

@anluh
Copy link

anluh commented Jul 28, 2022

The same...

@pmochine
Copy link
Contributor

@Osman-Rafi @anluh could you please create a GitHub example that I can download? And which browser do you use for mobile?

@anluh
Copy link

anluh commented Jul 29, 2022

I'm using it with ionic inner browser (chrome). Testing on ios device.

@yiyasha15
Copy link

Were you able to fix this? @Osman-Rafi @anluh ?

@anluh
Copy link

anluh commented Oct 12, 2022

No

@robairhome
Copy link

robairhome commented Dec 4, 2022

I had this same issue. For me at least it wasn't a problem with the library as I replicated the same thing using html video.

This happened when I tried to put large video as the background. It worked fine on desktop, was stuttery on Firefox Mobile and wouldn't play at all on Chrome Mobile (it would just stay as the placeholder image). Its extra confusing as the video works fine in devtools simulating a mobile screen.

The solution was to just re-render the video at a lower resolution. I suspect Chrome has some feature on mobile that automatically won't play videos which will slow down the browser too much.

This was the video that wouldn't play https://www.pexels.com/video/couple-walking-on-a-beach-filmed-with-a-drone-857268/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants