Google Drive Sdk- 音频 &iOS 应用程序中的视频流 [英] Google Drive Sdk- Audio & Video Streaming in iOS Application

查看:13
本文介绍了Google Drive Sdk- 音频 &iOS 应用程序中的视频流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google 云端硬盘员工您好,

Hi Google Drive Staff,

我已尝试从 Google 云端硬盘流式传输视频文件(无需下载).但是我收到了登录的警报.我已经彻底使用了 Dr. Edit 示例应用程序,但我没有找到任何解决方案.我尝试使用 downloadUrl、embedLink、webContentLink、alternateLink.所有人都给出了登录的消息.当我尝试使用 exportsLinks 时,我收到一条空消息.这里有什么问题.如果你有什么建议请告诉我...

I have tried to stream video files from Google Drive(Without Downloading). But I gets alerts that Sign In. I have went thoroughly with Dr. Edit sample App but i did not found any solution. I tried with downloadUrl , embedLink, webContentLink, alternateLink. All gives message to sign In. When i tried with exportsLinks i get a Null Message. What is the problem Here. If U have any suggestion Please Let me Know...

我已经尝试在 iPod 中使用适用于 iOS 的 Google Drive,我们可以在不下载的情况下流式传输视频.请建议我解决此问题

I have tried with Google Drive for iOS in iPod, there we can stream Video without Downloading. Please suggest me to resolve this issue

在此先感谢...

推荐答案

我可以通过将 access_token 附加到下载 url 来解决它

I could solve it just by appending the access_token to the download url

audiofile.strPath=[NSString stringWithFormat@"%@&access_token=%@",downloadUrl,accessToken];   

将 strPath 传递给您的 avplayer 对象以播放音乐.

pass the strPath to your avplayer object to play music.

我没有尝试视频部分.但我认为类似的方法应该可行.

I did not try the video part. but i think a similar approach should work.

您可以从 GTMOAuth2Authentication 对象中获取访问令牌

you can fetch the access token from the GTMOAuth2Authentication object

请注意,如果过期,您可能需要刷新它.

Note that you might need to refresh it if its expires.

希望对你有所帮助.

问候尼特什

这篇关于Google Drive Sdk- 音频 &iOS 应用程序中的视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆