note 106151 rejected from ktaglib.constants by danbrown

From: Date: Fri, 14 Oct 2011 17:28:47 +0000
Subject: note 106151 rejected from ktaglib.constants by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-183886@lists.php.net to get a copy of this message
Note Submitter: skyllarck at gmail dot com ---- 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,

« previous php.notes (#183886) next »