TagLib::ID3v2::CommentsFrame - An implementation of ID3v2 comments
use TagLib::ID3v2::CommentsFrame; my $i = TagLib::ID3v2::CommentsFrame->new("Latin1"); $i->setText(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.
TagLib Frame
Dongxu Ma, <dongxu.ma@gmail.com>
Copyright (C) 2005 by Dongxu Ma
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 TagLib, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TagLib
CPAN shell
perl -MCPAN -e shell install TagLib
For more information on module installation, please visit the detailed CPAN module installation guide.