Class ASF

Description

This class represents a file in Advanced Systems Format (ASF) as described in

The Advanced Systems Format (ASF) Specification. It is a file format that can contain various types of information ranging from audio and video to script commands and developer defined custom streams.

The ASF file consists of code blocks that are called content objects. Each of these objects have a format of their own. They may contain other objects or other specific data. Each supported object has been implemented as their own classes to ease the correct use of the information.

Located in /ASF.php (line 63)

ASF_Object
   |
   --ASF_Object_Container
      |
      --ASF
Class Constant Summary
 DATA = "75b22636-668e-11cf-a6d9-00aa0062ce6c"
 HEADER = "75b22630-668e-11cf-a6d9-00aa0062ce6c"
 INDEX = "d6e229d3-35da-11d1-9034-00a0c90349be"
 MEDIA_OBJECT_INDEX = "feb103f8-12ad-4c64-840f-2a1d2f7ad48c"
 SIMPLE_INDEX = "33000890-e5b1-11cf-89f4-00a0c90349cb"
 TIMECODE_INDEX = "3cb73fd0-0c4a-4803-953d-edf7b6228f0c"
Method Summary
ASF __construct (string $filename, [Array $options = array()])
Array getIndices ()
void write ()
Variables

Inherited Variables

Inherited from ASF_Object

ASF_Object::$_options
ASF_Object::$_reader
Methods
Constructor __construct (line 89)

Constructs the ASF class with given file and options.

The following options are currently recognized:

  • encoding -- Indicates the encoding that all the texts are presented with. By default this is set to utf-8. See the documentation of iconv for accepted values.
or another source it cannot be written back to.

  • access: public
ASF __construct (string $filename, [Array $options = array()])
  • string $filename: The path to the file or file descriptor of an opened file.
  • Array $options: The options array.

Redefinition of:
ASF_Object::__construct()
Constructs the class with given parameters and options.
getData (line 123)

Returns the mandatory data object contained in this file.

  • access: public
ASF_Object_Data getData ()
getHeader (line 112)

Returns the mandatory header object contained in this file.

  • access: public
ASF_Object_Header getHeader ()
getIndices (line 134)

Returns an array of index objects contained in this file.

  • access: public
Array getIndices ()
write (line 147)

Writes the changes back to the original media file.

Please note: currently the method writes only Content Description and Extended Content Description Objects.

  • access: public
void write ()

Inherited Methods

Inherited From ASF_Object_Container

ASF_Object_Container::addObject()
ASF_Object_Container::constructObjects()
ASF_Object_Container::getObjects()
ASF_Object_Container::getObjectsByIdentifier()
ASF_Object_Container::hasObject()
ASF_Object_Container::__get()
ASF_Object_Container::__isset()

Inherited From ASF_Object

ASF_Object::__construct()
ASF_Object::getIdentifier()
ASF_Object::getOffset()
ASF_Object::getOption()
ASF_Object::getOptions()
ASF_Object::getParent()
ASF_Object::getSize()
ASF_Object::setIdentifier()
ASF_Object::setOffset()
ASF_Object::setOption()
ASF_Object::setOptions()
ASF_Object::setParent()
ASF_Object::setSize()
ASF_Object::__get()
ASF_Object::__set()
Class Constants
DATA = "75b22636-668e-11cf-a6d9-00aa0062ce6c" (line 66)
HEADER = "75b22630-668e-11cf-a6d9-00aa0062ce6c" (line 65)
INDEX = "d6e229d3-35da-11d1-9034-00a0c90349be" (line 68)
MEDIA_OBJECT_INDEX = "feb103f8-12ad-4c64-840f-2a1d2f7ad48c" (line 69)
SIMPLE_INDEX = "33000890-e5b1-11cf-89f4-00a0c90349cb" (line 67)
TIMECODE_INDEX = "3cb73fd0-0c4a-4803-953d-edf7b6228f0c" (line 70)

Documentation generated on Fri, 05 Sep 2008 20:18:18 +0300 by phpDocumentor 1.4.1