Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: [Resolved] Video embedding


LPH2005
Participant

@lph2005

OK. The developer of the phpmotion script oEmbed has it working on his WP site by adding to the wp-includes/class-oembed.php

‘#http://(www.)?chemvideos.com/.*#i’ => array( ‘http://www.chemvideos.com/oembed’, true ),

This allows the URL http://www.chemvideos.com to be embedded in a WP post simply with the URL such as

http://www.chemvideos.com/videos/42/reduction-oxidation-reaction

You can see it working in this blog posting: http://www.thechembook.com/2010/05/15/student-presentation-redox/

However, I would like this to work in the activity stream and the forums.

For YouTube, I can just add the URL in the stream or forum – but not for the chemvideos site (which works in a WP post now).

This is what I put in the functions.php file (I also tried in the bp_customs.php file):

# php wp_oembed_add_provider( ‘http://www.chemvideos.com/*’, ‘http://www.chemvideos.com/oembed’ );

Ugh – I’ve tried all sorts of combinations to get the code to show — sorry – but it is getting stripped out. And yep – even surrounding it with code still strips it — so — just imagine that the line is surrounded with angle brackets.

Skip to toolbar