I’ve got a multisite installation of WP 3.5.1 running, and I’d like to for users to be able to embed screencast.com videos into posts, preferably with a shortcode like you do with YouTube or Vimeo.
I can do this using the full embed code from the screencast.com sharing menu, but I can only do this as a super admin. All other users have and tags stripped out of their posts. I can get around this by installing the Unfiltered MU plugin, but that’s not ideal, since it allows users to put all sorts of untrusted code/tags in their posts.
I’ve searched pretty extensively for some sort of simple plugin, and have come across this Screencast.com Video Embedder that seems idea, but it hasn’t been updated in 2 years.
So I’m wondering if there are any other solutions that might work for this.
Screencast.com has a dedicated GitHub page with hands full of tutorials (no need to clone them over here).
You can then utilize
wp_oembed_get()
or register a new provider usingwp_oembed_add_provider()
.Or add the provider:
Keep in mind that some providers will force you that you obtain an API key to do successful requests. The good ones hand out some for testing & developing purpose.
To alter the MarkUp, there’s the
obembed_dataparse
filter, which you can use.Not sure if this helps you, but I was just scouring some other blogs, and found a suggestion to try Embed.ly plugin. It has an API that you can register for free, and hundreds of media providers (including Screencast, which you have to enable from the Embed.ly settings once installed). After that, just go into the page/post HTML page and paste just the URL from screencast (or other) and viola! It worked great, and my hotspots work too. I think they have an API that takes the URL, and delivers the embed code in the background. I’ll report back if my code disappears or not.
Good luck!