Center JW Player
-
Hey,
I wrote a short plugin that embeds flv videos with JW Player
using this
[flv]video url[/flv]
the actual code I use to embed looks like this
(with php variables but you get the point)<script type="text/javascript" src="'.$swfobject.'"></script> <div id="'.$mediaspace.'">Please Refresh or Download <a href="https://get.adobe.com/flashplayer/" target="_blank">Adobe Flash Player</a></div> <script type="text/javascript"> var so = new SWFObject("'.$swfplayer.'","'.$random.'","'.$width.'","'.$height.'","9","#ffffff"); so.addParam("allowfullscreen","true"); so.addParam("allowscriptaccess","always"); so.addParam("wmode","opaque"); so.addVariable("screencolor","#000000"); so.addVariable("file","'.$flvurl.'"); so.addVariable("skin","'.$swfskin.'"); so.addVariable("type", "video");'; so.write("'.$mediaspace.'"); </script>';
So my issue is that when I use my shortcode in a post it doesnt center the flv. What is the proper practice to do this?
- The topic ‘Center JW Player’ is closed to new replies.