简体   繁体   中英

Content Missing - Javascript with CDATA

I am working with a client that runs a subscription website that plays embedded videos via javascript. Suddenly SOME of the videos stopped loading for the members.

I know, next to nothing about Javascript with CDATA but I noticed that the code on the page with the broken videos is as follows:

<script>// <![CDATA[
var playerhost = (("https:" == document.location.protocol) ? "https://ezs386ed65eac750a03981460786bfd83bd9.s3.amazonaws.com/Screencasts/ezs3js/secure/" : "http://ezs386ed65eac750a03981460786bfd83bd9.s3.amazonaws.com/Screencasts/ezs3js/player/");
document.write(unescape("%3Cscript src='" + playerhost + "flv/7A8982DC-E9D7-D32B-4E1D561336E838BB.js' type='text/javascript'%3E%3C/script%3E"));
// ]]></script>

On a page where the videos are loading correctly there is a different Javascript embed code

<script type="text/javascript">
var playerhost = (("https:" == document.location.protocol) ? "https://ezs386ed65eac750a03981460786bfd83bd9.s3.amazonaws.com/Screencasts/ezs3js/secure/" : "http://ezs386ed65eac750a03981460786bfd83bd9.s3.amazonaws.com/Screencasts/ezs3js/player/");
document.write(unescape("%3Cscript src='" + playerhost + "flv/7A899626-C7B6-2D94-AD06D645F57C90A6.js' type='text/javascript'%3E%3C/script%3E"));
</script>

Both of these were working up until a week ago and can't account for why the CDATA code is no longer working.

Can anyone explain this based on what you see here?

显然是CDN网络的更改导致了此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM