Playing a Video in PHPAlbum
Submitted by Topgun on Mon, 2008-11-10 10:17.
Hello,
i'm trying to modify the Script. So if there is a video (e.g. avi) in the Album, this video should play on the Website instead of creating a download-link.
This is not so difficult, and it works, if i change the code without Variables...
My question is, where do i have to change the code with an "if", so the code decides if there is
- a Picture in the album --> use the normal imageview.tpl.php
- a Video use a modified variant of imageview.tpl.php (e.g. called "videoview.tpl.php") with this code in it:
<OBJECT ID="MediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
width="400" height="370" standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="$???????????">
<Embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
src="{param1}" Name="MediaPlayer"
width="400" height="320" transparentAtStart="0" autostart="0"
animationAtStart="0" ShowControls="true" ShowAudioControls="1"
ShowPositionControls="0" autoSize="0" ShowStatusBar="1" displaySize="false">
</embed></OBJECT>And which Variable do i have to use in row 5 instead of "$???????????" to have the correct link to the video?
Thanks for your support,
Reinhard

Recent comments
2 days 4 hours ago
5 days 2 hours ago
1 week 11 hours ago
1 week 16 hours ago
1 week 23 hours ago
1 week 2 days ago
1 week 2 days ago
1 week 2 days ago
1 week 2 days ago
1 week 2 days ago