Post by Eton Bones on Feb 9, 2008 14:13:08 GMT -5
[bg=mistyrose] |
[bg=red] Update:1.17.2012 Because Megavideo now insists on operating by click-through POPUPS and REDIRECTS you'll need to explicitly allow flash generated browser actions by setting a param of allownetworking with a value of "all". If not done then the code automatically adds allownetworking="internal" to the generated embed to guard against malicious flash codes which will prevent the necessary popups and redircts. vidType['MegaVideo'].params={flashvars:_getFlashVars, allownetworking:'all'}; |
[bg=red] Update:1.28.2012 |
Video Type:MegaVideo
UBBC:[video=MegaVideo]M74WJNI24904757de5721d4796dee6d7cabb966d.4137377199.0[/video]
How to insert video:Megavideo only has a portion of the entire identifier to the video in the url. For example the video at http://www.megavideo.com/?v=W33FWUOI has only a part of the full identifier in the url
method 1:Copy and paste the following bookmarklet into the addressbar while the video is playingjavascript:var x=prompt('Copy the video id below',postmakeplayer.toString().match(/&e=([\w.]+)/)[1].concat("0"))
method 2:To get the entire identifier view the embed code for the video identifier (highlighted in red below):
<object width="432" height="351"><param name="movie" value="http://www.megavideo.com/v/W33FWUOI7e41bc28c368120f6ae49ebece84edd4.93942512.0"></param><param name="wmode" value="transparent"></param><embed src="http://www.megavideo.com/v/W33FWUOI7e41bc28c368120f6ae49ebece84edd4.93942512.0" type="application/x-shockwave-flash" wmode="transparent" width="432" height="351"></embed></object>
Note also that the last digit on the identifier determines the color scheme of the player.
- 0 = orange
- 1 = yellow
- 2 = green
- 3 = blue
The admin (or person who edits and installs the code) can override the color scheme a poster uses by specifying a default for a particular forum skin. If no default for a particular skin is chosen (by editing the code) then the color scheme of poster of the video will be honored.
Addon Code:
<script>
/* AVIP Addon:MegaVideo (global header below AVIP header code) - Eton Bones*/
if(window['vidType']){
vidType['MegaVideo']={};
vidType['MegaVideo'].prefix='http://www.megavideo.com/v/%video%';
vidType['MegaVideo'].params={flashvars:_getFlashVars};
vidType['MegaVideo'].example='http://etonbones.proboards100.com/index.cgi?board=examples&action=display&thread=24';
// remove user specified color scheme if admin color scheme is present
vidType['MegaVideo'].preprocess=function(vType,vURI){if(vidType[vType].custom && ('skin'+pb_skinid in vidType[vType].custom)){caller[caller.length-1].arguments[2] = caller[caller.length-1].arguments[2].replace(/\.[0-3]$/,'');caller[caller.length-1].arguments[2]+=vidType[vType].custom['skin'+pb_skinid];}}
vidType['MegaVideo'].custom={skin1:'.0',skin2:'.1',skin3:'.0',skin4:'.3'};
/* INFO:
Megavideo offers 4 customized player color schemes
0 = orange, 1 = yellow, 2 = green, 3 = blue
*/
}
</script>
[Agent:2]