YouTube Direct Lite “Playlist” parameter is missing

筅森魡賤 提交于 2020-01-06 08:43:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!