本文整理汇总了PHP中Zend_Media_Asf_Object类的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Media_Asf_Object类的具体用法?PHP Zend_Media_Asf_Object怎么用?PHP Zend_Media_Asf_Object使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Zend_Media_Asf_Object类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader, &$options = array())
{
parent::__construct($reader, $options);
$this->_fileId = $this->_reader->readGuid();
$this->_totalDataPackets = $this->_reader->readInt64LE();
$this->_reader->skip(2);
// No support for Data Packets as of yet (if ever)
// for ($i = 0; $i < $this->_totalDataPackets; $i++)
// $this->_dataPackets[] =
// new Zend_Media_Asf_Object_Data_Packet($reader);
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:18,代码来源:Data.php
示例2: removeObject
/**
* Removes the object.
*
* @param Zend_Media_Asf_Object $object The object to remove
*/
public final function removeObject($object)
{
if ($this->hasObject($object->getIdentifier())) {
foreach ($this->_objects[$object->getIdentifier()] as $key => $value) {
if ($object === $value) {
unset($this->_objects[$object->getIdentifier()][$key]);
}
}
}
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:15,代码来源:Container.php
示例3: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader = null, &$options = array())
{
parent::__construct($reader, $options);
if ($reader === null) {
return;
}
$this->_profile = $this->_reader->readUInt8();
$this->_mode = $this->_reader->readUInt8();
}
开发者ID:google-code-backups,项目名称:php-reader,代码行数:16,代码来源:Compatibility.php
示例4: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader, &$options = array())
{
parent::__construct($reader, $options);
$this->_indexEntryTimeInterval = $this->_reader->readUInt32LE();
$indexSpecifiersCount = $this->_reader->readUInt16LE();
for ($i = 0; $i < $indexSpecifiersCount; $i++) {
$this->_indexSpecifiers[] = array('streamNumber' => $this->_reader->readUInt16LE(), 'indexType' => $this->_reader->readUInt16LE());
}
}
开发者ID:google-code-backups,项目名称:php-reader,代码行数:16,代码来源:IndexParameters.php
示例5: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader = null, &$options = array())
{
parent::__construct($reader, $options);
if ($reader === null) {
return;
}
$dataSize = $this->_reader->readUInt32LE();
$this->_data = $this->_reader->read($dataSize);
}
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:16,代码来源:ExtendedContentEncryption.php
示例6: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader, &$options = array())
{
parent::__construct($reader, $options);
$this->_bannerImageType = $this->_reader->readUInt32LE();
$bannerImageDataSize = $this->_reader->readUInt32LE();
$this->_bannerImageData = $this->_reader->read($bannerImageDataSize);
$bannerImageUrlLength = $this->_reader->readUInt32LE();
$this->_bannerImageUrl = $this->_reader->read($bannerImageUrlLength);
$copyrightUrlLength = $this->_reader->readUInt32LE();
$this->_copyrightUrl = $this->_reader->read($copyrightUrlLength);
}
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:18,代码来源:ContentBranding.php
示例7: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader, &$options = array())
{
parent::__construct($reader, $options);
$this->_fileId = $this->_reader->readGuid();
$this->_indexEntryTimeInterval = $this->_reader->readInt64LE();
$this->_maximumPacketCount = $this->_reader->readUInt32LE();
$indexEntriesCount = $this->_reader->readUInt32LE();
for ($i = 0; $i < $indexEntriesCount; $i++) {
$this->_indexEntries[] = array('packetNumber' => $this->_reader->readUInt32LE(), 'packetCount' => $this->_reader->readUInt16LE());
}
}
开发者ID:adam-fonseca,项目名称:RuneUI,代码行数:18,代码来源:SimpleIndex.php
示例8: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader = null, &$options = array())
{
parent::__construct($reader, $options);
if ($reader === null) {
return;
}
$bitrateRecordsCount = $this->_reader->readUInt16LE();
for ($i = 0; $i < $bitrateRecordsCount; $i++) {
$this->_bitrateRecords[] = array('streamNumber' => ($tmp = $this->_reader->readInt16LE()) & 0x1f, 'flags' => $tmp >> 5, 'averageBitrate' => $this->_reader->readUInt32LE());
}
}
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:18,代码来源:StreamBitrateProperties.php
示例9: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader = null, &$options = array())
{
parent::__construct($reader, $options);
if ($reader === null) {
return;
}
$priorityRecordCount = $this->_reader->readUInt16LE();
for ($i = 0; $i < $priorityRecordCount; $i++) {
$this->_priorityRecords[] = array('streamNumber' => $this->_reader->readUInt16LE(), 'flags' => $this->_reader->readUInt16LE());
}
}
开发者ID:google-code-backups,项目名称:php-reader,代码行数:18,代码来源:StreamPrioritization.php
示例10: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader = null, &$options = array())
{
parent::__construct($reader, $options);
if ($reader === null) {
return;
}
$this->_exclusionType = $this->_reader->readGuid();
$streamNumbersCount = $this->_reader->readUInt16LE();
for ($i = 0; $i < $streamNumbersCount; $i++) {
$this->_streamNumbers[] = $this->_reader->readUInt16LE();
}
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:19,代码来源:BitrateMutualExclusion.php
示例11: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader = null, &$options = array())
{
parent::__construct($reader, $options);
if ($reader === null) {
return;
}
$languageIdRecordsCount = $this->_reader->readUInt16LE();
for ($i = 0; $i < $languageIdRecordsCount; $i++) {
$languageIdLength = $this->_reader->readInt8();
$languageId = $this->_reader->readString16($languageIdLength);
$this->_languages[] = iconv('utf-16le', $this->getOption('encoding'), $languageId);
}
}
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:20,代码来源:LanguageList.php
示例12: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader, &$options = array())
{
parent::__construct($reader = null, $options);
if ($reader === null) {
return;
}
$this->_sharingType = $this->_reader->readGuid();
$this->_dataBitrate = $this->_reader->readUInt32LE();
$this->_bufferSize = $this->_reader->readUInt32LE();
$streamNumbersCount = $this->_reader->readUInt16LE();
for ($i = 0; $i < $streamNumbersCount; $i++) {
$this->_streamNumbers[] = $this->_reader->readUInt16LE();
}
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:21,代码来源:BandwidthSharing.php
示例13: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader = null, &$options = array())
{
parent::__construct($reader, $options);
if ($reader === null) {
return;
}
$secretDataLength = $this->_reader->readUInt32LE();
$this->_secretData = $this->_reader->read($secretDataLength);
$protectionTypeLength = $this->_reader->readUInt32LE();
$this->_protectionType = $this->_reader->readString8($protectionTypeLength);
$keyIdLength = $this->_reader->readUInt32LE();
$this->_keyId = $this->_reader->readString8($keyIdLength);
$licenseUrlLength = $this->_reader->readUInt32LE();
$this->_licenseUrl = $this->_reader->readString8($licenseUrlLength);
}
开发者ID:adam-fonseca,项目名称:RuneUI,代码行数:22,代码来源:ContentEncryption.php
示例14: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader = null, &$options = array())
{
parent::__construct($reader, $options);
if ($reader === null) {
return;
}
$descriptionRecordsCount = $this->_reader->readUInt16LE();
for ($i = 0; $i < $descriptionRecordsCount; $i++) {
$descriptionRecord = array('languageIndex' => $this->_reader->readUInt16LE(), 'streamNumber' => $this->_reader->readUInt16LE());
$nameLength = $this->_reader->readUInt16LE();
$dataType = $this->_reader->readUInt16LE();
$dataLength = $this->_reader->readUInt32LE();
$descriptionRecord['name'] = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($nameLength));
switch ($dataType) {
case 0:
// Unicode string
$descriptionRecord['data'] = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($dataLength));
break;
case 1:
// BYTE array
$descriptionRecord['data'] = $this->_reader->read($dataLength);
break;
case 2:
// BOOL
$descriptionRecord['data'] = $this->_reader->readUInt16LE() == 1;
break;
case 3:
// DWORD
$descriptionRecord['data'] = $this->_reader->readUInt32LE();
break;
case 4:
// QWORD
$descriptionRecord['data'] = $this->_reader->readInt64LE();
break;
case 5:
// WORD
$descriptionRecord['data'] = $this->_reader->readUInt16LE();
break;
case 6:
// GUID
$descriptionRecord['data'] = $this->_reader->readGuid();
break;
default:
break;
}
$this->_descriptionRecords[] = $descriptionRecord;
}
}
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:55,代码来源:MetadataLibrary.php
示例15: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader, &$options = array())
{
parent::__construct($reader, $options);
$contentEncryptionRecordsCount = $this->_reader->readUInt16LE();
for ($i = 0; $i < $contentEncryptionRecordsCount; $i++) {
$entry = array('systemId' => $this->_reader->readGuid(), 'systemVersion' => $this->_reader->readUInt32LE(), 'streamNumbers' => array());
$encryptedObjectRecordCount = $this->_reader->readUInt16LE();
for ($j = 0; $j < $encryptedObjectRecordCount; $j++) {
$this->_reader->skip(4);
$entry['streamNumbers'][] = $this->_reader->readUInt16LE();
}
$dataCount = $this->_reader->readUInt32LE();
$entry['data'] = $this->_reader->read($dataCount);
$this->_contentEncryptionRecords[] = $entry;
}
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:23,代码来源:AdvancedContentEncryption.php
示例16: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader = null, &$options = array())
{
parent::__construct($reader, $options);
if ($reader === null) {
return;
}
$titleLen = $this->_reader->readUInt16LE();
$authorLen = $this->_reader->readUInt16LE();
$copyrightLen = $this->_reader->readUInt16LE();
$descriptionLen = $this->_reader->readUInt16LE();
$ratingLen = $this->_reader->readUInt16LE();
$this->_title = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($titleLen));
$this->_author = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($authorLen));
$this->_copyright = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($copyrightLen));
$this->_description = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($descriptionLen));
$this->_rating = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($ratingLen));
}
开发者ID:google-code-backups,项目名称:php-reader,代码行数:24,代码来源:ContentDescription.php
示例17: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader, &$options = array())
{
parent::__construct($reader, $options);
$this->_reserved1 = $this->_reader->readGuid();
$markersCount = $this->_reader->readUInt32LE();
$this->_reserved2 = $this->_reader->readUInt16LE();
$nameLength = $this->_reader->readUInt16LE();
$this->_name = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($nameLength));
for ($i = 0; $i < $markersCount; $i++) {
$marker = array('offset' => $this->_reader->readInt64LE(), 'presentationTime' => $this->_reader->readInt64LE());
$this->_reader->skip(2);
$marker['sendTime'] = $this->_reader->readUInt32LE();
$marker['flags'] = $this->_reader->readUInt32LE();
$descriptionLength = $this->_reader->readUInt32LE();
$marker['description'] = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($descriptionLength));
$this->_markers[] = $marker;
}
}
开发者ID:adam-fonseca,项目名称:RuneUI,代码行数:25,代码来源:Marker.php
示例18: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader = null, &$options = array())
{
parent::__construct($reader, $options);
if ($reader === null) {
return;
}
$this->_reserved = $this->_reader->readGuid();
$codecEntriesCount = $this->_reader->readUInt32LE();
for ($i = 0; $i < $codecEntriesCount; $i++) {
$entry = array('type' => $this->_reader->readUInt16LE());
$codecNameLength = $this->_reader->readUInt16LE() * 2;
$entry['codecName'] = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($codecNameLength));
$codecDescriptionLength = $this->_reader->readUInt16LE() * 2;
$entry['codecDescription'] = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($codecDescriptionLength));
$codecInformationLength = $this->_reader->readUInt16LE();
$entry['codecInformation'] = $this->_reader->read($codecInformationLength);
$this->_entries[] = $entry;
}
}
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:26,代码来源:CodecList.php
示例19: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader = null, &$options = array())
{
parent::__construct($reader, $options);
if ($reader === null) {
return;
}
$contentDescriptorsCount = $this->_reader->readUInt16LE();
for ($i = 0; $i < $contentDescriptorsCount; $i++) {
$nameLen = $this->_reader->readUInt16LE();
$name = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($nameLen));
$valueDataType = $this->_reader->readUInt16LE();
$valueLen = $this->_reader->readUInt16LE();
switch ($valueDataType) {
case 0:
// string
$this->_contentDescriptors[$name] = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($valueLen));
break;
case 1:
// byte array
$this->_contentDescriptors[$name] = $this->_reader->read($valueLen);
break;
case 2:
// bool
$this->_contentDescriptors[$name] = $this->_reader->readUInt32LE() == 1 ? true : false;
break;
case 3:
// 32-bit integer
$this->_contentDescriptors[$name] = $this->_reader->readUInt32LE();
break;
case 4:
// 64-bit integer
$this->_contentDescriptors[$name] = $this->_reader->readInt64LE();
break;
case 5:
// 16-bit integer
$this->_contentDescriptors[$name] = $this->_reader->readUInt16LE();
break;
default:
break;
}
}
}
开发者ID:lokamaya,项目名称:zend-mp3,代码行数:49,代码来源:ExtendedContentDescription.php
示例20: __construct
/**
* Constructs the class with given parameters and reads object related data
* from the ASF file.
*
* @param Zend_Io_Reader $reader The reader object.
* @param Array $options The options array.
*/
public function __construct($reader = null, &$options = array())
{
parent::__construct($reader, $options);
if ($reader === null) {
return;
}
$this->_reserved = $this->_reader->readGuid();
$commandsCount = $this->_reader->readUInt16LE();
$commandTypesCount = $this->_reader->readUInt16LE();
$commandTypes = array();
for ($i = 0; $i < $commandTypesCount; $i++) {
$commandTypeNameLength = $this->_reader->readUInt16LE();
$commandTypes[] = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($commandTypeNameLength * 2));
}
for ($i = 0; $i < $commandsCount; $i++) {
$command = array('presentationTime' => $this->_reader->readUInt32LE(), 'type' => $commandTypes[$this->_reader->readUInt16LE()]);
$commandNameLength = $this->_reader->readUInt16LE();
$command['name'] = iconv('utf-16le', $this->getOption('encoding'), $this->_reader->readString16($commandNameLength * 2));
$this->_commands[] = $command;
}
}
开发者ID:andreiamfg,项目名称:MobileWebHybrid,代码行数:28,代码来源:ScriptCommand.php
注:本文中的Zend_Media_Asf_Object类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论