EQnoble
Well-known member
added to the listI'm not sure if I missed 5min.com videos in your pages.
Specifically:
http://www.5min.com/Video/Mitt-Romney-Mocks-Rival-Newt-Gingrich-517257851
Thank you
added to the listI'm not sure if I missed 5min.com videos in your pages.
Specifically:
http://www.5min.com/Video/Mitt-Romney-Mocks-Rival-Newt-Gingrich-517257851
Thank you
Can someone help me with BBCode for this http://veevr.com/
<iframe src='http://veevr.com/embed/{$id}' width='640' height='360' scrolling='no' frameborder='0'></iframe>
It was the regular expression tab wasn't itok thx is working
*******
<see html callback>
<?php
class MediaSites_*******
{
public static function buildEmbed($mediaKey, array $site)
{
// CAPTURE WEB PAGE
$pageHtml = file_get_contents('http://www.*******.com/view_video.php?viewkey=' . $mediaKey);
// ISOLATE THE EMBED CODE IN THE SOURCE
if(preg_match('/[^\w]<textarea onclick="this\.select\(\)" class="share-flag-embed">(?P<embedhtml>[^<]+)<\/textarea>/siU', $pageHtml, $match))
{
// IT HAS HTML ENTITIES, UNDO THAT
$match['embedhtml'] = htmlspecialchars_decode($match['embedhtml']);
// FROM EMBED CODE, ISOLATE THE ID
if(preg_match('#<param name="FlashVars" value="options=http://www\.*******\.com/embed_player\.php\?id=(?P<videoid>[^"]+)"/>#si', $match['embedhtml'], $info))
{
// DEFINE GENERIC EMBED HTML WITH REPLACEMENT VARIABLE __MEDIAKEY__
$embedHtml = '<object type="application/x-shockwave-flash" data="http://cdn1.static.*******.phncdn.com/flash/embed_player.swf" width="608" height="476">
<param name="movie" value="http://cdn1.static.*******.phncdn.com/flash/embed_player.swf" />
<param name="bgColor" value="#000000" />
<param name="allowfullscreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="FlashVars" value="options=http://www.*******.com/embed_player.php?id=__VIDEOID__"/>
</object>';
// MAKE THE REPLACEMENTS
$finalHtml = str_replace('__VIDEOID__', $info['videoid'], $embedHtml);
// RETURN THE FINISHED HTML
return $finalHtml;
}
}
// RETURN NOTHING IF NO MATCH
return '';
}
}
Code:// IT HAS HTML ENTITIES, UNDO THAT $match['embedhtml'] = htmlspecialchars_decode($match['embedhtml']);
http://www.cbsnews.com/video/watch/?id=7396768n
<embed src="http://cnettv.cnet.com/av/video/cbsnews/atlantis2/cbsnews_player_embed.swf" scale="noscale" salign="lt" type="application/x-shockwave-flash" background="#333333" width="425" height="279" allowFullScreen="true" allowScriptAccess="always" FlashVars="si=254&&contentValue=50119107&shareUrl=http://www.cbsnews.com/video/watch/?id=7396768n" />
<embed src="http://cnettv.cnet.com/av/video/cbsnews/atlantis2/cbsnews_player_embed.swf" scale="noscale" salign="lt" type="application/x-shockwave-flash" background="#333333" width="425" height="279" allowFullScreen="true" allowScriptAccess="always" FlashVars="si=254&&contentValue=&shareUrl=http://www.cbsnews.com/video/watch/?id=7396768n" />
CBS News does not appear to work correctly.
if(preg_match('#CBSVideo\.setVideoId\(\"?(?P<vidid>[0-9]+)"?\)#si', $pageHtml, $match))
if(preg_match('#CBSVideo\.setVideoId\(\"?(?P<videoid>[0-9]+)"?\)#si', $pageHtml, $match))
I was just zombied out after a couple of hours of mediasite tinkering I guess.
We use essential cookies to make this site work, and optional cookies to enhance your experience.