Embed or play flash movies from pretty much every site using your own ads in windows media player. All their ads will be disabled.
Windows media player has the ability to play many different files you usually associate with other programs, such as jpg's gif's png's wav's swf and many many others, it can even play websites.
The downside of playing flash in windows media player is any page loading is disabled ( i.e. ads ) controls in flash will still work properly ( play stop pause etc )
The best way to display multiple types of files at once is to create a playlist, this also allows you to place a clickable banner below your videos. Using php we can create a simple dynamic playlist from a template.
save the following file as player.php
SIMPLE VERSION WITH BANNER
Code:
<?php
$x = $_GET['x'];
header('Content-type: video/x-ms-wvx');
?>
<ASX VERSION="3.0">
<ENTRY>
<Banner href="http://bannerurl.com/banner2.gif">
<MoreInfo href = "http://www.linkurl2.com" />
<Abstract>Click Here To Visit</Abstract>
</Banner>
<REF HREF="<?php echo $x; ?>" />
</ENTRY>
</ASX>
now to play any video in your new playlist in media player simply link to
yoursite.com/player.php?x=LINK
where link is the link in the SRC of the embed code from the video you are linking to.
for example the following is a sample embed code from youtube
Code:
<object width="425" height="344"><param name="movie" value="https://youtube.com/v/Hsj2MHgG48s&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://youtube.com/v/Hsj2MHgG48s&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
look for where it says embed src= in any embed code ( stop at any blank space " or & )
so for that video the src link would be https://youtube.com/v/Hsj2MHgG48s
so to play that video in your player you would link to
yoursite.com/player.php?x=https://youtube.com/v/Hsj2MHgG48s
here is an example embed code from megaporn
Code:
<object width="640" height="480"><param name="movie" value="http://www.megaporn.com/e/F81T0S3D77307cc99c8acfaee53bead0d61a92f0"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.megaporn.com/e/F81T0S3D77307cc99c8acfaee53bead0d61a92f0" type="application/x-shockwave-flash" allowfullscreen="true" width="640" height="480"></embed></object>
so the src link is http://www.megaporn.com/e/F81T0S3D77307cc99c8acfaee53bead0d61a92f0
so you would link to
yoursite.com/player.php?x=http://www.megaporn.com/e/F81T0S3D77307cc99c8acfaee53bead0d61a92f0
when you link to a video it will open windows media player automatically
or you can embed your dynamic video using the following code.
example code ( pay close attention to how link is set just as above )
[code]
<object width="640" height="480"><param name="movie" value="http://yoursite.com/player.php?x=http://www.megaporn.com/e/F81T0S3D77307cc99c8acfaee53bead0d61a92f0"></param><param name="allowFullScreen" value="true"></param><embed src="http://yoursite.com/player.php?x=http://www.megaporn.com/e/F81T0S3D77307cc99c8acfaee53bead0d61a92f0" type="video/x-ms-wvx" allowfullscreen="true" width="640" height="480"></embed></object>
[code]
heres 2 links to the script in action
( requires windows media player )
YOUTUBE EXAMPLE
MEGAPORN EXAMPLE