According to the sample code given here:
https://developers.google.com/youtube/2.0/developers_guide_php?hl=en#Updating_a_Playlist
https://developers.google.com/youtube/2.0/developers_guide_php?hl=en#Updating_a_Playlist
You can update an playListVideoEntry's position by doing:
$playlistVideoEntryToBeModified->setPosition($yt->newPosition(0));
Seems simple enough but I had a hard time getting a playListVideoEntry object at first and then it gave me an error "Internal Error", nothing more...
Only after fiddling around with my code for some time we finally found that position 0 isn't working, position 1 is what you want.
Only after fiddling around with my code for some time we finally found that position 0 isn't working, position 1 is what you want.
$playlistVideoEntryToBeModified->setPosition($yt->newPosition(1));
I hope this will safe someone some time ;)
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/C0Vae1onnDMJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment