Case Study - How to Embed the Windows Media Player Within the Items and Play a Movie

The Goal

A customer contacted us and asked how she could embed a Windows Media file into 20/20 DataShed's pages. Here are the details:

The Process

20/20 DataShed already provides an "upload" utility which enables you to upload photos or documents (such as videos). So that part is easy -- this customer can upload a movie file for each of her listings.

20/20 DataShed already provides a method to display links to download the documents that are associated with listings. So that part was also easy -- visitors would be able to click and view the movie files.

The only part that wasn't already available was a method to actually play the movie file in an "embedded" media player like below. (This customer wanted the Windows Media Player to appear directly in the web page rather than pop open in a new application.)

We determined that this was possible using 20/20 DataShed's tools and would not require any modification to the product's source code. With a simple edit to the "item_template(Default).html" file (which is a basic HTML document), we could accomplish this customer's request.

The Solution

We knew these things before attempting this project:

First, we uploaded a sample movie file (here) to one of her listings.

Next, we modified the "item_template(Default).html" file like this:

Related topics


© 2005 - 2007 20/20 Applications. All rights reserved.