The concept would be to define a template that would display some kind of thumbnail ( or link ) that users would click on to launch the player. You might try using the default template as a starter, since it's provides most of the functionality
1. Copy the 'default' folder from the /DesktopModules/Repository/Templates folder. Paste it to the same folder and rename the new folder to something like 'PopupVideo'
2. Edit the template.html file and look for the section of the template that displays the thumbnail. The default behavior is to display the full size image ( as specified by the [IMAGE] tag ) in a popup window when you click on it.
<TD WIDTH=100 CLASS="normal" ALIGN="center" VALIGN="top" style="padding-left: 6px; padding-right: 6px;">
<A HREF="[IMAGE]" TARGET="_blank"><IMG SRC="[THUMBNAIL]" BORDER=0 ALT=""></a>
<br>
</TD> |
3. You want the media file ( the FILE that you uploaded ) to display when you click on the thumbnail, so change the [IMAGE] tag to [FILEURL] which will be the URL to the actual file. So it would look like this...
<TD WIDTH=100 CLASS="normal" ALIGN="center" VALIGN="top" style="padding-left: 6px; padding-right: 6px;">
<A HREF="[FILEURL]" TARGET="_blank"><IMG SRC="[THUMBNAIL]" BORDER=0 ALT=""></a>
<br>
</TD> |
4. Open the Repository Settings page and select your new 'PopupVideo' template.
That should do it. Clicking on the image thumbnail should open a new window ( popup window ) and display the media file. You can then 'tweak' the rest of the template.html file to do things like remove the DOWNLOAD, add some text below the image indicating that the user should click on the image to display the video, etc.