AmazonStoreCdInfoCreate method |
|
Remarks
If the song loaded into the given player contains tag information, after having obtained the author name and the album title creates a request for obtaining information about the CD containing the song itself from the Amazon store. After this method's call it will be possible obtaining relevant information about the CD using provided methods as seen inside the How to get Audio CD info using CDDB servers and Amazon catalogue tutorial.
Syntax
[Visual Basic] control.AmazonStoreCdInfoCreate ( nPlayer as Integer, strAmazonDeveloperCode as String ) as enumErrorCodes |
[C++] short control.AmazonStoreCdInfoCreate ( short nPlayer, LPCTSTR strAmazonDeveloperCode ); |
Parameter |
Description |
|
|
nPlayer |
Number representing the zero-based index of the involved player. |
strAmazonDeveloperCode |
String representing the Amazon developer code: this string is optional but it's strongly recommended that you obtain a developer code from Amazon; visit the Amazon Web Services site for creating your own account.
IMPORTANT TOPIC: starting from May 2009 the developer code is no more enough in order to access Amazon web services; from that date the access must be performed through a combination of the existing developer code and of a new secret key which is provided by Amazon itself to each registered developer. The new secret key can be requested through the Amazon control panel by accessing your Amazon account. Once you have obtained the new secret key, you can use this parameter in order to pass both the developer code and the secret key using the following syntax:
"DeveloperCode-----SecretKey"
where the existing developer code and the secret key are separated by 5 '-' (minus) characters. |
Return value
Value |
Meaning |
|
|
enumErrorCodes.NOERROR (0) |
The song file has been loaded successfully. |
Negative value |
An error occurred: see the LastError property for further error details or for a list of the possible error values. |