Audio::TagLib::ID3v2::CommentsFrame - An implementation of ID3v2 comments
use Audio::TagLib::ID3v2::CommentsFrame; my $i = Audio::TagLib::ID3v2::CommentsFrame->new("Latin1"); $i->setText(Audio::TagLib::String->new("blah blah blah"));
This implements the ID3v2 comment format. An ID3v2 comment concists of a language encoding, a description and a single text field.
Construct an empty comment frame that will use the text encoding $encoding.
Construct a comment based on the data in $data.
Destroys this CommentFrame instance.
Returns the text of this comment.
see text()
Returns the language encoding as a 3 byte encoding as specified by ISO-639-2 http://en.wikipedia.org/wiki/ISO_639
NOTE Most taggers simply ignore this value.
see setLanguage()
Returns the description of this comment.
see setDescription()
see setText()
Set the language using the 3 byte language code from ISO-639-2 http://en.wikipedia.org/wiki/ISO_639 to $languageCode.
see language()
Sets the description of the comment to $s.
see description()
Sets the text portion of the comment to $s.
Returns the text encoding that will be used in rendering this frame. This defaults to the type that was either specified in the constructor or read from the frame when parsed.
see setTextEncoding()
see render()
Sets the text encoding to be used when rendering this frame to $encoding.
see textEncoding()
None by default.
Audio::TagLib Frame
Dongxu Ma, <dongxu@cpan.org>
Geoffrey Leach GLEACH@cpan.org
Copyright (C) 2005-2010 by Dongxu Ma
Copyright (C) 2011 - 2012 Geoffrey Leach
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
To install Audio::TagLib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Audio::TagLib
CPAN shell
perl -MCPAN -e shell install Audio::TagLib
For more information on module installation, please visit the detailed CPAN module installation guide.