E D R , A S I H C RSS

ASXMetafile (rev. 1.1)

ASX Metafile

What is ASX?

일종의 윈도우즈미디어 메타파일. XML 스크립트로 이루어져있고 이 메타파일을 작성함으로써 플레이어를 건드리지 않고도 다양한 기능을 사용할 수 있다.

윈도우즈 미디어 메타파일 확장자

  • .asf 파일을 참조하는 .asx 파일
  • .wmv 파일을 참조하는 .wvx 파일
  • .wma 파일을 참조하는 .wax 파일

    하지만 해당 확장자가 참조하는 파일을 담지 않아도 재생이 가능하다 :) (예, .asx파일에 mpg, 나 mp3파일을 넣어도 재생된다)

ASX 의 기본 구조


~cpp 
 <ASX version = "3.0">

  <Entry>
    <Ref href = "path" />
  </Entry>

</ASX>
 

ASX 문법

XML의 문법을 따르며 다음과 같은 element가 있다. element만을 보고도 해당 element가 무엇을 의미하는지 알 수 있다. (약간 모호할 수 있는 것은 설명을 같이 넣었다)
~cpp 
    *  <ASX>: Indicates an ASX metafile.
    * <Abstract>: Provides a brief description of the media file.
    * <Title>: Title of the media file.
    * <Author>: The author's name .
    * <Copyright>: Detailed copyright information (e.g., company name and copyright year).
    * <MoreInfo href = "path of the source" / >: Adds hyperlinks to the Windows Media Player interface in order to provide additional resources on the content.
    * <Entry>: Serves a playlist of media by inserting multiple "Entry" elements in succession.
    * <Duration value = "00:00:00">: Sets the value attribute for the length of time a streaming media file is to be played.
    * <Logo href = "path of the logo source" Style = "a style" / >: Adds custom graphics to the Windows Media player by choosing either a watermark or icon style. The image formats that Windows Media Player supports are GIF, BMP, and JPEG.
          o MARK: The logo appears in the lower right corner of the video area while Windows Media Player is connecting to a server and opening a piece of content.
          o ICON: The logo appears as an icon on the display panel, next to the title of the show or clip.
    * <Banner href = "path of the banner source">: Places a banner (82 pixels × 30 pixels) image at the bottom of the video display area.
    * <Ref href = "path of the source" / >: Specifies a URL for a content stream.
    * How to define the path of source:
          o Windows Media Services Server: File names will start with mms://.
          o HTTP Server: File names will start with http://.
          o Local or network drive: File names will start with file://.
          o ASX files, on the other hand, are small text files that can always sit on an HTTP server. When the browser interprets the ASX file, it access the streaming media file that is specified inside the ASX file, from the proper HTTP, mms, or file server.
    * ?sami="path of the source": Defines the path of a SAMI caption file within the <ref href> tag for media source.
 

ASX 작성 예


~cpp 
 <ASX version = "3.0">

  <Abstract>: This text will show up as a Tooltip and in the Properties dialog box
  </Abstract>
  <Title> Global title of the show </Title>
  <Author> The name of the author </Author>
  <Copyright> 2000 by Your COmpany </Copyright>
  <MoreInfo href="http://www.microsoft.com/windows/windowmedia" />

  <Entry>
    <Ref href="MMS://netshow.microsoft.com/ms/sbnasfs/wtoc.asf" />
    <Banner href="http://Servername/Path/Banner1.gif">
      <MoreInfo href="http://www.microsoft.com/windows/windowsmedia" />
      <Abstract> This is the description for this clip. </Abstract>
    </Banner>
  </Entry>

  <Entry>
    <Title> Markers Discussion </Title>
    <Copyright> 2000 Microsoft Corporation </Copyright>
    <Logo href="http://servername/path/banner2.gif" Style="ICON" />
    <MoreInfo href="http://www.microsoft.com/windows/windowsmedia" />
    <Ref href="MMS://netshow.microsoft.com/ms/sbnasfs/wcc.asf" />
    <Ref href="http://cita.rehab.uiuc.edu/mediaplayer/mediasmaple.asf"
    ?sami="http://cita.rehab.uiuc.edu/mediaplayer/samisample.smi" />
  </Entry>

</ASX>
 

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:22:23
Processing time 0.0223 sec