• Resolved riesiko

    (@riesiko)


    Hi Ravanah,

    thanks for your great work!

    I had to notice, that my videos that are to open in the fancybox overlay, don’t work properly on PC with Firefox.
    Example-page on my site

    A user on Pc gave me this error message:
    HTTP-Content-Type "text/plain" is not supported. Charging media resource https://www.platformart.eu/wp/wp-content/downwards/KAPITALISMUS-und-PILZE.m4v?_=1 failed

    This is my code:

    <div align="center";>
    <a href="#video3" class="fancybox-inline"><img src="https://www.platformart.eu/wp/wp-content/uploads/2013/10/premiere-marche-screenk-210x118.png" title="Click to play Première Marche" alt="videoscreen de Première Marche par Fran?oise Bonnerot ? https://www.francoise-bonnerot.fr" width="210" height="118" class="alignnone size-thumbnail wp-image-1947" /></a><div class="fancybox-hidden"><div id="video3" class="hentry">[video src="https://www.platformart.eu/wp/wp-content/downwards/Premiere-Marche.m4v" video width="640" height="360" autoplay="on" video poster="https://www.platformart.eu/wp/wp-content/uploads/2013/10/premiere-marche-screenk.png"][/video]</div></div>

    I find the link to the vid with added “?” (m4v?_=1) in the html, if the overlay is already opened.
    On Mac and Firefox, this never causes problems.
    What could go wrong?

    In this topic the subject is touched but I get no answer!
    cheers v.

    https://www.ads-software.com/plugins/easy-fancybox/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, some debugging steps/suggestions:

    1. What happens when you access the video url directly in Firefox on Windows? I tested in Firefox on Linux but there the Content-Type is received as video/mp4 correctly.

    If that works, then you can simply link with class=”fancybox-iframe” (enable the iFrame option on Settings > Media) instead of the inline method.

    2. What happens if you embed the video (with that shortcode) without wrapping it in the fancybox code? Does the FF+Win error happen then too?

    3. And what happens if you embed the video with:

    <video width="640" height="360" controls>
      <source src="movie.m4v" type="video/mp4">
    Your browser does not support the video tag.
    </video>

    4. The problem might be related to m4v being an Apple format. On https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats I read:

    To avoid patent issues, support for MPEG 4, H.264, MP3 and AAC is not built directly into Firefox on desktop and mobile (Android and Firefox OS). Instead it relies on support from the OS or hardware (the hardware also needs to be able to support the profile used to encode the video, in the case of MP4). Firefox desktop supports these formats on the following platforms:
    Platform / Firefox version
    Windows Vista+ / 22.0+
    Android / 20.0+
    Firefox OS / 15.0+
    Linux / 26.0+ (relies on GStreamer codecs)
    OS X 10.7+ / 27.0+

    Can you convert it to another format like ogg to append it to the video embed code above for better cross browser support?

    5. TIP: upload the videos to Youtube and let that platform worry about compatibility and hosting… embedding in FancyBox is suddenly much simpler too. ??

    Thread Starter riesiko

    (@riesiko)

    Hi Ravanah,
    Thanks very much for your quick reply.
    What happens, when accessing the video on PC by Firefox, is that you see the overlay and the videoposter and the loading wheel, but it doesn’t chare nor play, as described in the mentioned topic.
    Following the indications there, I changed my .htaccess by adding:
    AddType video/mp4 .mp4 .m4v
    A friend, who had the problem, told me yesterday evening, that it would work for him now!
    I’m hopefully waiting for some other returns.

    Yes, I think your reply points the right direction, it is not the Fancybox-plugin, that causes the issue!
    I just can’t figure out, whether it is the browser or the plugin, which renders the html (“m4v?_=1”) that might cause the error.

    Hosting the videos on Vimeo or Youtube is not my solution, as there are copyright issues for me as an artist and as some of them should have limited access (you have to declare to be an adult before viewing), difficult or impossible with these services.
    ?? v.

    I think https://videopress.com/ offers a privacy solution in sync with your WordPress site so it might suit your needs better than Yuotube or similar ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Video doesn't load in overlay on PC and FireFox’ is closed to new replies.