Received: by 10.101.159.4 with SMTP id l4mr1023993ano.29.1303629009764; Sun, 24 Apr 2011 00:10:09 -0700 (PDT) X-BeenThere: gdata-objectivec-client@googlegroups.com Received: by 10.100.50.34 with SMTP id x34ls600124anx.4.gmail; Sun, 24 Apr 2011 00:10:08 -0700 (PDT) Received: by 10.101.127.15 with SMTP id e15mr47361ann.3.1303629008143; Sun, 24 Apr 2011 00:10:08 -0700 (PDT) Received: by 10.101.127.15 with SMTP id e15mr47357ann.3.1303629008121; Sun, 24 Apr 2011 00:10:08 -0700 (PDT) Return-Path: Received: from smtp-out.google.com (wpay13.hot.corp.google.com [172.24.198.13]) by gmr-mx.google.com with ESMTPS id c28si1589682ana.10.2011.04.24.00.10.06 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Apr 2011 00:10:06 -0700 (PDT) Received-SPF: pass (google.com: domain of grobb...@google.com designates 172.24.198.13 as permitted sender) Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of grobb...@google.com designates 172.24.198.13 as permitted sender) smtp.mail=grobb...@google.com; dkim=pass (test mode) header...@google.com Received: from hpaq5.eem.corp.google.com (hpaq5.eem.corp.google.com [172.25.149.5]) by smtp-out.google.com with ESMTP id p3O7A64N023017 for ; Sun, 24 Apr 2011 00:10:06 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1303629006; bh=SAjAmgQDe3ORWcxb+UilW/vTMu4=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Content-Type; b=YzFVAnQkUWuBob+hTJB8Hie+5H27KyB+JAbHCO+0tgCq1TOUuj88WHq7DfyVLrqGH Hd3IV0hnq9MdDp6+63NDw== Received: from gxk3 (gxk3.prod.google.com [10.202.11.3]) by hpaq5.eem.corp.google.com with ESMTP id p3O7A4wa014949 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 24 Apr 2011 00:10:04 -0700 Received: by gxk3 with SMTP id 3so451488gxk.6 for ; Sun, 24 Apr 2011 00:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=EJVF0uY5/MdR024ki5KnMVBKdm2ZNjzIEjrBuPxMKSc=; b=EIHpOTC46/E7S5O+GymiXvP4FYkzWPc56mcV3mSWXRae5j17eADJxqTcBY2fdcUZl1 XorfWPA0hsaKwckd/Tbg== DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=LgilKyBn09PZkG9wVoYpN6hgKaw362ilOf5EmiXRJ3dyI2mM/BY/XwTvYwbuPqxGLw fXrfbq5SKwO4j9ROXUsA== Received: by 10.101.153.1 with SMTP id f1mr1532433ano.51.1303629003206; Sun, 24 Apr 2011 00:10:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.43.18 with HTTP; Sun, 24 Apr 2011 00:09:42 -0700 (PDT) In-Reply-To: References: From: Greg Robbins Date: Sun, 24 Apr 2011 00:09:42 -0700 Message-ID: Subject: Re: Retrieving Youtube video metadata - gdata iphone objective C To: gdata-objectivec-client@googlegroups.com Content-Type: multipart/alternative; boundary=0016e6d260a8a7b02404a1a4c720 X-System-Of-Record: true --0016e6d260a8a7b02404a1a4c720 Content-Type: text/plain; charset=ISO-8859-1 The mediaContent element for the swf URL has the yt:format attribute with the value 5, according to http://code.google.com/apis/youtube/2.0/reference.html#youtube_data_api_tag_media:content so given a video entry (GDataEntryYouTubeVideo), the URL is available as GDataYouTubeMediaGroup *mediaGroup = [videoEntry mediaGroup]; GDataMediaContent *mediaContent = [mediaGroup mediaContentWithFormatNumber:5]; NSString *urlString = [mediaContent URLString]; if (urlString) { NSURL *url = [NSURL URLWithString:urlString]; } --0016e6d260a8a7b02404a1a4c720 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The mediaContent element for the swf URL has the yt:format attribute with t= he value 5, according to


so given a video entry (GDataEntryYouTubeVideo), the URL is availa= ble as

=A0=A0GDataYouTubeMediaGroup *mediaGro= up =3D [videoEntry mediaGroup];
=A0=A0GDataMediaContent *mediaCon= tent =3D [mediaGroup mediaContentWithFormatNumber:5];
=A0=A0NSString *urlString =3D [mediaContent URLString];
=A0= =A0if (urlString) {
=A0=A0 =A0NSURL *url =3D [NSURL URLWithString= :urlString];
=A0=A0}
--0016e6d260a8a7b02404a1a4c720--