Inserting Video Media into a Web File via Expression Web 4

Strictly an Article for the Beginner

This article will present a simple way to embed a Windows Media Player into a web page (or web form should that your choice). Microsoft Expression Web 4 has a tool bar with an Insert choice. You simply click Insert on the toolbar, select Media, and then select the media technology that you choose to embed into your page. Fire up Expression Web 4 and examine the interface. You will see that there is a code and design view on the web designer interface. For the purposes of this article, we will embed Windows Media Player in order to play video on our web page.

I downloaded a video from the Multimedia section of the NASA web site and renamed the file “demo.wmv”. Here are the steps:

Insert Windows Media from Insert Menu

  1. Launch Expression Web and open the web page you want to insert the media into.
  2. Place the cursor where you want to place the media.
  3. Go to the Insert menu > Media > Windows Media Player…

In the Select Media file dialog box, browse to the location of the media file, select your file and click on Insert. You can select different media file formats from the drop down next to File name. The next step is to save your file. If your movie file is not already saved in your web site folder then, you would be prompted with ‘Save Embedded Files’ dialog box.


As soon as you click on ‘OK’ the media file will be added to your web site folder (open folder). If your web site is not already open, then you can click on Change Folder… and navigate to the location of the web site and save the file. Find the file in the Folder List task pane:


The name of the web page is default.html. Below that file is the NASA video called “demo.wmv”. To the right of the SP object below the toolbar is a white component with an arrow that gives you a choice as to which browser you want to preview your video:


Another Example: Playing a YouTube video on your Web Page

On the YouTube web site, right click the video and choose copy embed HTML; paste it into notepad. Delete the object tab in your HTML and paste in that code:


This is what the designer view will display, that there is no inserted control. Ignore it and preview it you web browser.


While there is no control, you can still preview the video:


Admittedly, this is a very basic article, but it can demonstrate to the beginner how to embed a video control or a video link into a web page. The downloadable file does not contain the NASA video, but a default public video, "bear.wmv", renamed to "demo.wmv". Download the zip file, extract the two files into a newly made folder. Right-click the HTML file, and choose "open with Expression Web". The video will play with little or no buffering time.

推荐.NET配套的通用数据层ORM框架:CYQ.Data 通用数据层框架
.NET 开源ORM框架"