note 106151 added to ktaglib.constants

From: Date: Fri, 14 Oct 2011 11:39:28 +0000
Subject: note 106151 added to ktaglib.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-183874@lists.php.net to get a copy of this message
Hi, This library is very useful however, whenever I use it for dynamic images for mp3 files, Image are not set dynamically for succeeding recompiling of mp3. Here is my code: $mp3 = new KTaglib_MPEG_File($mp3file); $idv2 = $mp3->getID3v2Tag(); $album = new KTaglib_ID3v2_AttachedPictureFrame(); $album->setMimeType('image/'.$mimeext); $album->setPicture($newimage); $album->savePicture($newimage); $album->setType(KTaglib_ID3v2_AttachedPictureFrame::BackCover); $idv2->addFrame($album); $mp3->save(); Images are only dynamically changes if I change constant BackCover. How can I make this dynamicaly loaded during runtime? Thanks, ---- Server IP: 69.147.83.197 Probable Submitter: 58.71.28.226 ---- Manual Page -- http://www.php.net/manual/en/ktaglib.constants.php Edit -- https://master.php.net/note/edit/106151 Del: integrated -- https://master.php.net/note/delete/106151/integrated Del: useless -- https://master.php.net/note/delete/106151/useless Del: bad code -- https://master.php.net/note/delete/106151/bad+code Del: spam -- https://master.php.net/note/delete/106151/spam Del: non-english -- https://master.php.net/note/delete/106151/non-english Del: in docs -- https://master.php.net/note/delete/106151/in+docs Del: other reasons-- https://master.php.net/note/delete/106151 Reject -- https://master.php.net/note/reject/106151 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183874) next »