Firefox Firebug Invalid URI. Load of media resource failed - console

Getting the following in the Firebug console:
! Invalid URI. Load of media resource failed.
How do I determine what is causing this error? Can't figure out what 'resource' it's talking about.
I don't -see- anything missing on the page(s) in question.
TIA,
---JC

Use the following process:
Go to the Network tab
Enable the Network tab
Reload the page
Look for requests with 404 response codes

I found a solution for this - the EXPECTED response if the src is null is to get an error, so the solution for that part is to define a src value. However, even with a valid src, I sometimes get the same error - not always, it depends on something else which I haven't determined, however:
<video controls>
<source src="http://localhost/video.mp4" type="video/mp4" />
<source src="http://localhost/video.mp4" type="video/mp4" />
</video>
works consistently for me, when if I only have the source attribute once it fails.

Related

Next.js Azure Media Player Warning: Expected server HTML to contain a matching <video> in <div>

In my Next.js app I would like to embed a media player with Azure Media Services.
I followed the set-up process in docs:
1. added these 2 tags in the custom Head component
<link href="//amp.azure.net/libs/amp/latest/skins/amp-default/azuremediaplayer.min.css" rel="stylesheet" />
<script src= "//amp.azure.net/libs/amp/latest/azuremediaplayer.min.js"></script>
pasted this video tag in the page
<video id="vid1" className="azuremediaplayer amp-default-skin" autoPlay controls data-setup='{"nativeControlsForTouch": false}'> <source src='//amssamples.streaming.mediaservices.windows.net/3b970ae0-39d5-44bd-b3a3-3136143d6435/AzureMediaServicesPromo.ism/manifest' type="application/vnd.ms-sstr+xml" /> </video>
However, the media player doesn't work and I'm getting this error in the console
Warning: Expected server HTML to contain a matching <video> in <div>.
I guess it has something to do with SSR.. How should I handle this problem?
I think you can use next.js with react-router to solve the issue.
In React, you can check answers in this post. After read the answer, I think we also can figure the problem by BrowserRouter.

How to handle error if iframe [src] gives 404 Error using angular 5

I use an iframe to display several documents in an iframe with dynamic src. Some of them exist, but some others do not and I receive a 404 Error.
Please find my code below:
<iframe class="e2e-iframe-trusted-src" style="width: 100%" height="1000"
[src]="trustedUrl" (load)="oniFrameLoad($event)"></iframe>
Please let me know how I can handle the 404 error (or even better know beforehand that the src path does not exist and the document is not displayable).

Error for Sound file : Not a valid AMP page

There are problem in some page in my site, When you test this page:
https://search.google.com/search-console/amp?utm_source=wmx&utm_medium=link&utm_campaign=wmx-agg&id=QJ9owsgYpzMn_4iKKSbvuw
we show Not a valid AMP page
Invalid AMP pages will not have AMP-specific features in Google search results.
in this code:
<source type="audio/mpeg" src="http://traffic.libsyn.com/saudigamer/saudigamer_e212_010913.mp3?_=1"/></amp-audio></div><p class="powerpress_links powerpress_links_mp3">Podcast: Play in new window | Download</p>
Are AMP support sound file ?!
need to include amp-audio javascript extension
<script async custom-element="amp-audio" src="https://cdn.ampproject.org/v0/amp-audio-0.1.js"></script>
below line should work replacing "http" with "https" and by adding the missing open amp-audio tag at the beginning
<amp-audio><source type="audio/mpeg" src="https://traffic.libsyn.com/saudigamer/saudigamer_e212_010913.mp3?_=1"/></amp-audio></div><p class="powerpress_links powerpress_links_mp3">Podcast: Play in new window | Download</p>

How can i stop html5 audio from auto download

I am using this
<audio src="audio.mp3" />
Now that file is big and system automatically downloads it when someone loads the page.
is there any way that when someone press play , only then system downlaods. Because that player is in my every page and it wastes the BW
You can use the preload='none' attribute. Documentation here
The "none" attribute:
Hints to the user agent that either the author does not expect the user to need the media resource, or that the server wants to minimise unnecessary traffic. This state does not provide a hint regarding how aggressively to actually download the media resource if buffering starts anyway (e.g. once the user hits "play").
Your HTML could look something like this:
<audio preload="none">
<source src="audio.mp3" type="audio/mpeg" />
Your browser does not support this audio type.
</audio>

Sys undefined for HTTPS url in IE8

I just discovered a rather peculiar issue in IE8 for a HTTPS link. Every time the page tries to access the HTTPS link, it produces an error. This happens only in IE8 and nothing else. Any idea what's going on? I found some items that said that means the files were not loaded, hence the issue and tried some fixes recommended, but they haven't worked so far. This is a .NET site by the way.
https://www.beckshoes.com/cart/cart.aspx
Message: 'Sys' is undefined
Line: 70
Char: 1
Code: 0
URI: https://www.beckshoes.com/cart/cart.aspx
Message: 'Sys' is undefined
Line: 319
Char: 1
Code: 0
URI: https://www.beckshoes.com/cart/cart.aspx
Looks to be a JavaScript error. Firefox handles it fine, but Sys is undefined in IE8 so I'm guessing that the part where it normally gets defined is missing in IE?
Use View > Source.
Is the <script src="..."> coming from the https server as well, or is it coming from http? IE8 may not be loading the script because it isn't coming from the same secure source the rest of the page is coming from. Take the <script src="..."> (if it does not include the protocol and server, use the same one the page is coming from) and paste it into the address bar of a new tab, does the script load/download?
Is the <script src="..."> tag that loads the appropriate library even listed in the source? Maybe it isn't being added because ASP.NET doesn't recognize the User Agent and doesn't think it is capable or something.
Sys is part of the Microsoft script library, and is loaded through the WebResource.axd file.
Your page seems to be mostly working in IE 8 for me - have you fixed it?
I see that you're loading the WebResource at the foot of the page - if the calls to initialise are happening before the script is loaded, then that will be what is causing it - have you deliberately moved this to the footer? The scriptmanager has a property to do this correctly: LoadScriptsBeforeUI. Setting this to false will move those scripts that can be moved down to the bottom of the page.
I notice you've also pushed the viewstate down there, so you're clearly doing som post processing of the html.
The only other thing I can think of is that looking at your page, you've got an IFrame holding the brand rotator, that is requesting it's content from http://www.beckshoes.com/brands.aspx
You really want that under https as well - that's probably not helping.

Resources