Mobilpadde
Mobilpadde

Reputation: 1881

Drag'n'Drop playlist - Spotify

Is it possible to get playlist uri, with a drag and drop (in spotify)?

I've made the drag and drop function, but only the drag work:

function drag(){
    console.log("drag");
}
function drop(){
    console.log("drop");
}
var dropZone = document.getElementById("drop");
dropZone.addEventListener("dragover", drag, false);
dropZone.addEventListener("drop", drop, false);

And have included this in my maninest (If it isnt right, please tell me):

"AcceptedLinkTypes": [
    "playlist"
]

Upvotes: 2

Views: 1206

Answers (1)

Mobilpadde
Mobilpadde

Reputation: 1881

Found a great tutorial, on how to do this :D

https://github.com/ptrwtts/kitchensink

Its almost explains everything! :D

So if anyone is having a problem with their app, or just want to learn how to make one. You should really check this out.. :D

Upvotes: 1

Related Questions