问题
I have set up YouTube Direct Lite on my site. Got the Auth working, able to log in via YouTube using your Google account. Now the problem arises when I load the page.
I get an error that states "The "Playlist" URL parameter is missing". I have been trying to solve this problem all day. I assume its something with the global variable that gets the playlist id.
I can't tell how the variable is being called or stored, so I don't know if it's a problem with that.
if (panel.needsPlaylist && !globals.hashParams.playlist) {
utils.showMessage('The "playlist" URL parameter is missing.');
return;
}
That is the line of code returning the error, but I can't find anywhere in the code where globals.hashParams.playlist is being stored.
Any one else encountered and got around the problem??
This is happening on all three tabs as they all require this "playlist". Extremely frustrating....as it mentions nothing of this in the api documentation
回答1:
Login to the "admin" section of the app, click on the playlist you want to embed to, then you'll get the embed code "To add a submission widget associated with this playlist, use the following HTML code:".
Paste that iframe in and you're good to go!
回答2:
using the iframe from admin just loads the hosted version of it.
Amir's answer is the closest you will get since they refuse to allow my other answer with the final solution. good Luck.
Login to the "admin" section of the app, click on the playlist you want to embed to, then you'll get the embed code "To add a submission widget associated with this playlist, use the following HTML code:".
来源:https://stackoverflow.com/questions/15423457/youtube-direct-lite-playlist-parameter-is-missing