Returns or sets a String value specifying the name of the current file or opens a new file.
object.FileName
FileName can refer to an ASF file on a local hard disk drive, on an HTTP server, or on a NetShow server. The following are valid examples of file names:
mms://MyServer/MyASF.asf C:\MyASF.asf http://MyServer/MyASF.asxSome options in scanning and seeking vary depending on where the file is stored. See CanScan, CanSeekToMarkers, and CanSeek for more information.
You can set FileName at design time to make the Player control automatically open a file whenever the control is invoked. This can be useful when embedding the control in HTML pages if you have specific ASF files to play.
Additionally, if AutoStart is True, file playback begins automatically anytime you set FileName. If you set both AutoStart and FileName at design time, the control begins playing the file when it is loaded.
AutoStart, CanScan, CanSeek, CanSeekToMarkers, Pause, Play, Stop
Return to Player Control Reference.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.