Recent Topics

1 Sep 02, 2008 06:50    

My b2evolution Version: 2.4.2

Please pardon the interruption. I've read many, if not all of the posts available on embedding objects in a post, specifically a video object. Many of them seem to apply to older versions of b2e, so I'm not sure of their applicability to my scenario.

I am working on embedding flash videos (flv files, NOT swf files) into blog posts for training purposes. The code I'm using for the embed looks roughly like this:


<object classid="clsid:xxxxxxxx-yyyy-zzzz-aaaa-bbbbbbbbbbbb" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240" id="FLVPlayer">
                <param name="movie" value="FLVPlayer_Progressive.swf" />
                <param name="salign" value="lt" />
                <param name="quality" value="high" />
                <param name="scale" value="noscale" />
                <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=http://training.mydomainnet/video/subjects/flash/trainingvideo&autoPlay=true&autoRewind=false" />
                <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=http://training.mydomainnet/video/subjects/flash/trainingvideo&autoPlay=true&autoRewind=false" quality="high" scale="noscale" width="320" height="240" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />              
</object>

What happens to me is the & is converted to '&amp;' when I save the post, and it isn't rendering out. I've turned off TinyMCE and XHTML checking through the group permissions, but every time I preview or save the post with the video in it and view my source, the &s get changed, and I'm pretty sure that's causing my problem.

I can't use YouTube or any other video service. These must stay behind the firewall.

I've looked at the video plugin and the video plugin hack that allows for insertion of a flash file from the editor, but it looked like no small feat to modify those for use with our flv files and the flashvars we want to use (especially since I am by no means a coder). I was going to simply create a stock bit of HTML for our trainers to copy and paste every time they needed to post a new video to their blog, changing the file names, but I can't figure out why the code is being modified upon save, and how I can change that behavior.

BTW, I've posted this inside of another web page, and it works perfectly, so I know my object code works. It just doesn't work with b2e for some reason I can't find yet.

If I need to make some of the mods to _formatting.php I've seen in other posts, just please point me to the right ones and I'll be out of your hair!

Thank you!

Thanks!
[/code]


Form is loading...