Q Media Player Error Window



  • How to display the error slot if q-media-player fail to load the image? I try the following code, but nothing happen on load fail.

    <q-media-player
              type="video"
              background-color="black"
              :autoplay = "true"
              :no-controls = "true"
              :show-big-play-button="false"
              :sources="[{ src: item.trailer_url, type: 'video/mp4' }]"
            >
              <template v-slot:errorWindow>
              <div class="absolute-full flex flex-center bg-negative text-white">
                Cannot load Video
              </div>
              </template>
            </q-media-player>
    

Log in to reply