Richard
On Jan 18, 9:13 pm, Jeffrey Posnick <je...@google.com> wrote:
> Hello Richard,
>
> Could you try fetching the entry from the uploads feed instead, i.e.https://gdata.youtube.com/feeds/api/users/default/uploads/VIDEO_ID
>
> I have an open request with our tech writer to get our docs updated
> to make it clear that only video entries retrieved from the uploads
> feed are updateable. This changed a while back.
>
> Cheers,
> -Jeff Posnick, YouTube API Team
> groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
> @YouTubeDev
>
> On Jan 16, 7:38 am, RichardC <richard.c.con...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I am also struggling with this....
>
> > A solution appears in an earlier thread as follows, changed slightly
> > by me...:
>
> > YouTubeService service = new YouTubeService(youtubeApplicationId,
> > youTubeDeveloperKey);
> > service.setAuthSubToken(authSubSessionToken);
>
> > VideoEntry videoEntry = service.getEntry(new URL( movieEntryUrl),
> > VideoEntry.class);
>
> > System.out.println("can I edit this vid?: " +
> > videoEntry.getCanEdit()); // answer is "true"
>
> > XmlBlob xmlBlob = videoEntry.getXmlBlob();
> > System.out.println("got xml blob for entry: " + xmlBlob.getBlob()); //
> > XML blob is correctly formed
>
> > // xmlBlob.setBlob("<yt:accessControl action='list'
> > permission='denied'/>"); // this is what I want it to be but it didn't
> > work...
>
> > // so tried to set it to its existing state...
> > videoEntry.setXmlBlob(xmlBlob);
> > videoEntry.update();
>
> > but it still doesn't work, giving me a
> > java.lang.UnsupportedOperationException: Entry cannot be updated
>
> > This despite the fact that the VideoEntry claims to be editable... I'm
> > confused!?
>
> > I'm fetching the VideoEntry viahttp://gdata.youtube.com/feeds/api/videos/
> > appended by the vid id, and I have session authentication for the
> > owner. The earlier thread fetches the video via the users YouTube id,
> > but I don't have that only, session authentication - does that make a
> > difference?
>
> > Thanks in advance, sorry if this is something stupid....
>
> > Cheers
>
> > Richard
>
> > On Jan 13, 9:04 pm, Boomies <speedchalle...@gmail.com> wrote:
>
> > > I am using browser based uploading on my website to allow users touploadvideos. My site is written using Java. Can anyone tell me how
> > > to make these videosUnlistedso that they will not show up in search
> > > results but can be embedded on the site? Thanks in advance!
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
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