Google Drive Sdk- Audio& iOS应用程序中的视频流 [英] Google Drive Sdk- Audio & Video Streaming in iOS Application
问题描述
您好Google Drive员工,
我试图从Google云端硬盘流式传输视频文件(无需下载)。但是我收到了登录提醒。我已经完全与编辑示例应用程序,但我没有找到任何解决方案。我尝试使用 downloadUrl,embedLink,webContentLink,alternateLink 。所有提供消息登录。当我尝试使用 exportsLinks时,我收到了一条空消息。这里有什么问题。如果U有任何建议,请让我知道......
我曾尝试在iPod中使用Google Drive for iOS,我们可以在无需下载的情况下传输视频。
请建议我解决这个问题
在此先感谢...
audiofile.strPath = [NSString stringWithFormat @ %@&安培; =的access_token%@,downloadUrl,的accessToken];
将strPath传递给您的avplayer对象以播放音乐。
我没有试过视频部分。但我认为应该有类似的方法。
您可以从GTMOAuth2Authentication对象中获取访问标记
注意你可能需要刷新它,如果它过期。
希望这可以帮助你。
问候
Nitesh
Hi Google Drive Staff,
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...
I have tried with Google Drive for iOS in iPod, there we can stream Video without Downloading. Please suggest me to resolve this issue
Thanks in Advance...
I could solve it just by appending the access_token to the download url
audiofile.strPath=[NSString stringWithFormat@"%@&access_token=%@",downloadUrl,accessToken];
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.
you can fetch the access token from the GTMOAuth2Authentication object
Note that you might need to refresh it if its expires.
Hope this helps you.
Regards Nitesh
这篇关于Google Drive Sdk- Audio& iOS应用程序中的视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!