chrome won't load swf files - wordpress

I was asked by a family member to fix their site, but since I don't work in Flash I'm not certain how to target the problem.
The site is in Wordpress 3.2.1 and uses two small .swf files created in CS5 - neither of which will load in Chrome 11 or 13. They test ok in Firefox/Safari/IE for all modern versions. I've been digging for an answer but it seems this problem may be both pervasive and unique to each local environment. Maybe someone here has a fix?
here is the site: www.countdowntoday.com
here is the code from the index page:
<object width="400" height="320">
<param name="movie" value="countdown.swf">
<embed src="<?php bloginfo('template_directory'); ?>/flash/countdown.swf" width="400" height="320">
</embed>
</object>
Any advice would be greatly appreciated.

I think that the problem is that value="countdown.swf" and src="<?php bloginfo('template_directory'); ?>/flash/countdown.swf" points to differents places.
Change the value property to the same as src and should work.
Also, please check this guide in order to embed correctly flash files http://latrine.dgx.cz/how-to-correctly-insert-a-flash-into-xhtml

Related

Lazy sizes does not show video

I am using lazy sizes for the lazy load of my youtube videos. On every page the lazy load does work, but not on these two, more precisely, the whole video just disappears/is not displayed. The two pages are in the same folder as all other pages, which do work. The link to lazysizes.js is there <script src="lazysizes.min.js" async></script>
Here is the iframe on one of the working pages with the video being displayed:
<iframe width="640" height="360" data-src="https://www.youtube.com/embed/xxx?rel=0" importance="low" loading="lazy" frameborder="0" class="lazyload" allow="encrypted-media" allowfullscreen></iframe>
and here the iframe that just won't work/does not display the video - it's identical:
<iframe width="640" height="360" data-src="https://www.youtube.com/embed/3FOZ2CTaaWk?rel=0" importance="low" loading="lazy" class="lazyload" frameborder="0" allow="encrypted-media" allowfullscreen></iframe>
I know this just doesn't make sense, but my hope is that one of you stumbled upon the same problem. I have tried copying and pasting (swapped them, so it is not really the iframe code) and changing it, reloading the js etc. but nothing helps. The iframe is identical with the other pages. I have no idea how to find out what's missing here.
I'm stupid, the console revealed it: the lazysizes.min.js was loaded into the directory of this particular URL. Since this URL (and its /.../ directory) is artificially created the lazysizes.min.js could not be found in that directory (though on the FTP server the js file is in the same directory as the source php file that loads it) it could not be loaded.
A simple line of extra code that includes the lazysizes.min.js above the iframe embedment with an absolute URL to the js file solved the problem!

Auto-playing embed code issue in wordpress

I want to automatically play the .swf file when the page load in word-press
This is my embadded code:
<embed src="http://turkchat.nl/newturkchat/turkchat/wp-content/themes/rt_oculus_wp/swf/Ov1.swf"
type="application/x-shockwave-flash" width="358" height="240" align="middle"
name="Ov1/Ov1" autoPlay="1"></embed>
Video is showing but not automatically playing.
Add "autoPlay=true" as a parameter this should work. instead of autoPlay=1.

YouTube views not counting on Wordpress embed

On my WordPress site, I have been embedding both my YouTube videos and my Twitch channel.
However, even after using the old embed code which has been suggested on a previous post, no views coming from the site count towards the view count.
As well as this, the official Twitch embed code also does not count towards the view count either.
The code I am using for the site is:
<iframe width="560" height="315" src="https://www.youtube.com/embed/TWH0RnH1QMU" frameborder="0" allowfullscreen></iframe>
And the twitch:
<object type="application/x-shockwave-flash" height="250" width="300" id="live_embed_player_flash" data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=official_don_gaming" bgcolor="#000000"><param name="allowFullScreen" value="true"><param name="allowScriptAccess" value="always"><param name="allowNetworking" value="all"><param name="movie" value="http://www.twitch.tv/widgets/live_embed_player.swf"><param name="flashvars" value="hostname=www.twitch.tv&channel=official_don_gaming&auto_play=true&start_volume=0"></object>
Hopefully you can help me with this issue!
Even though it's quite a crude solution, simply iframing the url you use when using youtube in your browser should make the views be counted. You can do this with <iframe src="http://youtubeurl"></iframe>

Unrecognized iframe rendering in Wordpress markup

I was inspecting browser elements on a Wordpress 3.4.1 site and came across an iframe I don't recognize.
<body class=" customize-support">
<iframe src="http://mickajoin.tumblr.com/?d=www.example.net" frameborder="0" marginwidth="0px" marginheight="0px" scrolling="no" width="0px" height="0px"></iframe>
<div id="wrapper">
...
Of course http://mickajoin.tumblr.com doesn't exist so this returns 404 anyway. Searching the project resulted in nothing. Google returned nothing relevant.
Initially I thought it was the Gallery plugin. I disabled it and the iframe persisted. I've also deactivated the other 2 third-party plugins use on the site. None of this worked.
I'm hoping someone can point to me the sources of where this could be injected.
Thanks for the tip on the extension. Turns out it was Pokemon Tower Defense HD 5.6 for me. ^_^

how to embed and share MP3 file?

I've got a my own website and I've put on my website a radio interview (MP3 file). On my website there is a tool which takes the MP3 file and plays it.
My file URL is "http://www.abc.com/invterview/July 9 interview.MP3"
Now, another website wants to play the same file and asks me to give te embed/share link.
Can someone help me how to accomplish this link?
I googled and found this webpage http://www.labnol.org/internet/design/html-embed-mp3-songs-podcasts-music-in-blogs-websites/2232/ ,which explains how to accomplish an EMBED, but I've never done this and I know Chrome, IE, FF, Safari have it's own instructions...
So can someone guide me how to accomplish an EMBED URL so it will work on all Browser?
Do I need to use or what is the common use??????
if it was video file I could upload it to Youtube and send that link, but this is a MP3 file.
thanks
You could use HTML5, which has native support for playing audio.
<audio controls="controls" height="100" width="100">
<source src="song.mp3" type="audio/mp3" />
<source src="song.ogg" type="audio/ogg" />
<embed height="100" width="100" src="song.mp3" />
</audio>
If a browser does not support HTML5, the code above will fallback to the embed code.
Other than that, you could use the yahoo media player. It's not the coolest or best around, but it's simple and it gets the job done.
Play Song
<script type="text/javascript" src="http://mediaplayer.yahoo.com/js">
</script>

Resources