![]() |
WordPress Gurus - How to embed video into your blog?
I had a script but since the WP update it doesnt work. Anybody know of a tool that can embed some vids into my blog hosted on my own server?
|
go to options, author options, uncheck "use rich text media editor" it auto edits the code if it is turned on, turn it off and your shit works
|
Quote:
<!-- begin embedded WindowsMedia file... --> <table border='0' cellpadding='0' align="left"> <tr><td> <OBJECT id='mediaPlayer' width="320" height="285" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'> <param name='fileName' value="http://servername/path/to/media.file"> <param name='animationatStart' value='true'> <param name='transparentatStart' value='true'> <param name='autoStart' value="true"> <param name='showControls' value="true"> <param name='loop' value="true"> <EMBED type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1' bgcolor='darkblue' showcontrols="true" showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285" src="http://servername/path/to/media.file" autostart="true" designtimesp='5311' loop="true"> </EMBED> </OBJECT> </td></tr> <!-- ...end embedded WindowsMedia file --> <!-- begin link to launch external media player... --> <tr><td align='center'> <a href="http://servername/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player</a> <!-- ...end link to launch external media player... --> </td></tr> </table> |
|
Thanks^
I'll check it. |
Quote:
|
|
Quote:
Code:
<div class="vvqbox vvq400 vvqyoutube"><object width="425" height="335" type="application/x-shockwave-flash" data="https://youtube.com/v/5bGtGUhhUi8"> |
Quote:
|
Just getting a black box with that code. No buttons.
|
Quote:
|
Quote:
|
Quote:
|
i can show you how to do it a very very easy way
|
Quote:
|
this will sav you time indeed , takes a few moments to setup but once it is you wont need to setup multiplle code for diff filetypes of videos. this will cover flash or wmv or asx or anything and it wont show that stupid <click here to activate this control" in ie and you dont need to even post code . all you gotta do is surround your videos in simple bbcode type tags..
ok heres how its done. Code:
window.onload = function(){ <script src='pathto/video.js'></script> Then edit your post template to include <div class=extra> * depending on your template this may vary just try to wrap your "xtra" div inside the post wrapper ok now all you gotta do is post your videos like this stbvidw-brandibelle.bangbros1.com/102/vids/01.wmv-etbvid notice A) the video url is missing the http:// dont worry about that B) notice the video is surround by the tags stbvidw- and end with -etbvid this is now your simple embed code. all videos will end with the same tag -etbvid , depending on the video type you can specify the embed code to use stbvidw- for windows media like wmv stbvids- for flash videos stbvida- for asx files. you can add more varities and customize the setting like width and height in the js file so you dont have to do it every time. |
ps heres an example http://www.wctin.com/demo view source and you will see there is no embed code nor is the video url in the js file, .
The js file pulls the url from the page then redisplays it with video wrappers |
if you need help let me know and ill walk you thru install
remember once its done you no longer have to even post embed code or anything you can just post videos like this using common text stbvidw-www.fileurl.com/movie.wmv-etbvid the script will change that into <embed width=800 height=600 src=http://www.fileurl.com/movie.wmv></embed> of course you can add all the tags you want to the embed code to be more fancy like autostart transparency looping volume etc |
smokey, you never cease to amaze me
|
Quote:
this will take the ease out of posting videos ps if you wanna be tricky and kinda hide the real video url if your hosting the files you can add this just below the replacement items in the js file var stb5 = "-secretfolder-"; mpo = gfyt.search(stb5); if(mpo != -1){ rkw = "realfolder"; gfyt = replace(gfyt,stb5,rkw); } then when you post a video using the code like this stbvidw-www.mysite.com/-secretfolder-/vid1.wmv-ebtvid it would actually change it to <embed src=http://www.mysite.com/realfolder/vid1.wmv></embed> notice the folder is different. the viewer wont actually be able to see the real url unless they dig into the js file to see how its done |
great stuff smokey :thumbsup
|
Good thread, lots of useful info. Thanks yo.
|
All times are GMT -7. The time now is 08:41 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123