iphone - 使用 GData Obj-C 设置 YouTube 视频的隐私
<p><p>我知道我可以将视频设置为“<strong>私有(private)</strong>”,同时将其上传到 Youtube,作者:</p>
<pre><code>GDataYouTubeMediaGroup *mediaGroup = ;
;
</code></pre>
<p>在上传视频时是否有类似的方法将视频设置为“<strong>不公开</strong>”?</p>
<p>提前致谢。</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>由于我没有使用 GData API 的更新版本,首先我必须进行此处列出的更改:</p>
<p>[ <a href="http://code.google.com/p/gdata-objectivec-client/source/detail?r=669" rel="noreferrer noopener nofollow">http://code.google.com/p/gdata-objectivec-client/source/detail?r=669</a> ]</p>
<p>然后我使用以下代码将视频设置为“不公开”,同时将其上传到 Youtube:</p>
<pre><code>GDataEntryYouTubeUpload *entry;
entry = [GDataEntryYouTubeUpload uploadEntryWithMediaGroup:mediaGroup
data:data
MIMEType:mimeType
slug:filename];
[entry addAccessControl:[GDataYouTubeAccessControl
accessControlWithAction:@"list" permission:@"denied"]];
</code></pre>
<p>确保视频<strong>未</strong>设置为“私有(private)”才能正常工作:</p>
<pre><code>;
</code></pre>
<p>得到了一些重要的帮助:</p>
<p>[ <a href="http://groups.google.com/group/gdata-objectivec-client/browse_thread/thread/da69a5ecbb6dfa42?fwc=1" rel="noreferrer noopener nofollow">http://groups.google.com/group/gdata-objectivec-client/browse_thread/thread/da69a5ecbb6dfa42?fwc=1</a> ]</p></p>
<p style="font-size: 20px;">关于iphone - 使用 GData Obj-C 设置 YouTube 视频的隐私,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/10352371/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/10352371/
</a>
</p>
页:
[1]