File_Ogg
[ class tree: File_Ogg ] [ index: File_Ogg ] [ all elements ]

Class: File_Ogg_Media

Source Location: /File_Ogg-0.3.1/File/Ogg/Media.php

Class Overview

File_Ogg_Bitstream
   |
   --File_Ogg_Media

Parent class for media bitstreams


Author(s):

Version:

  • CVS: $Id: Bitstream.php 302834 2010-08-27 02:16:20Z tstarling $

Copyright:

  • David Grant <david@grant.org.uk>, Tim Starling <tstarling@wikimedia.org>

Methods


Child classes:

File_Ogg_Theora
File_Ogg_Flac
File_Ogg_Speex
File_Ogg_Vorbis
Extract the contents of a Vorbis logical stream.

Inherited Variables

Inherited Methods

Class: File_Ogg_Bitstream

File_Ogg_Bitstream::getGroup()
Get the multiplexed group ID
File_Ogg_Bitstream::getSerial()
Gives the serial number of this stream.
File_Ogg_Bitstream::getSize()
Gives the size (in bits) of this stream.

Class Details

[line 30]
Parent class for media bitstreams

Contains some functions common to various media formats

  • Author: David Grant <david@grant.org.uk>, Tim Starling <tstarling@wikimedia.org>
  • Version: CVS: $Id: Bitstream.php 302834 2010-08-27 02:16:20Z tstarling $
  • Copyright: David Grant <david@grant.org.uk>, Tim Starling <tstarling@wikimedia.org>
  • Abstract:


[ Top ]


Method Detail

getCommentList   [line 150]

array getCommentList( )

Provides a list of the comments extracted from the Vorbis stream.

It is recommended that the user fully inspect the array returned by this function rather than blindly requesting a comment in false belief that it will always be present. Whilst the Vorbis specification dictates a number of popular comments (e.g. TITLE, ARTIST, etc.) for use in Vorbis streams, they are not guaranteed to appear.

  • Access: public

[ Top ]

getComments   [line 188]

array getComments( )

Get the entire comments array.

May return an empty array if the bitstream does not support comments.

  • Access: public

[ Top ]

getField   [line 169]

string getField( string $commentTitle, [string $separator = ", "])

Provides an interface to the numerous comments located with a Vorbis stream.

A Vorbis stream may contain one or more instances of each comment, so the user should check the variable type before printing out the result of this method. The situation in which multiple instances of a comment occurring are not as rare as one might think, since they are conceivable at least for ARTIST comments in the situation where a track is a duet.

  • Access: public

Parameters:

string   $commentTitle   —  Comment title to search for, e.g. TITLE.
string   $separator   —  String to separate multiple values.

[ Top ]

getHeader   [line 212]

array getHeader( )

Get an associative array containing header information about the stream
  • Access: public

Overridden in child classes as:

File_Ogg_Theora::getHeader()
Get an associative array containing header information about the stream
File_Ogg_Flac::getHeader()
Get an associative array containing header information about the stream
File_Ogg_Speex::getHeader()
Get an associative array containing header information about the stream
File_Ogg_Vorbis::getHeader()
Get an associative array containing header information about the stream

[ Top ]

getIdentificationString   [line 65]

string getIdentificationString( )

Get the 6-byte identification string expected in the common header

Overridden in child classes as:

File_Ogg_Theora::getIdentificationString()
Get the 6-byte identification string expected in the common header
File_Ogg_Vorbis::getIdentificationString()
Get the 6-byte identification string expected in the common header

[ Top ]

getLength   [line 221]

float getLength( )

Get the length of the stream in seconds

Overridden in child classes as:

File_Ogg_Vorbis::getLength()
Gives the length (in seconds) of this stream.

[ Top ]

getStartOffset   [line 230]

float getStartOffset( )

Get the start offset of the stream in seconds

Overridden in child classes as:

File_Ogg_Vorbis::getStartOffset()
Get the start offset of the stream in seconds

[ Top ]

getType   [line 59]

string getType( )

Get a short string describing the type of the stream
  • Abstract:

Overridden in child classes as:

File_Ogg_Theora::getType()
Get a short string describing the type of the stream
File_Ogg_Flac::getType()
Get a short string describing the type of the stream
File_Ogg_Speex::getType()
Get a short string describing the type of the stream
File_Ogg_Vorbis::getType()
Get a short string describing the type of the stream

[ Top ]

getVendor   [line 202]

string getVendor( )

Vendor of software used to encode this stream.

Gives the vendor string for the software used to encode this stream. It is common to find libVorbis here. The majority of encoders appear to use libvorbis from Xiph.org.

  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:38:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.