The BaseURL Tag


Use the BaseURL tag to set the NetShow Player BaseURL property. Setting the BaseURL becomes important only if the .asf file you are referencing contains relative URLs. A relative URL is any path that does not contain \\, :\, or :/ because the URL is not a UNC path, a full local path, or a URL with a specified protocol. Once NetShow Player detects a relative URL, it looks to append the relative URL to the BaseURL property. To give you an example, suppose the text below is the contents from an .asx file.


[Reference]
Ref1=mms://Dancing/Tango.asf
BaseURL=http://Image_server/24-bit_color/demo1

For this example, Tango.asf contains several script commands that used relative URLs, the first of which is URL image1.jpg. When NetShow Player receives the script commands, the player tests the paths. If the script commands use relative URLs, NetShow Player checks its BaseURL property. If this property is empty, the player checks the current .asx file. Because you named a BaseURL as part of the .asx file, NetShow Player sets its BaseURL property to http://Image_server/24-bit_color/demo1. NetShow Player then appends a forward slash to the BaseURL property and the script command parameter (image1.jpg). The final script command that NetShow Player looks for is http://Image _erver/24-bit_color/demo1/image1.jpg. For more information on the NetShow Player BaseURL property, see the NetShow Player SDK, which is installed as part of the NetShow Tools installation.

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.