Code: Select all
<TMPL_IF video_code>
<table cellpadding=0 cellspacing=0 style="margin:5px;border:1px solid #555;"><tr><td>
<TMPL_VAR video_code>
</td></tr></table>
</div>
</TMPL_IF>
Thanks
Code: Select all
<TMPL_IF video_code>
<table cellpadding=0 cellspacing=0 style="margin:5px;border:1px solid #555;"><tr><td>
<TMPL_VAR video_code>
</td></tr></table>
</div>
</TMPL_IF>
Code: Select all
$file->{video_code}=qq[document.write('<object id="ie_vid" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="$file->{vid_width}" height="$file->{vid_height}" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
<param name="custommode" value="Stage6" />
<param name="wmode" value="transparent" />
<param name="previewImage" value="$file->{video_img_url}" />
<param name="allowContextMenu" value="false">
<param name="bannerEnabled" value="false" />
<param name="previewMessage" value="Play" />
<param name="autoPlay" value="false" />
<param name="src" value="$file->{direct_link}" />
<embed id="np_vid" type="video/divx" src="$file->{direct_link}" custommode="Stage6" wmode="transparent" width="512" height="288" previewImage="$file->{video_img_url}" autoPlay="false" bannerEnabled="false" previewImage="$file->{direct_img}" allowContextMenu="false" previewMessage="Play" pluginspage="http://go.divx.com/plugin/download/"></embed>
</object>');];
$file->{video_code} = &encodeJS($file->{video_code});
Code: Select all
if($ses->iPlg('v') && $c->{m_v} && $file->{file_spec}=~/^V/)
{
my @fields=qw(vid vid_length vid_width vid_height vid_bitrate vid_audio_bitrate vid_audio_rate vid_codec vid_audio_codec vid_fps);
my @vinfo = split(/\|/,$file->{file_spec});
$file->{$fields[$_]}=$vinfo[$_] for (0..$#fields);
$file->{vid_codec}=~s/ffo//i;
$file->{vid_codec}=~s/ff//i;
$file->{vid_codec}=uc $file->{vid_codec};
$file->{vid_audio_codec}=~s/faad/AAC/i;
$file->{vid_audio_codec}=~s/ff//i;
$file->{vid_audio_codec}=uc $file->{vid_audio_codec};
$file->{vid_fps}=~s/\.000//;
$file->{vid_length2} = sprintf("%02d:%02d:%02d",int($file->{vid_length}/3600),int($file->{vid_length}/60)%3600,$file->{vid_length}%60);
my $dx = sprintf("%05d",($file->{file_real_id}||$file->{file_id})/$c->{files_per_folder});
$file->{srv_htdocs_url}=~/(.+)\/.+$/;
$file->{video_img_url}="$1/i/$dx/$file->{file_real}.jpg";
if($file->{vid_codec}=~/(divx|xvid)/i)
{
my $res = $ses->api($file->{srv_cgi_url},
{
op => 'gen_link',
file_id => $file->{file_real_id}||$file->{file_id},
file_code => $file->{file_real},
file_name => $file->{file_name},
fs_key => $file->{srv_key},
ip => $ses->getIP });
my ($ddcode) = $res=~/^OK:(.+)$/;
$file->{direct_link} = "$file->{srv_htdocs_url}/$ddcode/$file->{file_name}";
$file->{video_code}=qq[document.write('<object id="ie_vid" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="$file->{vid_width}" height="$file->{vid_height}" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">
<param name="custommode" value="Stage6" />
<param name="wmode" value="transparent" />
<param name="previewImage" value="$file->{video_img_url}" />
<param name="allowContextMenu" value="false">
<param name="bannerEnabled" value="false" />
<param name="previewMessage" value="Play" />
<param name="autoPlay" value="false" />
<param name="src" value="$file->{direct_link}" />
<embed id="np_vid" type="video/divx" src="$file->{direct_link}" custommode="Stage6" wmode="transparent" width="$file->{vid_width}" height="$file->{vid_height}" previewImage="$file->{video_img_url}" autoPlay="false" bannerEnabled="false" previewImage="$file->{direct_img}" allowContextMenu="false" previewMessage="Play" pluginspage="http://go.divx.com/plugin/download/"></embed>
</object>');];
$file->{video_code} = &encodeJS($file->{video_code});
}
}
Code: Select all
$ses->PrintTemplate("download2.html",
Code: Select all
<TMPL_IF video_code>
<table cellpadding=0 cellspacing=0 style="margin:5px;border:1px solid #555;"><tr><td>
<TMPL_VAR video_code>
</td></tr></table>
</div>
</TMPL_IF>
Code: Select all
m_v_page => '1',
Code: Select all
m_v_page => '1',