Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions
 Discussion Forums
 HTML, XML, JavaScript...
 Software Reviews
 Editors,Others...
 Top100
 JavaScript Tutorials, ...
 Tutorials
 ASP, CSS, Databases...
 Discussion List
 FAQ, Roundup, Configure ...
 Authoring
 HTML, JavaScript, CSS...
 Design
 Layout, Navigation,...
 Graphics
 Tools, Colors, Images...
 Software
 Browsers, Editors, XML...
 Internet
 Domains, E-Commerce, ...
 WDVL Resources
  Intermdiate, Tutorials,...
 WDVL
 Discussion Lists, Top 100,...
 Technology Jobs


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us
Computer Deals
Online Shopping
Online Education
Best Price
Server Racks
Career Education
KVM over IP
Imprinted Gifts
Promote Your Website
Condos For Sale
Promotional Pens
Find Software
Home Improvement
Imprinted Promotions

Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


 
Interview with C++ Guru Herb Sutter
Multi- and many-core chips are entering the mainstreamand one of the first software development authorities to take note was C++ expert Herb Sutter. He took time recently to speak with Go Parallel about the multi-core chip revolution and how it's affecting software developers. Read More>>>
 
Scalable Parallelism with Intel® Threading Building Blocks
This paper discusses the approach to parallelize the Data Encryption Standard (DES) algorithm with Intel. Threading Building Blocks and how it can scale for future processors. Read More>>>

 
Visit ThreadingBuildingBlocks.org
Threading Building Blocks (TBB) is now open sourced and supported by some very impressive veteran parallelism experts. Come check it out! Read More>>>
 
Intel Threading for Multi-Core Community
The Intel® Threading for Multi-Core Community provides technical information, tools, conversation and support for the development of parallel programs and multi-threaded applications on multi-core and multi-processor platforms. Read More>>>
 
Download a Sample Chapter of the Book: Threading Building Blocks
Intel Threading Building Blocks: Outfitting C++ for Multi-core Processor Parallelism, by James Reinders. Get your copy now!>>>
Top 10 Articles
  1. Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions
  2. JavaScript Tutorial for Programmers
  3. Design
  4. JavaScript Tutorial for Programmers - Objects
  5. JavaScript Tutorial for Programmers - JavaScript Grammar
  6. JavaScript Tutorial for Programmers - Versions of JavaScript
  7. Cascading Style Sheets
  8. JavaScript Tutorial for Programmers - Embedding JavaScript
  9. JavaScript Tutorial for Programmers - Functions
  10. Authoring JavaScript
Domain Name Lookup
Search to find the availability of a domain name. Just enter the complete domain name with extension (.com, .net, .edu)

Windows Media Playback in a Web Page

May 7, 2001

I've always wanted to do Interactive TV (ITV), ever since I took my first crayon and drew on the television. Little did my parents realize during all the shouting that I was taking a first step in building my resume. Interactive TV has been slow to develop, but in the meantime another screen came to be popular in homes, the computer.

Let's face it, watching video on the computer — even at 300kbps — is still an experience only a hard core techie could love. It isn't going to beat out television. Where things get interesting is when the video gets combined with other information or applications that enhance or allow us to manipulate the video.

In this article, I'm going to show you how to include Windows Media video in your Web pages. This is your first step to becoming an Interactive TV programmer.

Putting Video Online

Before you start creating interactive video on the Web you need a place to host your video. One thing that all articles seem to neglect is how the average person gets access to a video server at a reasonable price.

If you have a copy of Windows Media 2000 Server you can install Windows Media Services yourself and you can run all your testing locally. But what if you're the average user with a single computer and slow Internet access? What you need is someone else to host your video at a price that isn't going to tax your depleted tech stock portfolio.

Its called Playstream

You can get a free site for 15 days and then rates are as low as $4.99/month after that. I swear, I'm not associated with them. They provide online statistics and allow you to grow to be as big as you want to be. If you come up with some content that is particularly compelling then they can even set up a pay-per-view service. Once you get your video online your ready to become an ITV programmer.

Launching the Player

Video files for Windows Media consist of two files. The main video file (.ASF) and a "pointer" file (.ASX or .WVX) that you use to point to the video server. For those of you who are familiar with Real Video the relationship is the same as the Real Video (.RM) to the RAM file.

The ASX and the WVX files are the exact same thing and contain the same information. WVX is simply what Microsoft decided to call the ASX file in Windows Media 7. To ensure backward compatibility I would continue to us ASX. All code in this article will refer to ASX files.

 
Pointer File
Media File
Windows Media asx or .wvx .asf, wmv, wma
Real Media .ram .rm, ra

The simplest way to get video into your Web page is to place a link to the "pointer" file in your page. The pointer file, either .wvx or .asx, resides on your Web server with the HTML, not on the streaming server.

This link will appear exactly like any other link on the page, but instead of pointing to a new Web page it points to an ASX file. Once clicked on the browser is smart enough to launch the Windows Media Player as a stand-alone application and play the video.

Simple ASX Files

First, let's take a look at a simple ASX file that will serve to launch your video. In the next section I will discuss the XML-based language of the ASX file and show how it can control the video file.

Place this in your HTML:
<A HREF=" yourfile.asx">Link to Streaming Content</A>

Here is the file yourfile.asx. This should go in the same directory as the HTML file that points to it. Create it in Notepad or your HTML editing program and save it as a normal text file with the .asx extension.

<ASX version = "3.0">
  <ENTRY>
    <REF HREF =
    "mms://win.playstream.com/jrule/video/sample.asf" />
  </ENTRY>
</ASX>

It's that simple. Now remember this doesn't embed the video in the page; it launches the standalone player. I'll show you how to embed the video later on.

Complex ASX Files - Page 2


Up to => Home / Multimedia / Windows_Media




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers