embed openload
-
How to support OPENLOAD to embed videos?
The blog I need help with is: (visible only to logged in users)
-
Hi there,
Openload does not support oEmbed, and that is a requirement for supporting embeds from any service on WordPress.com:
https://developer.wordpress.com/docs/embedding-on-wordpress-com/
But that site also offers copyrighted movies and tv shows for download. Posting copyrighted content like that on WordPress.com is against our terms of service, and may lead to your site being suspended, so it’s unlikely that we’d add support for Openload even if they implemented oEmbed on their end.
-
So can I use this method to rigister Ooenload?
“””1″””
Register a provider for any URL beginning in http://site.com/watchvideo/ using a simple wildcard URL format:
Be careful,do not leave empty space, neither before nor afterRegister YouTube’s oEmbed provider for YouTube URLs using a regex URL format:
<?php wp_oembed_add_provider( ‘#http://(www.)?youtube.com/watch.*#i’, ‘http://www.youtube.com/oembed’, true ); ?>
Note that YouTube is already registered by default with WordPress. This is merely an example, you do not need to register YouTube yourself.“””
Like this:
<?php wp_oembed_add_provider( ‘#http://(www.)?openload.com/watch.*#i’, ‘http://www.openload.com/oembed’, true ); ?>OR
“””2″””
<?phpwp_embed_register_handler( ‘forbes’, ‘#http://(?:www|video).forbes.com/(?:video/embed/embed.html|embedvideo/)?show=([d]+)&format=frame&height=([d]+)&width=([d]+)&video=(.+?)($|&)#i’, ‘wp_embed_handler_forbes’ );
function wp_embed_handler_forbes( $matches, $attr, $url, $rawattr ) {
$embed = sprintf(
‘http://www.forbes.com/video/embed/embed.html?show=%1$s&format=frame&height=%2$s&width=%3$s&video=%4$s&mode=render‘,
esc_attr($matches[1]),
esc_attr($matches[2]),
esc_attr($matches[3]),
esc_attr($matches[4])
);return apply_filters( ’embed_forbes’, $embed, $matches, $attr, $url, $rawattr );
}?>
“”” -
Please see the allowed code here:
Remember too, our hosting and management services are different from a copy of the free software:
Also, as @kokkieh mentioned, copyrighted content would go against our TOS anyway.
- The topic ‘embed openload’ is closed to new replies.