TrimTerm example

$offset += $thisfile_asf_contentdescriptionobject['author_length'];
                    $thisfile_asf_contentdescriptionobject['copyright']             = substr($ASFHeaderData$offset$thisfile_asf_contentdescriptionobject['copyright_length']);
                    $offset += $thisfile_asf_contentdescriptionobject['copyright_length'];
                    $thisfile_asf_contentdescriptionobject['description']           = substr($ASFHeaderData$offset$thisfile_asf_contentdescriptionobject['description_length']);
                    $offset += $thisfile_asf_contentdescriptionobject['description_length'];
                    $thisfile_asf_contentdescriptionobject['rating']                = substr($ASFHeaderData$offset$thisfile_asf_contentdescriptionobject['rating_length']);
                    $offset += $thisfile_asf_contentdescriptionobject['rating_length'];

                    $ASFcommentKeysToCopy = array('title'=>'title', 'author'=>'artist', 'copyright'=>'copyright', 'description'=>'comment', 'rating'=>'rating');
                    foreach ($ASFcommentKeysToCopy as $keytocopyfrom => $keytocopyto) {
                        if (!empty($thisfile_asf_contentdescriptionobject[$keytocopyfrom])) {
                            $thisfile_asf_comments[$keytocopyto][] = $this->TrimTerm($thisfile_asf_contentdescriptionobject[$keytocopyfrom]);
                        }
                    }
                    break;

                case GETID3_ASF_Extended_Content_Description_Object:
                    // Extended Content Description Object: (optional, one only)                     // Field Name Field Type Size (bits)                     // Object ID GUID 128 // GUID for Extended Content Description object - GETID3_ASF_Extended_Content_Description_Object                     // Object Size QWORD 64 // size of ExtendedContent Description object, including 26 bytes of Extended Content Description Object header                     // Content Descriptors Count WORD 16 // number of entries in Content Descriptors list                     // Content Descriptors array of: variable //
Home | Imprint | This part of the site doesn't use cookies.