I am trying to get an artist image / image. However, using an Artist.fromURI (), an artist object will return but no picture. I read some other postings on stack overflow where anyone is recommended to use:
sp.core.browseuri () Because fromURI only The performance receives basic information for reasons, although the recent clarification has said that we are no longer allowed to use sp.core calls. So what's the alternative?
Instead, I am using it:
model The artist FrymuRi (Yuri, function (artist) {// is called when the artist loads, but only looks out of the following / when the artist has an image console.log (artist.data.portrait);});
artist in the object image Property, which once filled up by the artist, is filled with URI. Once you have that URI, you can use it easily because you can put any other image URI, put it in a img element, etc. Are there. It is worth noting that some artists do not have pictures, in this case, you should use the cover of their album instead.
Comments
Post a Comment