wppaste
WordPress

getid3_asf

Source
wp-includes/ID3/module.audio-video.asf.php:21

Compatibility

WordPress
core
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Properties · 3

$ASFIndexParametersObjectIndexSpecifiersIndexTypesprotected static
$ASFMediaObjectIndexParametersObjectIndexSpecifiersIndexTypesprotected static
$ASFTimecodeIndexParametersObjectIndexSpecifiersIndexTypesprotected static

Methods · 15

Source code

class getid3_asf extends getid3_handler{	protected static $ASFIndexParametersObjectIndexSpecifiersIndexTypes = array(		1 => 'Nearest Past Data Packet',		2 => 'Nearest Past Media Object',		3 => 'Nearest Past Cleanpoint'	); 	protected static $ASFMediaObjectIndexParametersObjectIndexSpecifiersIndexTypes = array(		1 => 'Nearest Past Data Packet',		2 => 'Nearest Past Media Object',		3 => 'Nearest Past Cleanpoint',		0xFF => 'Frame Number Offset'	); 	protected static $ASFTimecodeIndexParametersObjectIndexSpecifiersIndexTypes = array(		2 => 'Nearest Past Media Object',		3 => 'Nearest Past Cleanpoint'	); 	/**	 * @param getID3 $getid3	 */	public function __construct(getID3 $getid3) {		parent::__construct($getid3);  // extends getid3_handler::__construct() 		// initialize all GUID constants		$GUIDarray = $this->KnownGUIDs();		foreach ($GUIDarray as $GUIDname => $hexstringvalue) {			if (!defined($GUIDname)) {				define($GUIDname, $this->GUIDtoBytestring($hexstringvalue));			}		}	} 	/**	 * @return bool	 */	public function Analyze() {		$info = &$this->getid3->info; 		// Shortcuts		$thisfile_audio = &$info['audio'];		$thisfile_video = &$info['video'];		$info['asf']  = array();		$thisfile_asf = &$info['asf'];		$thisfile_asf['comments'] = array();		$thisfile_asf_comments    = &$thisfile_asf['comments'];		$thisfile_asf['header_object'] = array();		$thisfile_asf_headerobject     = &$thisfile_asf['header_object'];  		// ASF structure:		// * Header Object [required]		//   * File Properties Object [required]   (global file attributes)		//   * Stream Properties Object [required] (defines media stream & characteristics)		//   * Header Extension Object [required]  (additional functionality)		//   * Content Description Object          (bibliographic information)		//   * Script Command Object               (commands for during playback)		//   * Marker Object                       (named jumped points within the file)		// * Data Object [required]		//   * Data Packets		// * Index Object 		// Header Object: (mandatory, one only)		// Field Name                   Field Type   Size (bits)		// Object ID                    GUID         128             // GUID for header object - GETID3_ASF_Header_Object		// Object Size                  QWORD        64              // size of header object, including 30 bytes of Header Object header		// Number of Header Objects     DWORD        32              // number of objects in header object		// Reserved1                    BYTE         8               // hardcoded: 0x01		// Reserved2                    BYTE         8               // hardcoded: 0x02 		$info['fileformat'] = 'asf'; 		$this->fseek($info['avdataoffset']);		$HeaderObjectData = $this->fread(30); 		$thisfile_asf_headerobject['objectid']      = substr($HeaderObjectData, 0, 16);		$thisfile_asf_headerobject['objectid_guid'] = $this->BytestringToGUID($thisfile_asf_headerobject['objectid']);		if ($thisfile_asf_headerobject['objectid'] != GETID3_ASF_Header_Object) {

Changelog

Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/ID3/module.audio-video.asf.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.