Media site mod works perfect along with disabling the video upload (eg youtube) for registered users thanks to the forum link V@no kindly provided in my last post.
I'm trying to get the website called
http://www.playsportstv.com to play their videos in this mod as well. This is one embed that playsportstv.com provide to put the player and .flv on a website:
<object width="480" height="411" id="delve_player718925o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://assets.delvenetworks.com/player/loader.swf"/><param name="wmode" value="window"/><param name="allowScriptAccess" value="always"/><param name="allowFullScreen" value="true"/><param name="flashvars" value="playerForm=55b3958c3abb4c7ca117adf1f1962024&mediaId=cdfd4e5d31f543cb9f5e324e74275fac"/><embed src="http://assets.delvenetworks.com/player/loader.swf" name="delve_player718925e" wmode="window" width="480" height="411" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" flashvars="playerForm=55b3958c3abb4c7ca117adf1f1962024&mediaId=cdfd4e5d31f543cb9f5e324e74275fac"></embed></object><p><a href="http://www.playsportstv.com//basketball/basketball-dribbling_keep-away-drill">Basketball Dribbling: Keep Away Drill</a></p>>
This is in the browser line:
http://www.playsportstv.com/basketball#basketball-dribbling_keep-away-drill
So this is how I adapted it to the 4images Media Site mod. The playsports url uploads to my website and plays the video.
edit: Unfortunately it plays only the first video in basketball menu no matter which basketball playsports url is uploaded and thumbnail doesn't display.
V@no: Heeeeelp.....
Thanks, Wayne
Step1: Create playsports.html
<object
width="{if image_width}{image_width}{endif image_width}{ifno image_width}480{endifno image_width}"
height="{if image_height}{image_height}{endif image_height}{ifno image_height}411{endifno image_height}"
>
<param name="movie" value="http://assets.delvenetworks.com/player/loader.swf" />
<param name="allowFullScreen" value="true" />
<param name="AllowScriptAccess" VALUE="always" />
<param name="bgcolor" value="#000000" />
<param name="flashVars" value="i={media_id}&playerForm=55b3958c3abb4c7ca117adf1f1962024&mediaId=e726e57866a64833ad01459b5a4d14b9" />
<embed
src="http://assets.delvenetworks.com/player/loader.swf"
type="application/x-shockwave-flash"
width="{if image_width}{image_width}{endif image_width}{ifno image_width}480{endifno image_width}"
height="{if image_height}{image_height}{endif image_height}{ifno image_height}411{endifno image_height}"
allowFullScreen="true"
AllowScriptAccess="always"
bgcolor="#000000"
flashVars="i={media_id}&playerForm=55b3958c3abb4c7ca117adf1f1962024&mediaId=e726e57866a64833ad01459b5a4d14b9"
></embed>
</object>
Step2(a): media_sites.php change
Find
$media_sites = array(
and insert below
"playsports" => array("#^http://(www\.)?playsportstv\.com/(.*)#i",
4,
"http://assets.delvenetworks.com/player/loader.swf",
null,
MEDIA_BBCODE_YES,
"http://www.playsportstv.com",
"", //works
), //no autoplay
Step2(b): media_sites.php change
Find
// BEGIN MEDIA CUSTOM FUNCTIONS
and insert below
//playsportstv.com
function media_sites_custom_playsports($url, $match, $key, $val, $thumb = 0)
{
$return = media_sites_common($url, $match, $key, $val);
if ($thumb)
{
$patern = '#<link rel="videothumbnail" href="([^"]+)" type="([^"]*)"\s*/>#im';
if ($result = media_sites_fetch($match[1], $patern, array(1, 2)))
{
$return['thumb'] = $result[0][1];
}
}
return $return;
}
and in the ACP
Valid file extensions I inserted
playsports,Thanks, Wayne