XHTML Video Embed
About
The XHTML is great as long as the validation is kept, or it’s (kinda) useless. At least it’s useless if someone decides to serve it as XML. Anyway, the Web Standards S.H.O.U.L.D. be respected. XHTML Video Embed is a simple WordPress plug-in which allows you to easily embed multimedia content from various services by keeping the XHTML validation of your WordPress theme (if it has one). I wrote this plugin because I was kinda unhappy with the current solutions and their output. Feel free to request support for other video service. If it can be integrated in a nice way, I would gladly extend the plug-in’s functionality. The feedback is also welcomed.
Lincensing
The plug-in is licenced under the GPL v2.0 Open Source license (aka Free Software – Free as in speech and beer
). Other things may have other licenses, but the freedom is complete since v0.3.3 as the JW FLV MEDIA PLAYER (which was free for non-commercial usage) has been replaced. This wasn’t a technical issue since the JW FLV MEDIA PLAYER is a great piece of software, but a licensing issue. Since v0.3.3, the FLV embedding is made by default by FLV Player which isn’t restricted by that non-commercial usage problem. If you don’t break the law, you can still use the previous media player if you make some slight modifications to the “flv” branch of the swc_convert_url(); function, into the the ‘return’ line. Replace it with:
return swc_repl_amp($_mpPath.”?file=”.$_iURL); //Careful when copying the quotes (“)! They may be displayed as fancy quotes which may break the code!
Please remember that the player’s name must be `mediaplayer.swf`.
Notice: under Linux, the v4.0 of the JW FLV MEDIA PLAYER doesn’t properly support the fullscreen mode. The previous version (which is available with the older releases of XVE) does properly support the fullscreen mode.
Installation
Download the distribution archive from here:
http://wordpress.org/extend/plugins/xhtml-video-embed/
Then follow the installation instructions from here:
http://wordpress.org/extend/plugins/xhtml-video-embed/installation/
Notice: please follow the instructions exactly, or I can’t guarantee that certain features should work as expected.
FAQ
http://wordpress.org/extend/plugins/xhtml-video-embed/faq/
Usage
The plugin doesn’t have any kind of interface, so it works based on some BB-like tags. I wrote the tags with spaces in order to prevent the automatic object replacement since I actually use my own stuff (should I add a “dooh”). The correct tags should be used without spaces nor line breaks like: [swf], [flv], [youtube], [google-video], [metacafe], [trilu-video], [trilu-audio], [trilu-imagine], [trilu-image], [dailymotion], [myspace], [revver], [spike], [vimeo], [jumpcut], [mogulus] plus the matching close tag. Roughly this syntax is something like:
[tag]http://example.com/video-path-or-id[/tag]
The tags are case insensitive, so if you would like to write something like: [YouTube] – the plugin still works. Since the plugin is self-documented, you can check its Options panel located under Options » XVE for configuration details and usage mode.
Localization
XHTML Video Embed may speak your language. At the moment is speaks English (native), Romanian (add-on), Spanish (add-on), and Dutch (add-on).
The Spanish and the Dutch is provided by Álvaro who was kind enough to donate some time to this plug-in. Many thanks!
Note
The credits notice which you can see under the inserted flash object is optional. It’s disabled by default.
Online Demo
- SWF
- FLV
- YouTube (including High Definition by adding to the URL the proper parameters: &fmt=6, &fmt=18, or &fmt=22)
- Google Video
- Metacafe
- Trilulilu Video
- Trilulilu Audio
- Trilulilu Image
- Dailymotion
- MySpace TV
- Revver
- Spike
- Vimeo
- Jumpcut
- Mogulus
- Capped TV
- GameTrailers (including user videos)
- Veevo
- CollegeHumor
Generic SWF:
» Powered by XHTML Video Embed
Generic FLV:
» Powered by XHTML Video Embed
» Powered by XHTML Video Embed
YouTube:
» Powered by XHTML Video Embed
Google Video:
» Powered by XHTML Video Embed
Metacafe:
» Powered by XHTML Video Embed
Trilulilu Video:
» Powered by XHTML Video Embed
Trilulilu Audio:
» Powered by XHTML Video Embed
Trilulilu Image:
» Powered by XHTML Video Embed
Dailymotion:
» Powered by XHTML Video Embed
MySpace TV:
» Powered by XHTML Video Embed
Revver:
» Powered by XHTML Video Embed
Spike:
» Powered by XHTML Video Embed
Vimeo:
» Powered by XHTML Video Embed
Jumpcut:
» Powered by XHTML Video Embed
Mogulus:
» Powered by XHTML Video Embed
Capped TV:
» Powered by XHTML Video Embed
GameTrailers:
» Powered by XHTML Video Embed
Veevo
» Powered by XHTML Video Embed
CollegeHumor
» Powered by XHTML Video Embed
Compatibility
Since this plugin replaces the functionality of the fixed version of Trilulilu’s plugin, the support for that fix has been discontinued. Use this plugin instead of my fix. Since it has full compatibility with Trilulilu’s plugin, it is recommended to use only one. Pick your favorite
…
The proof
http://validator.w3.org/ – The W3C Validation result.
Spam Notice
Since I submitted the plug-in to the official WordPress repository, the spam has increased to the roof. Basicaly I had more spam within this period than from the moment when I started to use WordPress (more than a year ago) and Spam Karma 2 (SK2 from the day one with WordPress). If your comment is not shown because of my antispam protection, or I manually remove it because I though it was spam (I had to remove couple of comments since some of the bots are very smart), please use the contact page which is not affected by this message spamming as this page is. Please stick to the topic, because all offtopic messages might be marked as spam since this is a new spam technique: posting an apparent harmless message, then starting to spam that page for real since the message could gain credibility for those who use the moderation for all the untrusted sources. Because I removed the NoFollow value of the rel attribute in order to encourage the comments (yes, all my blog pages have PageRank transfer) – my policies about the comments are more restrictive. Thank you for understanding.
thanks. usefull, indeed.
Am pus si versiunea 2.0, desigur, cu link+ul credit. E o chestie de obraz. Am pus un bracket în php în faţa textului Powered … fiindcă pe tema mea rezulta o aliniere ciudata, in dreapta ferestrei clip. Acum e mai bine.
psŞ e ceva ciudat la pluginul de comentarii. introduc codul in caseta, mi se aproba comentariul si nu se mai intampla nimic. Browserul ramane pe fereastra cu anuntul privind aprobarea comentariului meu. Nu trebuie vreun buton back pe acolo_ Daca ii dau din browser back, ajung iar la textul comentariului (deja aprobat si publicat).
E de la Spam Karma 2 … anti-spam bot … nu stiu cum se comporta pentru ca fie sunt autentificat ca admin, fie IP-ul, mail-ul si adresa blogului sunt in whitelist cand postez neautentificat, deci nu patesc chestia asta …
Mai exista o chestie … unele comentarii nu apar imediat pentru ca folosesc WP Cache 2 pana imi mut hostul pe unul care sa imi dea mana libera la mai multe resurse (e o balarie pe care o fac de o luna si ma enerveaza).
PS: multam de credit link
Thank you for your kind feedback. As for the plug-in itself, I am developing new features as we speak.
Hi!
Finally, I find something working! But I already installed “EasyTube” plugin for my YouTube videos, so I just decided to deactivate that one seeing that yours is very complete, but it just put white square space, and I see your “Powered by XHTML…” hyperlink.
Any idea? Thanks for this great plugin!
The hyperlink is disabled by default. It only displays a XHTML comment which is invisible for the end user. The default options should be created at the first usage of the plug-in (either admin panel or just visiting your blog after installation). You have to activate that option by hand in order to display that hyperlink. If you would like to disable the link, just unckeck the “Use credit for XVE?” from Options >> XVE >> Miscellaneous Options.
Hi,
Regarding your xhtml video embed, just wondering if you had any instructions lying around somewhere…?
I tried it on my WP blog (I’m not using the recent edition of WP, but the previous edition) with a YouTube video in this format below, but nothing shows up…
[youtube]http://youtube.com/watch?v=-UMFUp5hD2Q[/youtube]
That is, I added just like that above to my normal post, not in the ‘code’ part, but in the visual part. Is it supposed to be a link or..?
I went in to your plugin and enabled it and all that stuff.
Maybe some simple, how to do it instructions would be good for us non-coder types.
Thanks
Nope … that link won’t work because one of my security policies regarding the YouTube support. It’s not your fault, but the link is good. I’ll release a quick fix for that permalink type. I didn’t know that YouTube added subtraction (-) in their permalinks. Thanks for reporting the issue. Now I know why another application of mine which uses the YouTube permalinks is broken.
PS: I think that was yanick’s issue as well, but without the exact link, I couldn’t debug that.
Later Edit: the patch has been submitted. Update to the latest version and it should be OK. Thanks for reporting the issue.
Hi Saltwater…
Thanks so much for getting back to me on this one. I appreciate it…
Looking forward to getting more videos on my site asap now
Martin
Hi there,
Is it possible to set the height of an embedded swf?
[...] show swf files, youtube videos and other mash-up stuff I now use xhtml-video-embed. This plugin lets you embed different content using a simple [tag] … [/tag]-markup… No more [...]
Try to get a .wmv video to work – any tricks to this?
@ justGREAT: at the moment there isn’t support for setting the height besides the video height which is unified. Since not all the flash objects have a 4:3 aspect ratio, I am thinking about implementing this feature. Thanks for the idea.
@Russ: unfortunately XHTML Video Embed is about embedding flash content. That was the intention because once the flash plug-in is installed, it works OK under Windows/Linux/OS X. I am the kind of guy who uses multiple platforms for work, so this is kinda important. WMV and other video formats embedded into Web pages used to gave me lots of headaches when trying to make them cross-platform compliant. Viper’s Video Quicktags (that’s the name of the plug-in) should do that. I actually used that plug-in till it started to break my XHTML validation, so I wrote my own stuff, but without the non-flash generic video support for the already mentioned reason.
Thanks for the response and great pluggin. I was trying to avoid adding my movies to YouTube but it might be the way to go.
Thanks again.
Thanks much for the plug-in. Wanted to let you know Hulu.com is now open to the public. It has a large archive of video, and lets you edit your own clips.
The direct access to Hulu tells me that the videos are not available for my country (I’m Romanian, the service is for the U.S. consumers). Accessing the site through a high anonymity U.S. proxy simply tells me that the video is not available. If I can find a way to access the site and create the code for the flash object, I would implement it into XVE. However, this might be restrictive even for the embedded videos, so it might not work for your non-U.S. blog readers (if you have any).
Your plug-in is awesome! I’ve been trying to find a nice way to add flash video to our blog for awhile…it works great and is quite simple. Thanks!
Michael
Hi I am trying to use this, it loads the swf file perfectly but for some reason cant load the xml. This is odd as if you type it into a browser then no problem. I wondered if you have any idea as to what is going on. For example if you go on my site http://lewisurwin.com/?page_id=3 then it fails to load the xml but all that is loading is the following file http://lewisurwin.com/mediagallery/mediaGallery.swf which does not show any errors. I wondered if for example there is a default area that it is looking for the xml (it is in the same directory and I have used the absolute path in the plugin. Many thanks
At the moment I can’t find the file:
The requested URL /mediagallery/mediaGallery.swf was not found on this server.
Can’t do any debugging without the source of the issue.
Hey SaltwaterC,
is there any way to not use the default size? Like [vimeo w=400 h=300] or something? Would be very handy!
Cheers mate! Will probably feature your plugin in a future article (for not using the link)
At the moment you can only edit the default sizes for all videos (which you already did). I’ll try to implement them with the next version which will bring more features and less load to the sites.
Where is the first WP 2.5 test pilot? Hands up please!
i changed the youtube code to use the higher quality .mp4 version if it is availabe. replace line 55 with this (don’t know if code is supported in your comments though):
return "http://www.youtube.com/v/".preg_replace("@[^a-zA-Z0-9\_\-]@", "", $_theMatch)."&ap=%2526fmt%3D18";Oh, and i like to report that your plugin is working fine under wordpress 2.5 as well!
Thanks for the report. I know about the YouTube support for higher quality videos so I am thinking about implementing it into the next version.
This looks good. Two services I like that you don’t have: Viddler & Jumpcut.
In other news… a little feedback on your useage directions. You don’t actually say whether the plug-in is just looking for a URL or the whole embed language. I would rewrite it to say “place these tags on either side of the service’s URL for the video you are posting” or something like that.
Thanks for the idea. Since the English is not my native language, I still have some slips/heavy slips. Either way, into the admin panel I placed some examples which are kinda suggestive … I’ll update all the data pretty soon.
I that I would need at least couple of days from my spare time in order to finish the v0.3. At the moment the new data structures work on the new and optimized model which I planned for quite a while. The admin panel is at the moment is broken as it tries to use the old options engine (development version, v0.3 Alpha 1).
Just to let people to know that I didn’t forget about XVE
…
Salut!
Am instalat si eu pluginul, pentru ca si eu imi doresc sa valideze bine pagina. Functioneaza, in sensul ca pune filmul in pagina. Dar validarea tot nu iese.
@Lucian: since I couldn’t write onto your blog (all pages throw the 404 error), here’s my message:
The first error is the fact that the theme is declared as XHTML 1.0 Strict while WordPress relays onto the XHTML 1.0 Transitional standard. You need to modify the DTD (Document Type Declaration) from the theme. The Strict standard doesn’t have support for the target attribute, while WordPress uses it.
Second of all, the embed code which is provided by YouTube is broken. However, you can download a copy of my plug-in, install it, then replace the YouTube embedded code with [youtube]full-url-to-youtube-video[/youtube]. Believe me that it works.
Regards,
SaltwaterC
PS: you do share some of things I also like … Ubuntu and Trance
If you do listen to Trance music besides other EDM genres, I would also recommend you http://puresound.fm
[...] SaltwaterC saved the day, with his cool plugin XHTML Video Embed. So I just installed the plugin, made small changes to the posts and voila: perfect validation for [...]
Great plugin!
Is there a way to universally embed all of these videos (since youtube/dailymotion/myspace all have their little clients). I’m thinking about just MAKING a player that can merge all these together.
any thoughts?
Well … I could implement the JW FLV MEDIA PLAYER into the plugin, but there’s an issue: since the video services might change the path for their videos, then the plugin is broken. Another downside is the fact that this kind of solution actually has to read the source page of the video, thus making more traffic. I intend to implement a caching engine for this kind of video services which can’t be nicely embedded (aka get all the required parameters from the URL and then generate the flash object). But … implementing this kind of thing is rather cumbersome and it might break the video services TOSes as you would use a 3rd party player.
This is a great plug-in, but I’m having trouble. I should preface this by saying I’m not a tech-head at all.
I’m trying to embed local SWF files (as opposed to content from YouTube, etc) and while they embed for me easily, the “player” skins associated with them do not, so I end up with no player controls (the skins are loaded in the same folder with the movies, as directed in the Flash 8 instructions). They work in a standard HTML file, but not plugged into a WP post. Would you know a way around this problem?
Can you provide me the name of the local player or something? Some files would be better as I can look at the embedding mode. As I mentioned above, I am thinking about packaging JW FLV MEDIA PLAYER within the plug-in for local SWF/FLV files which need an embedded player as they lack their own, but … as the promised v0.3 – at the moment I have little (almost NO) time for it.
The local player is just the “SteelExternalAll” skin provided by Flash 8. When I “publish” the video, it creates an SWF of the clip itself, another called “SteelExternalAll.swf,” an FLV and an HTML page. It runs fine on the page, and if I cut and paste the code to another HTML page that’s fine, too. And if I enter the address of the clip’s SWF in my browser address bar, it loads with the necessary skin. But if I provide that same link within a WP post, I get the clip with no player.
Here’s the HTML page created by Flash 8:
http://www.davidmorefield.com/journal/wp-content/video/screamingfit.html
Here’s the SWF of the clip (with skin attached):
http://www.davidmorefield.com/journal/wp-content/video/screamingfit.swf
Here’s the “skin” itself:
http://www.davidmorefield.com/journal/wp-content/video/SteelExternalAll.swf
If it makes a difference, here’s the FLV:
http://www.davidmorefield.com/journal/wp-content/video/loudeaters.flv
Let me know if you needed me to mail you something instead. Thanks for taking time out to look at this.
Can’t make it to work on my host … the clip fails to load completely … I don’t know exactly where’s the issue, but fortunately I know a universal fix, which is embedding a swf player for the flv files, thus people might embed stuff by using:
[flv]path-to-flv-file[/flv]
Yes, I already mention that
. Since I still have some work to do for v0.3, I think that I’ll make a v0.2 branch which includes the FLV player till the next version is out.
If there’s a way to screw it up, I’ll find it. Thanks for looking into this, and I’ll keep my eyes open for that upgrade.
Quick and Dirty. Your problem has beed fixed by the latest stable release (v0.2.4). The usage is as the rest of the services. Example:
[flv]http://saltwaterc.net/wp-content/uploads/as-the-tables-turn.flv[/flv]
You can see it within this page. Thank you for using XHTML Video Embed and stay tuned for the future releases.
Holy Hannah! I didn’t expect that so soon! Thanks for the assist, man, you’re aces!
There … the v0.2.4.2 allows the FLV embedding by using any path for the xhtml-video-embed.php and the mediaplayer.swf files (within the wp-content/plugins directory of course) as long as these couple of files stay into the same directory.
The v0.3 is out. Grab it while it’s hot
…
PS: besides Viddler which doesn’t use embed friendly by 3rd party plugins URls, all the requested features were implemented, plus the new application design. Enjoy …
Hmmm… Just downloaded and installed 0.3 but it won’t activate on my WP 2.5.1 – it (the WP plugin manager) throws out a sadly unspecified fatal error… Deleted it and rolled back to 0.2.4.2 and that works. It may well be something on my end, but I thought I’d flag it, just in case. Couldn’t find anything in my apache log that’d point to a permissions problem… Strange, because I suppose it works on your end!
Well this is weird. The plug-in development started under v2.3.3, continued under v2.5 and I finished it under v2.5.1. Can you specify the exact error?
That’s it. I could reproduce the error. Indeed it was an issue within my code triggered by a security policy which should block the requests to the plugin which are made outside WordPress, but I implemented that feature after the plugin was already activated onto my installation. The issue has been patched. It should be released along with v0.3.1 which contains another bug fix.
You’re amazing. I’ve downloaded the new v0.3.1 and it loads & works like a charm. I really appreciate your hard work; it’s not much, but I’ve localized your plugin into Spanish, and have placed the corresponding language file here for you to download/use and distribute as you see fit – of course, also under “your” GPL license. FYI – I’ve used a generic “polite” Spanish, which should be OK on both sides of the Atlantic.
Note for other potential localizers: be sure to save your file with localized strings using UTF-8 encoding, preferably with UNIX line endings (LF only) to avoid trouble once uploaded to your server!
Álvaro thank you very much for the localization. It will be included into the next release which contains some small code tweaks (couldn’t find any more bugs
).
Do you think it’s possible to include Mogulus in the list of “nice” URI supporting sites? I suppose you need to have a look at how Mogulus offers its embedding code for that, and I found some guidance here. As far as I know, it should be possible to cull the exact direct URI to a video… FYI – Mogulus isn’t a regular “uploaded video” host; instead, they offer livecasting (with a possibility to “replay” the last show broadcast via a channel, on demand). But it’d be neat to be able to embed a Mogulus TV channel into a blog without their weird javascript solution!
I’ll have a look at it. The next release was scheduled for today (some tweaks + your localization), but since you requested this feature, I’ll make a small delay.
Awww… Sorry for that. I’ll try and make it a little bit worthwhile by providing a Dutch localization as well – you’ll have it before Monday morning.
Well … I accidentally released the v0.3.2 as I wanted to keep is as development version till the Dutch localization is ready. I committed the version as the development version, but I marked into the readme file the stable tag as 0.3.2, thus WordPress made it a release.
It includes your Spanish localization as well as Mogulus support. The WordPress page should be updated into the next 15 minutes with the new readme.
When you’re finished with the localization, I’ll include it into the v0.3.2.1 release.
Sheesh … it wasn’t entirely my fault. The dumb readme.txt parser can’t validate readmes encoded with UTF-8, thus it makes the trunk a stable release. When I added your name (Álvaro), the thing came out broken. As far as I know, none of the documentation of the plug-in submission specifies this issue.
Crap, crap, crap … my development version flew away … Fortunately, it is stable …
Ouch… My apologies for having a name with a funny accent.
The Dutch version is now ready for you to pick up and use, here (and as with the Spanish one, it’s encoded as UTF-8 with UNIX line endings, LF only.)
PS: maybe it has to do with saving it in a different UTF-8 format? I know there’s an issue regarding the inclusion or omission of the BOM (beginning-of-file marker). Typically it’s best NOT to save a UTF-8 with BOM. If you’re using a Windows box, one very simple way of precluding any such encoding snafu may be using Floran Balmer’s absolutely fantastic, functional and free Notepad2 app, where you can set it to “simple” UTF-8 and it’ll upload (and be read) without a hitch.
Woohoo! Mogulus is embedding beautifully – and no funny foreign JS calls! Thank you again: XVE is fantastically simple to use, and an XHTML compliant solution… I guess I should be tweaking my theme to make it XHTML compliant as well now (and the other plugins… Grrr!)
Most of the time I develop under Ubuntu (at the moment: Hardy, x86_64) with Eclipse 3.3+PDT 1.0.5 platform, but that file was written with Gedit as Eclipse+PDT sucks at UTF-8. To be honest, I don’t know how Gedit saves the files as it doesn’t provide an explicit dialog when it converts an ASCI file to UTF-8.
I’ll look forward to see if the BOM was the issue. It might be as I found lately that the direct input to the readme.txt validator isn’t broken. But … this isn’t a guarantee as the Web application could simply convert the UTF-8 chars to their equivalent HTML entities before the validation by itself.
About the no JavaScript implementation, the credit goes to the developers of Firebug and Web Developer, both of them being Firefox extensions. They are great when it comes to reading the generated HTML source via userside scripts and other Web development stuff.
PS: good luck with the XHTML validation. I know that sometimes is a royal pain in the ass. I recommend Firefox and HTML Validator extension which is a huge helper. I hope that till then, it’s isn’t such a big issue the fact that your name is spelled with Latin ‘A’ instead of Á. This was the fastest solution to the releases issue as it was the only non-ASCI char
.
Wow, this is just what i was looking for!
Would it still work if my wp is in html strict and not xhtml?
The credit URL is Transitional as the WordPress by default provides XHTML 1.0 Transitional skins. Most of the skins follow this standard, thus I didn’t try to make it Strict. As long as W3C are stubborn about the lack of the target attribute into their Strict standards, I won’t validate my pages as Strict.
[...] XHTML Video Embed [...]
it is interesting! thanks!
[...] XHTML Video Embed – XVE is a WordPress plug-in which embeds the videos in the right way, the XHTML way. (Valid XHTML Transitional 1.0) *NEW* [...]
[...] comment they bought the cheapest thing they could. Maybe they meant it or maybe they didn’t. Nofollow tags on those mean you took their money, scowled, and didn’t bother to even say thanks with a [...]
Nice. Regularly I’m using the default integrated video embed from WordPress but I get this a nice one regarding the usability of video codec.
[...] SaltwaterC – 100% scorpio » XHTML Video Embed The XHTML is great as long as the validation is kept, or it’s useless. XHTML Video Embed is a simple WordPress plug-in which allows you to easily embed multimedia content from various services by keeping the XHTML validation of your WordPress theme… (tags: XHTML Video Embed) [...]
Love the plugin, but could you please add GameTrailers and GameVideos support?
GameVideos.net or which one?
PS: the GameTrailers support has been added to the development version. Will be released soon (today).
GameVideos.com (technically http://gamevideos.1up.com now, but gamevideos.com points to that.)
Glad to hear about the GT support. Like you, I too am anal with my XHTML validation, so your plugin is a godsend. Thanks!
Just tested your GT implementation and it works great. Thanks again. I just have one more question: For the life of me, I can’t figure out how to remove the dotted border that appears around the video when clicking on it. Is it possible to remove it somehow?
Regarding what I stated above about the borders, I guess it’s just something Firefox does. It does it to text links and image links as well. I really wish I could disable that, but I’m not sure if it’s possible. Anyway, I know it’s totally unrelated to your plugin, so disregard my last question. Thanks once again.
About that border, you’re right: it’s a browser related issue. I am studying the GV implementation of the video service (did it before releasing this version), but the videos won’t play, thus I don’t know if and when I could implement the support for this service.
I recently tried posting a MySpace video on my blog and am given an error when trying to play it. I noticed someone above had something similar happen to them and pasted their code here, which you were able to debug, so I’ll try the same:
[myspace]http://vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=31133264[/myspace].
Hey SC, could I bug you once more for support of user movies on GameTrailers when you get time? Their URLs are something like:
http://www.gametrailers.com/player/usermovies/250287.html
Sure. Anyway I wanted to improve the URL detection for GT as currently it just identifies the ID of the video (which is that number before .html) but it doesn’t sense the difference between a video, a game, or in your case, a user video.
I’ll code proper support as soon as I’ll get some spare time. I didn’t check the MySpace issue (yet), but if there’s an issue with my code, then the fix will be released with the next version.
@Saltwater
Thanks for this awesome bit of code. From what I’ve read here I’m understanding that there is no way to use .wmv files? Does anyone have a program handy that could help me easily convert WMV’s to flash (I record wmv’s for a fitness site I’m working on).
I have another YouTube plugin running at the moment, but I think I will change to your suggestion as it seems to be more flexible in function. Many thanks.
Thanks SC. No rush. As for the MySpace code, I tried another video recently and it works fine. I’m not sure why the first video I tried didn’t work, as the link structures are exactly the same, apart from the IDs of course. It might’ve been an issue with MySpace at the time.
Hello
Firstly a wonderful plugin – so beautifully simple thank you so so much!. I was wondering if you could give an example of how to write the tag is the flash file (hosted locally) is calling an xml file?
@Alex the Fitness Guy: unfortunately I don’t know any program which does this nicely, except a hackish solution such as mencoder (part of mplayer package) plus Windows codecs. This solution requires some computing and command line skills. You can try the SUPER Video Encoder (http://www.erightsoft.com/SUPER.html) … it might work as expected. The other solutions are rather under a commercial license, thus Google or a download site can help you.
@sammy: the SWF support is just basic. It just loads SWF files without any XML configuration files. IF there’s a standard method for the XML file loading, then I’ll code it into XVE.
SUPER is great (you have to pay close attention to chase down the download link though, as apparently it’s madly hotlinked) but you have to keep in mind that reencoding always comes at the price of quality – of course that goes for any format conversion – so if you have a wmv file that was previously converted from another (container) format, you’ll have to fiddle with SUPER’s settings to obtain a satisfactory result. Sadly, (re)encoding of video material gets nightmarishly complex very quickly! Also, make sure you don’t install too many codecs (i.e. especially from those “freebie” codec packs that float out there) because it can throw a serious wrench in your system configuration. If you have a plain, vanilla system – without “custom” codec packs – you’ll have no problem using SUPER. So, if you have redundant codecs like DivX and XviD installed, you may end up with conflicts.
re the xml flash if you could code in it to look at the base folder i think it should do the trick…
” base=”http://www.yourdomain.com/YOURFOLDERNAME/GALLERYFOLDER/”
not sure if that is possible?
Sorry to bother again SC, but I have yet another request:
Would it be possible to add ShackVideo (shackvideo.com) support?
@sammy: I did some research and apparently the XML configuration can be specified as a value for the flashvars parameter, thus it can be embedded directly by using a specially formatted URL.
For example:
can be replaced by
where the data=”[...]” value is the URL taken from [swf][...][/swf]
The difference is the fact that the first object uses the path to the configuration.xml by declaring a new param tag, while the second uses the flashvars as HTTP query aka embedding parameters directly into the URL. I could code an option in order to declare flashvars when required, but it’s kinda useless since the variables can be specified into the embed URL by using the example from above. Check your SWF documentation or README in order to find which is the flashvars parameter that you need to pass in order to load a configuration file. Generally is ‘file’ like in my example from above, but since I am not a Flash developer, I can’t tell you if this is a universal solution or not.
@J: The site doesn’t provide explicit embed code, thus I have to research if the support can be added. This means the fact that I have to study the page with Firebug, then find a way to implement it directly(*) (if it’s possible). The indirect embed is not supported, but is planned for the future versions.
______________
(*)Direct embed (aka Nicely supported into XVE terminology) = the URL provides all the required information for the Flash object generation within the plug-in
Indirect embed (aka Ugly supported into XVE terminology) = the URL doesn’t provide all the information, thus the source page must be read in order to extract all the required variables. This is a time, CPU time, and bandwidth consuming operation, thus it requires a light code and preferably a cache mechanism in order to avoid the overload of the plug-in.
[...] XHTML Video Embed [...]
Hey, this is an awesome post. Im thining of starting to embed vids, and this is really going to help!
Thanks
Sharon
Definetly worth a shot, never thought it would be so simple to apply.
Thanks for sharing it.
Regards,
Martin
[...] XHTML Video Embed [...]
Nice post. Very informative. I’ve bookmarked it so I can follow more posts. Thanks, Joseph.
So you are saying that with this plugin, it will be easier to post videos of my band Rumba Con Son, on my blog. Hmmm . . . Very interesting. I must look further into this.
[...] XHTML Video Embed [...]
thanks a lot for this great plugin, it really works… i guess. i have a problem about embedding high quality youtube videos.
i try to embed this video to my blog: http://www.youtube.com/watch?v=wSSUuZoGeH0&fmt=18
and i use this code: [youtube]http://www.youtube.com/watch?v=wSSUuZoGeH0&fmt=18[/youtube]
but it doesn’t show in high quality. do i miss something?
Nope … apparently there’s an issue with my plug-in … I’ll review the code in order to find out where exactly is the issue …
Congrats for your work… good one, indeed!.
I was wondering if slide.com could be included in your plugin. It would be just great.
This is an example of code that works fine both in Firefox and IE:
Sorry… heres’s the code:
Something doesn’t like you. Anyway, I’ll have a look at the slide.com support. I had in mind this thing long time ago, then I forgot about it.
[...] XHTML Video Embed [...]
how soon you will have the support of high-quality video YouTube? I would like to use the new version on its website. And if you can tell in details how to improve the quality of YouTube videos?
To be honest, I don’t know. I do have an unreleased version of XVE which addresses some of the issues which were posted around here, but currently my health doesn’t help me too much. Hopefully, I’ll get rid of this issue pretty soon.
Can you help me to port it to FlatPress?
[...] been using a WordPress plugin called XHTML Video Embed to help me with embedding videos. As far as possible, I try to emit proper XHTML [...]
I have a problem, when I put the code in my page the video of mogulus appears duplicated.
Please provide a link.
If you would like to watch embeded Youtube video’s full screen without visitors leaving your site:
Change line 479
return “http://www.youtube.com/v/”.$_theMatch[1]“;
TO:
return “http://www.youtube.com/v/”.$_theMatch[1].”&hl=en&fs=1″;
Thanks for the hint. I knew there is a switch for the fullscreen button, but I was to lazy to do some research. It will be included into the next release.
I am trying to add support for collegehumor.com This code is not working, any suggestions to make this work.. :
URL’s to convert:
http://www.collegehumor.com/video:1888086
http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1888086&fullscreen=1
Convert code:
case “collegehumor”:
$_smallPieces=explode(“:”, $_iURL);
return “http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=”.preg_replace(“@[^0-9]@”, “”, $_smallPieces[3]).”&fullscreen=1″;
break;
$_smallPieces[2] … The explode function converts the $_iURL string into three elements: 0, 1, and 2. Your code returns NULL for video ID instead of an integer. Thanks for the piece of code … the support will be coded into the future release as well.
Nice, it is working now. If you send me an email I can reply you the php with collegehumor support.
Thank you for this great plugin..
Thank you for this plugin. I have been looking something like this and it will resve my needs just fine.
thank you for the hint. know its working.
Great plugin. Works great with local video files…even the new .f4v container with h.264. Just use [flv].
One question. If someone doesn’t have the latest flash player (9 and above) to watch a flv video encoded in h.264, it seems that there is no message that they need to get the latest version as you would see if you visited a site made in adobe flash. The video just loads but is not viewable.
Any chance of adding this bit of info to the plugin?
If it’s possible, I could add it to the object. But even if it’s possible, I don’t know how.
Ai un plugin minunat, doar ca la mine nu merge. Ma rog, nu stiu eu sa-l folosesc. Fi te rog mai explicit sau spune-mi mie unde gresesc cand incerc sa adaug un fisier *.swf aflat la mine pe server.
Eu incerc asa sa-l adaug:
[swf]http://domeniu.ro/wp-content/uploads/2008/11/fisier.swf[/swf]
dar imi arata in post doar fisierul propriu zis, fara bara de meniu cu play/stop, volum, etc si incepe singur, deci eu nu am cum si de unde sa-i dau play/stop.
Pluginul este uploadat in /wp-content/plugins/xhtml-video-embed si binenteles activat.
@ definitiv!: problema ta e alta … fisierele SWF sunt aplicatii flash. Daca ele in sine nu contin un player, atunci nu ai ce face, exceptand extragerea continutui media (video+audio) si a-l salva+folosi ca FLV. FLV-ul pe de alta parte, nu contine cod. Este un simplu container media (precum AVI sau MKV) ce are nevoie de un player SWF pentru a-l rula in browser pe spinarea flash-ului. XVE vine cu un player embedded ce se poate accesa prin tag-ul [flv], dar ai nevoie de un astfel de fisier. Nu stiu si n-am incercat sa vad daca prin [flv] se poate rula continutul media al unui SWF.
Iti multumesc pentru indicatii. Acum merge. Eu aveam fisierul initial in format FLV, apoi l-am convertit in swf (care nu continea un player), credeam ca e mai bine asa, dar m-am inselat. Merci inca o data.
It can be included. Only one issue … my available time. All I am asking right now is patience. I know that I said that I’ll do a lot of things. I will, but I really don’t know when. Yes, it’s not a matter of if, it’s a matter of when.
Hi.
Great plugin!!!
two problems:
1. Double clicking the movie won’t make full screen like as it should.
2. the Google link doesn’t work.
can you fix it?
thanks.
sorry, another Quastion, not regarding the plugin.
i want the Comments at my site to behave like your comments eg: first comment white bkg, second comment gray bkg etc’.
can you please send me the php comments page of your site or tell me how to make the changes that it will look like your page?
thanks.
@nivosh:
1. The fullscreen functionality is provided by the player by itself. Except the embedded player for the FLV tag, I can’t control how the video services develop their players. The embedded player has this feature, but it doesn’t always work as expected. But it works.
2. Dunno what Google did. The link from this demo page, http://video.google.com/googleplayer.swf?docId=-1770384172897733802&hl=en – is working, but I see blank space instead of moving bits of video … I’ll have a look. (PS: I started to develop the next release … since I’m working for an unrequested feature which I need – I’ll code the rest of the stuff with it).
3. http://codex.wordpress.org/Include_Tags#The_Comments_Template – this simple function call makes all the magic … You should check the single.php and the page.php files of your template …
Later Edit: Google Video works now on this page. It was just a Flash glitch (understandable: 64-bit Linux + 64-bit Firefox + 32-bit Flash Plugin :/). Sorry, can’t reproduce the error.
Hi SaltwaterC, and thanks for the answers.
I have never encountered any problem with getting the fullscreen functuality with doubleclicking on the google video flash player as well as using the direct button link to google.
even in this page, you can’t use the “go to google” button link or the full screen method.
are you sure it’s a player issue and not plugin related?
any way i am using your plugin and enjoying it very much.
thanks
The flash object tag is defined with a standardized set of variables. The fullscreen functionality is added through param name allowfullscreen which defaults to true. However, the standard embed player might need another param in order to enable the double click binding for this functionality, thus I’ll have a closer look to the Google Video standard embedding. If my intuition is correct, the “Go to Google” thingy is broken by the same reason … missing flashvar …
Hi SaltwaterC.
something even stranger happens.
when i load the page with the movie, for one second the menu displays the full screen button but then disappears and just the volume and the “go to google” link remains.
very very strange…
Hi SaltwaterC.
I have a lot of problems with the full screen functionality i hope you can help me with.
after watching this page i noticed that the fullscreen function in the dailymotion player is working so i uploaded a movie to their server and placed via your plugin in my site.
i pushed the fullscreen button and a message appeared saying:
“The site you are on prohibits fullscreen activation.”
i googled this line with no results.
do you have any idea why in your site it’s working and on mu site it’s not?
please check it out yourself: http://emetaheret.org.il/blog/?p=195
The Dailymotion video from your blog works in fullscreen mode by using my browser (Firefox 3.0.4 under Ubuntu 8.04.1 i386). Google Video won’t work at all., no matter which site I use.
quote: Google Video won’t work at all., no matter which site I use.
Do you know why?
Hi again.
The problem of Fullscreen AND the Google link is a Plugin Related issue.
i have tried to simply embed the video using the method and it works flawlessly.
I do hope you’ll be able to fix that on the next version so i can continue using your plugin.
best regards,
Nivosh
I wrote something above:
sorry, my friend, wasn’t looking closely enough…
Thank you for the update.
doe’s the update fixes the problem?
Yes, it fixes all the requests, except: Flatpress portability (scheduled for v0.4) and slide.com support (it requires the planned, still not implemented, ugly support, also scheduled for v0.4).
The full screen functionality is still not working.
http://saltwaterc.net/xhtml-video-embed#google-video <- This one works. I use the latest stable (v0.3.5). If I can’t reproduce the error, I can’t debug the application. The golden rule of the bug fixing …
I wish it can support ogg videos.
you’re right, it works now.
maybe i checked it with the old version.
anyway, great work man!!!
[...] Plugin Homepage » [...]
[...] XHTML Video Embed [...]
[...] XHTML Video Embed [...]
XHTML Video Embed is the most cool thing :p
I am making a new free wordpress theme and I will surely be recommending this plugin to them as it is a video oriented theme. This type of stuff needs to be implemented at the core wordpress level as it is quite troublesome.
Hi
Very nice and easy to use. Thanks for making this.
Two questions – or maybe feature requests:
- Would it be possible to add a splash image parameter? Eg [tag w=320 h=240 img="http://site.com/img.jpg]url-to-embed[/tag]
- Would it be possible to include Quicktime support? (All our videos are in flv format now but our 360° qtvr panos are impossible to convert or play in other formats than mov.)
Thanks a lot
Kjetil
Hi Kjetil: aside from embedding QTVR in an XVE – that’d be really nice – there’s another option, that I don’t see many other WP site admins apply, and yet I think it’s really neat: it’s called PanoBlog by Bert Vierstra. It’s compatible with the current WP2.7 – even when it’s a slightly older plugin, with a pre-release version number!
The way it works is that, instead of popping up a HighSlide type box (as I saw you now have) it loads a black background page with the pano in full screen. If you want to see an example, look here on my place (I’m pointing to the lo-fi version of the two panos, not the higher resolution one, to spare bandwidth).
Simple, clean, very nice in my opinion. Anyway – hope that’s a useful other alternative for your site. Look forward to seeing your panos! (Couldn’t see them just now; I suppose you were trying something out at the moment.)
Hi,
Nice to see you have added colleghumor, This week I will ad Blip.tv as well and send it to you ofcourse.
I am working on a mobile version of my site, unfortunately the embeded Youtube video’s with your plugin are not suited for mobile. Have you any idea, what I can do to make this work for mobile too?
Cheers!
Glad to hear about that. Anyway, the v0.3.x releases will be just bugfixes and minor features adding (such as adding a new service). I am planning the future v0.4 which changes some old stuff. The plug-in was initially small (around 30 lines of code) but now it has over 1000. The procedural coding style is not appropriate anymore, thus I’m thinking about a new OOP design, much cleaner, and easier to interface with when adding a new service.
I know i tried to add blip.tv, but I can’t remember at the moment why I didn’t do it till now. Anyway, the next & new release will have to wait for a while (estimation: a couple of months) as I gotta take care of my health now.
Now hurries, take care of your health first ofcourse. The most important reason why I use the plugin, is that it is great to combine with automatic rss. When slected youtube channels publish a new post, they get automatically posted on my site. Therefore I had to tweak you plugin a bit.
About my last comment: Do you know how I can make youtube video’s working for mobile (iphone) too?
To get it working for mobile I have to add to the code see the diference below. Any idea how I can change this in the php file?
Change To:
Sorry for the spam. I made it working for mobile to change object to embed and data= to src=.. than close this…
Than I added a new object before param value. Works perfect now..
@ Alvaro
Thanks a lot for your input. That Quicktime plugin might come very handy on another blog I’m preparing, though it doesn’t fit our needs on dolcevita.no.
What about the splash image – would be a very interesting improvement. SaltwaterC?
Thanks
Kjetil
@Kjetil: I don’t fully understand what do you mean by splash image. A detailed explanation would help.
@Joris: it looks like the iPhone’s Safari is pretty retarded then if it can’t understand valid XHTML and it requires proprietary tags which won’t validate. With all the apologies, but this kind of stuff won’t be introduced. However, the future version will include the possibility to pick the embed mode: like it is right now, static via SWFObject or dynamic via SWFObject (the SWFObject embedding modes are documented on the project’s official Web page). Anyway, I’m interested to hear about your method of combining this stuff with the RSS. If this form will discard the input, please use pastebin.ca (or other equivalent service) or drop me an email at admin (at) this domain’s name (won’t mention it since I really hate spam, but for a human it’s obvious).
Sorry, I thought that was the correct English term.
I’m thinking about a still image/ photo that could show up before someone clicks to play the video. As the plugin works today, there is just a black rectangle. A photo would look nicer.
Anyway – we’re trying out your plugin now – eg here:
http://www.dolcevita.no/toscana/castiglioncello-hav/#video
Thanks,
Kjetil
PS The videos don’t play as smooth as they should. We’ve justed moved to a new server, so, just in case you’ve heared others with similar experiences…
Ofcourse I understand you won’t introduce the method I tried to show in the last comment, since the plugin is about valid xhtml. Allthough I changed it a bit today and I think it is (more) valid now. I will let you know about the rss and more next week or so. Thanks for your interest!
Hi. This plugin solves a big problem for me!
Our IE users are having trouble viewing the video, though. On the front page of our site (http://www.ccf.org.ph), there’s a “Video Today” box on the side that shows the latest post from select video categories. The video appears in the right size in Firefox and Chrome, but in IE, it just appears as a tiny box. The video appears the right size in the post itself, just not in that portion of the sidebar. Any ideas? Thanks.
@Kat: into your sources I see some SWFObject bindings. The issue might be triggered by the fact that XVE uses CSS for the object size instead of specifying the width and height parameters. I’ll have a closer look for this issue.
@Kjetil: now I finally get it. You want a splash screen for the [flv] tag/functionality as the rest of the embedded players from various video services have their own splash screen. It’s doable, shall be released into the next version.
Well, since just got out of the hospital, I’m not into the coding mood, but I think that next week I’ll be able to start implementing these latest requests.
Get well soon. Validating your health is far more important than XHTML. :p
(Once you’re able to, please let me know as soon as / whenever you have something into which I can sink my localizing teeth again!)
Brilliant!
)
No rush.
Yes, I guess it would look something like
[flv w=320 h=240 img=”IMAGE-URL"]VIDEO-URL[/flv]
Then arises how one should set the size of the image etc – and keep it simple at the same time. Honestly I have no idea how complicated this is.
But, anyhow, take your time. And get well
Kjetil
PS One idea: In the admin interface you COULD include settings for standard image and video sizes (which could be overrun by eventual coding in the [flv]URL[/flv] ).
And you SHOULD include a donate button there. Nothing wrong in that.
Yes Álvaro, I’m going for gettext in v0.4, language templates, Poedit and other stuff like this. I just have to make a wrapper for those non-gettext enabled hosts (I know that they’re just a few, but just in case as gettext is not a core-level extension). I actually had a host that refused the .mo/.po files (kinda stupid, I know). They are big plans as till now the plug-in was grown not designed, although as professional I tend to make the design first, then the implementation. It was a small project, and to be honest I didn’t knew that it’ll gain some popularity. So besides dropping the v0.2.x compatibility (which adds some bloat and a few tens of lines of code), the v0.4 really wants to be something new while preserving the same supported stuff (and more). Well, enough talking … the code is essential.
Kjetil the size of the image is determined by the image itself. If it doesn’t have the appropriate size, then I believe that it’s going to be resized by the player (IIRC). The only thing that gets complicated is the regular expression that matches the attributes, but that’s my part of the job. The admin actually has the unified sizes which are global settings which can be overrided by the w and h attributes of the tag. Width is for all flash objects, Video Height works for all the stuff except Trilulilu Audio which has a slim audio player, while Audio Height is self explained giving the circumstances.
PS: I’ll add a donate button as soon as I’ll get how to add PayPal. To be honest, I used my PayPal account just for buying stuff. I am sure isn’t not a big deal. Although I know that donations are tax free, I still have to ask an accountant about legal advice.
Happy happy joy joy! (re: Poedit)
Kjetil, there’s perhaps another route, which I think is often overlooked giving rise to tortuous attempts to sniff UA’s, increasingly a lost battle: via CSS, with @media handheld (see e.g. this here). I’ve tinkered with Opera Mini on my PDA and it’s remarkably CSS-obedient.
Hi SaltwaterC,
Awesome plugin! I love it, and it is flexible enough to pull video from sites that may not be considered mainstream. I do have an issue, though.
I have two posts on my blog that point to the same site. One post plays the video perfectly, and the other doesn’t. I’ve tested the video on the post that doesn’t work, and the video is online and available.
The link to the post that works is: http://www.helpfuladvisor.com/blog/index.php/archives/70
The link to the post that doesn’t work is: http://www.helpfuladvisor.com/blog/index.php/archives/86
Perhaps it is something very easy that I overlooked, but just can’t seem to figure it out. Thanks again SalwaterC!
-Jay
HelpfulAdvisor.com
While your first post contains a valid reference to an external FLV file, your second post uses this URL:
http://www.helpfuladvisor.com/blog/wp-content/plugins/xhtml-video-embed/mediaplayer.swf?flv=http://video.ted.com/talks/embed/
Where
http://video.ted.com/talks/embed/
is the path to the FLV which throws a 404. Can you provide me the input so I can try to figure out if this is a plugin issue?
Hi SaltwaterC,
Thank you so much for your quick reply. Here is what I have tagged for FLV: [flv]http://video.ted.com/talks/embed/Bono_2005-embed_high.flv[/flv]
But for some reason it only references to: http://video.ted.com/talks/embed/
Thus the 404.
For some reason, it is leaving off the actual FLV file reference. Any ideas? The other post I had tagged for FLV allows the entire tag to be referenced, including filename.
-Jay
HelpfulAdvisor.com
I can’t reproduce the error. I tried it on my development machine (latest v0.3.6 release) or here on my blog (you can see it among the other demos). It just works. My blog uses v0.3.5as I didn’t have the opportunity to upgrade in order to brag about adding MyVideo support within this page. This is the main difference between 0.3.5 and 0.3.6 along with a lot of code reviewing and small non-fatal bug fixes. The only function that alters the input URL for the FLV case is swc_repl_amp(); which converts the ampersands (&) to their valid HTML entity (&) which is the W3C standard for using ampersands into the page source since the ampersand is part of a HTTP query when constructing the URL. Clearly this is not the case. You can try to use the raw URL by returning the $_iURL directly into the conversion function …
Hello.
I can’t integrate movies from google-video.
only the raw code is displayed.
i copyd and pasted the code from the option menu and even that is not working.
strange…
when i write the code on the second line, it workes.
sorry for that, mate.
well, there is definetly a big, but i am unsure if it’s in your plugin or in wordpress itself.
the problem accures becuase my wordpress system is configured for RTL direction.
when i put the plugin code [google-video] alone it doesn’t work.
when i insert another one just above it, the second line works and shows the movie and the first one shows just row code.
what i can’t understand is why the rest of the meta tags (youtube, metacafe etc’)
are working, but google-video don’t.
b.t.w, the 0.35 version worked without a problem.
Hi SaltwaterC,
Thanks for trying. I’ll see if I can figure something out.
Best Regards,
-Jay
The v0.3.5 and v0.3.6 are basically the same at the core level. The bug fixes have been applied to the upgrade code. The only core level distinctions are the MyVideo support and the possibility to override the Mogulus embedding from the tag with the w and h attributes. These changes don’t affect Google Video.
However, I’ll release soon another version that changes the plugin priority from the default 10 to a high priority 1, thus the filter gets to be executed before others. Last night I encountered an issue with corrupt input (although the plugin was just fine, WordPress was messing up the deal). This prioritization fixed the issue. Jay’s issue might be triggered by another filter as well …
SaltwaterC,
That is a good tidbit. I’ll be checking that out on my end as well. I’m not a coder, but may see if I can tweak it into working with the info from nivosh.
@nivosh: still can’t reproduce your Google Video issue. My WordPress 2.7 on my development machine behaves well.
Changes for v0.3.7:
[implemented, available into the development version, the trunk is stable]
)
- higher priority for the plugin execution (within the WordPress, not CPU priority
- Snotr support
[not yet implemented]
- splash image for the [flv] embedding. Notice: when it’s going into the plugin, only w and h can be switched between them. The img attribute has to be the last after w and h (or single, neither of the attributes is mandatory anyway) in order to keep the regular expression smaller, since more flexibility when adding a new attribute means more slower complicated code.
- QuickTime support since I found a <object> method of adding QT support. Notice: <embed> WON’T be supported. Don’t ask for it.
[won't be implemented]
- blip.tv … The URL can’t be converted into an embed URL as the URL uses a numeric ID while the embedding uses a different, literal ID in order to identify the same video. For services like this the “ugly” support was planned, but still not implemented. Will be implemented with 0.4. PS: any service like this actually can be uses via the SWF tag which is a powerful way, but it requires more work for you since you have to dig for the SWF URL into the embed code provided by a certain site while requiring less work for XVE as the SWF support has just a small amount of processing. The only disadvantage is the fact that they might not be future proof as the embedding URL might change – which is a bad idea from the start and an administration mistake, but you can’t have them all.
If I’m missing some feature request, please let me know.
Looks like a useful plugin to me. I will try to use it on youtube with my wordpress.
SaltwaterC,
I was able to get the embedding to work on that post by doing what nivosh did, by adding a second exact duplicate line, the video will play as normal.
If a filter could be causing it, why only for this post and not the others? How to go about finding what filter is conflicting with it?
SaltwaterC,
I found the issue. I have an automatic linking plugin that will create links I specify for words I select. One of the words I have automatically linked to another URL is part of the filename of the FLV file. The link is killing the FLV tag.
Would there be a workaround for this?
@ Jay: If you’re using the “Cross-linker” plugin (http://www.web-developers.net/blog/?page_id=28) you can set which tags etc to ignore, I believe. Using “kb linker” (if I remember correctly) I had the same problem you describe eg with links being inserted even in image urls.
)
@ Salty: looking forward to see this work with QT
kj
That hit the nail, Jay!
thank you. it turns out i use the same plugin called: KB linker.
i turned it off and now everything works well.
@Kjetil: Thanks for that tip. I started using Cross-linker and switched to SEO Links. Will have to see if there is a similar feature there.
@nivosh: It’s all good. Glad this helped you! Although I’m not a noob to IT, I am somewhat new to WordPress. Feels good to help out a fellow ‘presser.
SaltwaterC: Your plugin is so dang easy to use! Thanks for making it for all of us to use for our blogs.
-Jay
HelpfulAdvisor.com
This plugin works great on my blog website but I am not sure if it is supposed to work the same for the RSS feed. I believe it should.
Yesterday I posted a Vimeo video on my blog but the video doesn’t appear in my RSS reader (tried Google Reader and Bloglines).
http://www.vcritical.com/2009/01/vi-toolkit-for-windows-15-released/
If I go to the RSS feed directly (http://feedproxy.google.com/vcritical) the video is present.
Is this just a bug with the two readers that I have tried? I read about the video sites needing to be “whitelisted” to work with Google Reader, and Vimeo is supposedly.
Can anything be done to make videos appear in the readers?
Many thanks,
Eric
very useful plugin for me too. ^^
i’ll try to use it on my wordpress. thanks a lot.
keep up good works!
dude … e bun pluginu, dar daca tot te-ai stresat atata sa il faci de ce nu ai pus si niste butoane pe care sa apasam sa sa puna automat tagurile
((
@zacurtici: portabilitate. XVE e compatibil cu 2.0 (1.5 de fapt, dar total nerecomandat) pana la ultima versiune, si nu cred ca risc atunci cand spun ca va fi compatibil si cu versiunile ulterioare de WordPress. In alta ordine de idei, pentru puturosi am in plan o extensie de Firefox ce sa lucreze impreuna cu plug-in-ul.
ok dude, acuma iti multumeste puturosu` din mine
)
Hello and thanks for your hard work on such a great and easy to use plugin! I installed it and it worked perfectly when I had pretty permalinks turned off. But now that I have them on, the path to “mediaplayer.swf” is trying to follow the pretty link and is not found. You can see from the source code snippet below that the url to the video is right and follows the absolute path, but the code generated by the plugin is using the pretty url and missing the “/content/” in the url. I’m using WP 2.7 and the page for reference is here: http://www.jmwmusic.com/hollywood-pi-pilot-episode/
<object type=”application/x-shockwave-flash” style=”width:480px;height:360px” data=”http://www.jmwmusic.com/wp-content/plugins/xhtml-video-embed/mediaplayer.swf?flv=http://www.jmwmusic.com/content/wp-content/uploads/2009/01/thegift-480.flv…
If you have any advice it would be greatly appreciated and thanks again for your time!
@Jess: Your logo points to http://www.jmwmusic.com/content/ which also throws a 404 as this path: http://www.jmwmusic.com/wp-content/plugins/xhtml-video-embed/mediaplayer.swf
The actual path to the mediaplayer.swf on your blog is: http://www.jmwmusic.com/content/wp-content/plugins/xhtml-video-embed/mediaplayer.swf but I can’t figure out why as I don’t know what exactly went wrong with your configuration. On my development machine I keep the pretty permalinks structure as turned off, while on the production sites where I deploy XVE (this site is not the only place where I use it) usually I use the pretty permalinks structure for SEO reasons.
SaltwaterC, thanks very much for the quick reply. I apologize, I have not gone live w/ the site yet and I had that logo link coded incorrectly. I just fixed that and have my configuration set so the site is live now so you can see it working properly w/ the pretty permalinks turned on for seo. Let me know if you have any thoughts as to why the url to mediaplayer.swf is using the pretty link path and not the absolute path that includes the /content/ directory. Thanks again very much for your time.
Did you install your blog into the /content directory? The path to mediaplayer.swf is computed by using a couple of paths:
- get_option(“home”) – which is a WordPress procedure which returns the absolute HTTP/HTTPS path to your home directory, in my case: http://saltwaterc.net/ ; more about this topic: http://codex.wordpress.org/Writing_a_Plugin#WordPress_Options_Mechanism
- a dirname(__file__) call within the xhtml-video-embed.php file which returns the absolute disk path of your XVE installation. Since mediaplayer.swf is required to be installed into the same directory as the main file, this shouldn’t fail in any of the cases. For a *NIX install (Linux, BSD, etc) the path should be something like: /home/username/public_html/wp-content/plugins/xhtml-video-embed (most of the shared hosts use this kind of paths, public_html is the document root of the account), while a Windows path might be something like C:\apache\htdocs\wp-content\plugins\xhtml-video-embed … XVE is smart enough to parse these paths (it includes code for both of the platform types). It returns something like wp-content/plugins/xhtml-video-embed/mediaplayer.swf which is concatenated with the first path in order to return an absolute HTTP/HTTPS path to the player. Unfortunately, it seems that you’ve installed your WordPress files into /content instead of / (where / = your document root) thus falling in this case: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory . Unfortunately XVE wasn’t designed to cope with this kind of situation. I’ll try to find an elegant solution for this into the next release.
Yes I did install WordPress into the “content” directory to keep my root directory nice and clean. I had a feeling that could have been my downfall w/ the plugin but thanks very much for your detailed answer and if you come up w/ a solution, great and either way, keep up the great work and I’ll be recommending this plugin to all my developer friends.
Hi, great plugin, thank’s a lot for share it!
But… I am getting this message in firefox 3.0.6 with flash player plugin 10,0,12,36 (debug version)
“If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it’s missing. Get Flash Player from Adobe.”
I have search and I can find a lot of similar errors
Any clue?
Help me, help you … please provide a link where the issue appears. I can’t fix a bug that I can’t reproduce, or a bug that’s not XVE’s fault, but rather a browser, a WordPress plugin conflict among plug-ins, or a Flash Player issue.
Hey Saltwater, I am starting to use this method but I had the same problem as they share above where it only showed the raw code… now I change the second line and it started to work fine again.. weird isnt it?
Hey Saltwater,
Are you planning of adding support for width/height percentage and not just fixed width?
planning of adding support for width/height?
Sure … but I can’t add a feature twice … or should I say, I can’t add something that’s already there.
Thanks for this plugin! Would love to see Viddler video support in the next update.
[...] they did their own design; CMS is WordPress with a number of plugins (XHTML Video embed , the fantastic More Fields plugin , All in One SEO and XML Sitemap, and yes, I regularly do [...]
Fantastic plugin, and easy to use!
Any plans to add Poster frame support to builtin FLV player?
Are there any identified issues in wordpress mu? A link to a photobucket rss feed works in my main site using the generic swf tag (Of course all of the embed code is removed) but it does not work on a test blog set up as a subomain.
The youtube tag works just fine.
WordPress MU is not (yet) supported.
Hey scott. look here for a solution:
http://mu.wordpress.org/forums/
Thanks, I’ve spent plenty of time over there. A post on that forum would just point me back here to the plug-in developer anyway…
The solution was actually between my ears!
Somehow I managed to turn off the generic swf support option in the sub blog.
It is working quite well so far in testing on mu.
Hi,
Thanks for this nice plugin. I came across this one after crawling a bit to find THE video plugin that could suite my needs.
After some tweaks it’s about to be exactly what I want.
However, I would have droped you some lines in private.
Meanwhile, thanks again.
Can you please add MotionBox Support?
I’ll add it if it’s possible.
FYI: for the moment I still don’t have time to actually write the code for the future version, but I have in my mind things like this (besides what I’ve already told you folks):
1 – drop all the testing/childish decisions that I made for the previous versions. Time to make it a mature project (besides a pretty functional one)
2 – drop the support for legacy PHP versions by using the PHP 5 OOP. By this I mean dropping PHP 4. It was good, but now it is dead a buried since it’s discontinued from middle 2007. Time to move on.
3 – implement the core as library, thus creating the possibility to use it for other engines besides WordPress. Basically this plug-in will be a frontend.
Hey, your plugin looks very promising, i saw that you are planing to implement a “splash-image” for flv-file, there is a huge request for the same feature on youtube-videos.
The preview- (or poster) image you get from youtube is just a random still-image from the movie, never the one you want and also in very bad quality.
If there was a way to embed the youtube-video on your blog, but start with a picture you selected yourself, (instead of the one youtube selected for you) and when you click play the normal embedded your-tube clip starts that would be FANTASTIC.
We have searched everywhere and no one seems to have the solution tho this problem.
This post is great, cuz now I know how to add my own video. I was banging my head against the wall trying to figure it out. Now I’m saved lol!
Hi there. This is a great plugin! But I’m struggling to put two videos on the same line. I am using WP 2.3.1 and the latest version of your plugin. When I use vimeo and try to put two of them on the same line – like a grid of 2 x 2 small videos – the second one on each line disappears – the code never gets written/replaced. It works fine if I put breaks or paragraphs between them. I tried to delete the br from your code, but the second one on the same line still disappears. Text appears if I put it after the video, but not another video – can you help? Thanks!
Cool plugin. Any idea how to get the url to hyperlink correctly in the email updates my blog readers recieve? I’m hosting and posting FLV files and the file isn’t hyperlinked correctly in the email update user recieve.
I have a plugin that puts summaries of posts on the front page, but any post using your video player comes up with
“If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it’s missing. Get Flash Player from Adobe.”
on the summery page and no text?
Mike
Another thought. How do I get the video player to simply play the material/swf/flv at it’s original size? Not be forced into just the one size dictated by the XVE settings?
[...] XHTML Video Embed – Ok, this one makes my Dashboard blow up, but I haven’t seen any other problems on the site, so I’m tolerating the blown up Dashboard so that the videos I have on the site will work properly. If you guys notice any weirdness with the videos, please contact me, ok? Thanks. [...]
@Dave: I can’t think for a solution right now … sorry.
@Mike Bird: that plug-in which makes summaries uses the post excerpt? I think I have a solution for that, but must be applied at template level. About the default value, the unique values were implemented because: a) it looks horrid to have embedded files which float in random sizes around a blog; b) it spared me the effort to implement a data structure just for storing the default sizes of a certain service. You can use anytime the w and h attributes, although I may implement the default sizes into the future versions.
I tend to use video as you would pictures on a site and I use a home made flash player (just a swf playing a flv) that means I have no border around the image so it actually integrates into the page. Therefore, as in a picture, the size is dictated by the video/picture content – it could be the difference in sizes is simply a 4:3 video or 16:9 widescreen version. So although I can change the w & h attributes, it obviously then changes every video using your plug-in.
If I can simply turn this H&W attribute function off (even at PHP level) I can then design the media in size to suite the post/web-site page it that possible?
Just to say I think your plug-in is probably the best I’ve come across
many thanks
Nope, the w and h attributes are on-the-fly, for that embed code only. Example:
[youtube w=320 h=240]http://www.youtube.com/watch?v=JPqslJsZxeY&fmt=18[/youtube]
This won’t affect the default values of 448×386 (or whatever values you use), that single video would be a 320×240 embed. However, I did try to embed a flash object without width or height. I have bad news for you: it won’t display it at all, even if it’s placed within a block element with defined sizes (such as a div). So the best solution is to stick with the w and h attributes for every embed tag.
Yes i’d already tried not specifying h & w and got the same result.
Just to get it into my poor brain, when you set the h&w, it just sets the h&W for the video you are embedding at that moment. So if I set it to the actual image size before I embed on each video I insert, the original size of the media will be preserved?
The original size of the media must be specified by w and h, if the player is borderless, otherwise you have to define a larger object in order to contain the player as well. Since the flash by itself is vectorial, the size isn’t an issue. The media is the only issue as it has a fixed size. To conclude this: if you have (for example) a 400×300 media file, you can use this example [tag w=400 h=300]path-to-media[/tag] if the player is borderless. This should display the original size.
Definitions (in order to avoid confusion):
player = the actual swf file which displays the media
media = image/video which is displayed by the player
tag = the proper embed tag (swf or flv for self hosted media)
thanks for your sharing tips
Ahh…:P
I’ll also look for the code of embed videos in my blog.
Its good to heard about xhtml video embed in wp blogs.
I have seen all videos here and they are good.
I have heard about tag in HTML 5.0 and i have tried it on my website for Srilanka merrage Proposals. It really works!
Good to hear that xhtml Videos are working so easily in WordPress as well. IT is good that new technology is embded with wordpress so fast.
[...] XHTML Video Embed – Summer Times needed to embed YouTube videos in posts. This does that and more. [...]
This post is great, cuz now I know how to add my own video. I was banging my head against the wall trying to figure it out. Now I’m saved lol!
Will this plugin work smooth with Word Press 2.5? And anyways what is the most capable worldpress version for this plugin?
It works quite the same with any WordPress version as the core of the plug-in doesn’t use anything from WordPress. The only thing that’s used from WordPress is the plug-in integration.
However, someone reported that it has some issues with WP 2.8.
Man I love that human tetris video – I watched the wholöe thing mesmerized! Nice work on the plugin.
This plugin is great, but I have 2 problems:
1. I can’t for the life of me get the width and height in the shortcode to work. As soon as I go from this: [swf]myfile.swf[/swf] to this:
[swf w=320 h=240]myfile.swf[/swf] the shortcode stops working and I just get the code…
2. If I let the plugin size my videos with the defaults (since I can’t get it to control the width and the height), I get a bunch of extra padding above and below the video….
Any ideas?
@BHBlog:
1 – appears to be a bug.
2 – I’ll have a look, but probably it would be fixed into the next release. This plug-in was unmaintained since January 2009 (didn’t have time for it), while I have plans for a complete rewrite as there are some bad design practices into the current code. I still don’t know when I’ll be able to do this as my time is kinda limited lately.
t4llHU Great work
So that was the problem?! I used to have a validation link but i removed it since i was getting something like 3002 errors and i didn’t know how to fix them… hey thanks for the info i’ll try the plugin
First of all – Hi! Thank you for such a great opportunity to use your software, help, your instructions are so detailed, easy to understand, it takes me to TIME saving which is MONEY. Guys use this tips/software and don’t forget to say thanks!
Looking forward to download an update. Thanks.
Hey- Many thanks for this plugin- its a nice unobtrusive script. I’ve managed to get it to play outside of my the_content area by commenting it out within the html wsywyg editor, and calling
Elsewhere in my template. Bit hacky but it works without displaying two video boxes, which was the issue I was having.
A thing I’ve noticed is a problem playing in IE7- it seems to cache the video, but the screen remains black as it plays. Any body else had this issue?
Thanks again for all the work you’ve put into this!
J
That is quite so confusing.. Whoah.. I never
expected that… Well I guess I need a sort of understanding the script..
what a great plugin, i can’t wait to try this out. thanks.
Amazing plugin, helps people like me who have very less knowledge on scripts & all other things.
Plz Make an update to the program Simple WYM editor to work with wordpress 2.8.4
Thanks
It’s great, thanks. Impressed with the validation too.
One thing I’m noticing. It’s working perfect in the post and on the post’s (single) page display, but when I view the post from the archive, the movie I’m imbedding is gone, and I see the error :
“If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it’s missing. Get Flash Player from Adobe.”
Any ideas greatly appreciated.
@aljuk can you provide an example URL?
PS: at the moment my plug-in kinda sucks as it’s not maintained for quite a while, but I do have a new core parser for it – at the moment unreleased.
Wonderful plugin – I’m using it like crazy on my new blog.
Thank you .. Thank you .. Thank you
I’m using it with FLV’s.
One quick question: is there a way to have it show an image at the beginning under the play button (instead of all black) – just like how it looks when it’s finished playing a clip?
[...] extensiile la care am renunţat se află şi XVE căruia îi mulţumim, ne-a fost de mare [...]
Great plugin, It will make things easier, Thank you!
Hi.
In the rss feed I get the text: “if you want to view you need flash player….”
How can I make the videos appear in the feed?
Thank you
Short answer: with the current version – you can’t see any embedded flash into the feed.
Salut,
Misto tare plugin-ul… Intrebarea mea este… Daca am un clip wmv… la mine pe server .. il pot adauga folosind plugin-ul tau? In sensul ca-l pot adauga eu, dar nu da xhtml valid.. si ma enerveaza chestia asta…
Astept un raspuns.
Merci frumos,
Bogdan
Problema cu WMV este faptul că nu este recunoscut de către player-ul ce este distribuit cu plug-in-ul – de altfel WMV nu este suportat de Flash Player. Silverlight + un player pe măsură ar trebui să suporte WMV pentru că e copilul Microsoft în materie de RIA (Rich Internet Applications).
[...] XHTML Video Embed [...]
For those how wants to show an image at start, since this feature is not yet implemented in the plugin, there is a workaround (actually a hack) that make an actual image of the video to appear under the start button.
Here it goes :
/!\ Warning !
You have modify the file xhtml-video-embed.php, so backup it, it can help you go back to a working state.
/!\ You’ve been warned !
1.Find the line 508. It looks like this :
return swc_repl_amp($_mpPath.”?flv=”.$_iURL.”&autoplay=0&autoload=0&volume=100&bgcolor1=”.$_playerColor.”&bgcolor2=”.$_playerColor.”&showstop=1&showvolume=1&showtime=2&showloading=always&showfullscreen=1&&ondoubleclick=fullscreen&shortcut=1&loadonstop=0&margin=4&showiconplay=1&iconplaybgalpha=50″);
2. modify autoload=0& to autoload=1&
3. modify loadonstop=0& to loadonstop=1&
4. save the file and upload it
What it does :
The video is loaded and the first image is shown under the start button
Drawback :
The video is loaded even if you stop (watching) it.
If you want to hack more into the configuration of the player, take a look at the flv-player config generator page (http://flv-player.net/players/maxi/generator/). Warning, it’s in french.
Arg !
The html character codes have been eaten.
Thanks for the contribution. At the moment XVE is a big experimental hack. I still have plans for rewriting all that crap, but still haven’t got enough time.
dude … filme de pe 220.ro nu putem sa punem ?? sau nu era 220 cand ai scris pluginu ??
Ba era, dar avea URL-uri de embed ce nu puteau fi convertite direct de către plug-in. Acum se poate. O să fie cândva. Problema este că momentan proiectul este pe linie moartă, adică n-am mai scris o linie de cod din Ianuarie.
hi theren dose any have an xhtml page that works with an flv player ….I have been fighting with flowplayer-3.1.5.swf …but would prefer 2 use Flv player from applian as it works with 3gp .
I am wanting to use my site for my son sking and climbing …so destroy the site 2 years ago and now want to make an good one …my prolume is I never wanted to use an mark up languge as I have start in1978 and the systems and programing languges is long ….now I have learn Html, css xhtml and froced to learn java.
the only mark up languge was debug the post scrip and developement the lazer printer for ibm and . Prefer to program system tools, programmer tools and finiancial packages.
So i some would send me an page using FLV then I will tear it apart and learn from it .
thank u before hand your help
ronald ray
Nice plugin but it is not XHTML valid:
target=”_blank” is not allowed.
target=”_blank” is allowed by the Transitional DTD of XHTML 1.0. Since we, developers, actually make web applications, not web pages, then maybe just sometimes it happens that we need to obtain a certain behavior such as the target, but W3C “knows better”. This is the sole reason for NOT going with XHTML 1.0 Strict, otherwise I agree with all the Strict restrictions.
Hello,
Would it be possible to add the possibility to embed comparison tables from http://socialcompare.com ?
I know that it is not video, but it could be very nice to be able to embed various services.
What do you think ?
Thanks for your feedback;
Vanina
[...] SaltwaterC – 100% scorpio » XHTML Video Embed [...]
Somehow the shortcodes work on index.php or blog, but not on single post pages. Any idea why the videos are not shown on single post pages, but just printed as [video]link[/video]? I wonder if the new theme I am using is the cause or it is because a plugin or because your plugin does not (offically) support WordPress 3.0.1..
Can you provide an example URL with the issue? I am using 3.0.1 as well. No issues so far. It doesn’t need “official” approval since it’s mostly self-contained aka it uses just a few WordPress dependencies.
However, a new plug-in is under development. It will replace the current solution as it’s highly outdated. Don’t have an ETA though.
If the plugin does not need approval to let the short tags load your functions it is odd single post does not load my Vimeo videos..
Let me know when you are online and then I will turn of maintenance mode and send you the link. I presume your are on Pacific time so I guess you will be around in about 7-10 hrs?
Unfortunately no, my timezone is EET or even better, Europe/Bucharest.
OK, here is the link http://doede.net/blog where shorttags work and show movies and here http://www.doede.net/2010/07/29/links-toevoegen-in-een-bericht-of-pagina-in-wordpress/ a single post where it does not. Please have a look.
I can’t reproduce the issue. For me it works as expected with WordPress 3.0.1 aka this blog. I would ask you to try with another supported service (such as YouTube) in order to see that this is not a Vimeo specific issue. It shouldn’t be though as all the supported services go through the same filter. I’m pretty sure that this is a filter issue aka a conflict with another plug-in that processes the text of an article. I had this problem long time ago, but I specifically made it load earlier in WordPress (higher priority content filter) in order to avoid this kind of issues. Can you disable your installed plug-ins one by one in order to identify if this is the problem? If this doesn’t work, then a WordPress configuration might block it, but I can’t tell for sure which one.
PS: is the Vimeo service checked into the XVE administration panel? Just asking since sometimes registering the services at installation proved to be troublesome.
Thanks Saltwater. Vimeo is checked. Deactivated CformsII which did not help. Only have Akismet, TinyMCE Advanced, Add from Server,All in one SEO Package, Dutch Date, Syntax Highlighter Evolved, Reveal IDs for WP adn WordPress Database Backup to check. If those do not cause issues I will have o check config as well..
Well it is somehow caused by the theme. Single post code is here http://wordpress.pastebin.com/jsxeG6CQ . Do you see anything that could cause the shorttags from not working?
Yes, it’s the theme. the_content filters (callback functions) won’t work with get_the_content() template tag by default, unlike the_content() template tag. However, according to the WordPress Codex, you can call get_the_content() AND apply the_content filters by wrapping it (or its return value) with apply_filters(): http://codex.wordpress.org/Function_Reference/get_the_content
You can try to change the line 16 from:
to
$content = apply_filters('the_content', get_the_content());Please let me know if this works for you.
when i look at my posts it says “if your are seeing this to install or upgrade flash player”but i already have the latest version of flash?????
The “if your are seeing this” message is included inside an object tag, thus it appears if the browser does not support flash, the object tag is not allowed (such as a feed, the replacement plugin will fix this), or the user does not have a suitable Flash Player installation. In your case, here: http://visionalternativenyc.com/?p=364 if I check the HTML source of the page, there’s no object tag. This means that my plug-in does the content filtering, but something else from your WordPress installation breaks XVE. As in Jasper’s case (see the messages above) check for conflicts in other plug-ins, WordPress configuration, broken theme (although in your case the_content filter is applied). XVE runs as a high priority filter (earlier than most of the other article filters) but something else can break it.
I would like to use your plugin to embed a .swf on a static first page of my blog. Is there any way to get your tags to work when written directly in the php, and not within a post?
You can put the output that you would like to filter into an output buffer, then pass the buffer to the function swc_xhtml_video_embed() in order to mimic its filtering capabilities inside PHP.
Basically:
You may also apply all the content filters (callbacks) by calling WordPress’s apply_filer() as in my example from my above comment.
So were should the [swf] tag be in relation to that code? I’m sorry but my coding knowledge is very minimal.
Well, a static WordPress page like THIS one doesn’t require any code modifications for XVE to work. Yes, these comments are attached to a static WordPress page and as you can see, the features of my plug-in still work. You asked about “directly in the php”, therefore you got the answer for that specific question. Maybe you were asking the wrong question. However, if your coding skills aren’t up to the task, I suggest you to stick with the WordPress standard static pages and the built-in editor.
I want my flash banner above the title of my static page, this is why I need it embeded in the template. You obviously don’t have to explain it to me. I guess I’ll just have to continue using the invalid code Flash provided me with.
You can still use valid code without XVE. Is faster and recommended. Here’s the example code used for the [swf] tag from the above article. You can adapt it for your own needs.
<object type="application/x-shockwave-flash" style="width:448px;height:386px" data="http://saltwaterc.net/wp-content/uploads/Censurado-MTV.swf"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="movie" value="http://saltwaterc.net/wp-content/uploads/Censurado-MTV.swf" /><param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" /></object>
Thanks, that worked perfectly.