Ionic 6 + Angular: `video` tag isn't working on iOS app build

Discussão em 'Angular' iniciado por Aastha Bist, Janeiro 6, 2025.

  1. Aastha Bist

    Aastha Bist Guest

    I am using the html5 video tag to refer to a video as such:

    <video
    width="100%"
    height="auto"
    onloadedmetadata="this.muted = true"
    oncanplay="this.play()"
    poster="/assets/images/video-default-background.png"
    loop
    >
    <source src="/assets/videos/video-ref.mp4" type="video/mp4" />
    </video>


    This works perfectly on android device, but not on iOS. I am also unable to detect any issues while checking this in the browser build, there this seems to work as expected as well.

    Are there any alternatives to using the video tag in this case?

    Continue reading...

Compartilhe esta Página