Announcements

Help Wizard

Step 1

NEXT STEP

Spotify Api effect on iFrame with premium account

Spotify Api effect on iFrame with premium account

My Question or Issue

I found iFrame volume is too high and i wants to change it but not finding any solution / iFrame don't have that functionality. while searching i found that the spotify api can set the volume of premium account. and code given below can change the volume.

 

 

 

 

 

 

spotifyApi.setVolume(50)
  .then(function () {
    console.log('Setting volume to 50.');
    }, function(err) {
    //if the user making the request is non-premium, a 403 FORBIDDEN response code will be returned
    console.log('Something went wrong!', err);
  });

 

 

 

 

 

 

So my question if i have premium account and i use that account credential to call this api, Does that affect the volume of iFrame with premium account logged-in???

Reply
0 Replies

Suggested posts