Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1419018

    on a selfhosted video !!! html5
    With youtube or vimeo embedded films I expect similar errors, but not with a self-hosted film on the same domain.
    mp4 is well supported so ? what could cause such an error.

    Google is full of similar question – all blame Access-Control-Allow-Origin in some way. I just can’t find any solutions.
    For example, I have a corresponding header in my htacces file via mod_headers.c :

    Header set Access-Control-Allow-Origin "*"
     

    but even with this, the error is displayed in the Pagespeed Insights.
    Is there anyone having a good idea to avoid this error.

    PS : i opened now that page on Google Chrome : that lighthouse script has a bit different error:

    Uncaught (in promise) DOMException: The play() request was interrupted because video-only background media was paused to save power. https://goo.gl/LdLk22

    The linked page gives a possible solution for it – maybe a DEV could look inside.

    #1419030

    Hey Guenter,

    Having a quick look into it:

    WP Media Element (html tag mediaelementwrapper) used in ALB Video element has a structure as described in your link
    in Danger Zone:

    
    <video ....>
        <source scr="...." ...>
    

    where the play() promise never rejects. So the solution probably cannot be used.

    Maybe the HTML structure is different depending where you encounter the problem.

    There does not seem to be an easy and quick solution.

    Best regards,
    Günter

    #1419032

    See Private Content

    • This reply was modified 8 months, 1 week ago by Guenni007.
    #1419054

    Hi,

    See Private Content

    Best regards,
    Günter

    #1419077

    Wie gesagt : Unterseite Klinik mit dem Video.
    Pagespeed Insights:

    Ja – scheint nur ein Problem mit Google zu geben ( pagespeed Insights testet wohl über Chrome)
    Die Meldung allerdings über Chrome die Seite zu öffnen und dann mit Developer Tools Lighthouse ist jetzt weg: Best Practice : 100

    #1419172

    Hi,

    Also die einzige vernünftige Erklärung die ich habe ist, dass pagespeed da es nichts von der Seite anzeigt, das Laden des videos blockiert, der HTML DOM aber da ist und dann natürlich unser js darauf zugreift und ausgeführt wird.

    Wenn ich mit einem video element auf ein nicht vorhandenes Video zugreife (localhost) dann bekomme ich in lighthouse:

    Failed to load resource: the server responded with a status of 404 (Not Found)

    Best regards,
    Günter

    #1419177

    es ist nicht so wichtig die Lösung des Problemes zu finden. Es passiert in den pagespeed insights dann, wenn das mp4 auf autoplay gesetzt ist.
    meine Theorie dazu ist, das der play Befehl erfolgt bevor das Video geladen ist. Siehe deine Testseite mit deinem video.

    Problem ist, das es nicht reproduzierbar ist. Mal meldet Pagespeed den Fehler mal nicht. Daher – verschwende keine Weitere Zeit auf dieses Theme.
    Danke fürs reinschauen

    #1419266

    Hi,

    Gerne.

    Danke auch für das Feedback dazu.

    Best regards,
    Günter

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Unexpected : DOMException: Failed to load because no supported source was found’ is closed to new replies.