vue-responsive-video-background-player icon indicating copy to clipboard operation
vue-responsive-video-background-player copied to clipboard

Video not playing in mobile device

Open Osman-Rafi opened this issue 3 years ago • 6 comments

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

Osman-Rafi avatar Jul 14 '22 08:07 Osman-Rafi

The same...

anluh avatar Jul 28 '22 18:07 anluh

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

pmochine avatar Jul 28 '22 19:07 pmochine

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

anluh avatar Jul 29 '22 07:07 anluh

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

yiyasha15 avatar Oct 12 '22 09:10 yiyasha15

No

anluh avatar Oct 12 '22 11:10 anluh

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/

robairhome avatar Dec 04 '22 20:12 robairhome