JVCL Help:TJvID3Controller.CopyFromID3v1

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Copies the ID3 v1 tag of the file to the relevant frames of the ID3 v2 tag.


Pascal

 functionCopyFromID3v1(constDoOverwrite: Boolean = True): Boolean;


Parameters

Parameters Description
const DoOverwrite: Boolean = True Specifies whether to overwrite the values of existing frames by the values of the ID3 v1 tag.


Return Value

Returns true on success, false on failure.


Description

Call CopyFromID3v1 to copy the ID3 v1 tag of the file specified by the FileName property to the ID3 v2 tag. The new tag isn't actually written to the file until you call Commit.
The ID3 v2 frames that correspond to ID3 v1 fields are:

ID3 v1 ID3 v2 frame ID Implemented by
SongName fiTitle TJvID3TextFrame
Artist fiLeadArtist TJvID3SimpleListFrame
Album fiAlbum TJvID3TextFrame
Year fiRecordingTime (v2.4.0) or fiYear (v2.3.0) TJvID3TimestampFrame, TJvID3NumberFrame resp.
Comment fiComment TJvID3ContentFrame
Genre fiContentType TJvID3TextFrame


The tag controller must be active - Do this by setting Active to true or calling Open.


See Also

TJvID3Controller.CopyFromID3v1Ctrl, TJvID3Controller.CopyToID3v1, TJvID3Controller.CopyToID3v1Ctrl


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page