Google Drive音频流传输而不会影响下载数量? [英] Google Drive Audio Streaming without affecting download count?

查看:104
本文介绍了Google Drive音频流传输而不会影响下载数量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望使用Google驱动器,存储文件并使它们易于从我的网站进行流式传输.

Looking to use google drive, storing files and having them easily streamable from my website.

我以前在 HTML5音频标签中使用直接的Google云端硬盘下载链接.像这样

<audio controls="controls">
    <source src="https://docs.google.com/uc?export=download&id=1nQklEicsMeGBnuk0vv6zkHtXtyGy10S-">
</audio>

我很快意识到,每次将其加载到我的页面上时,它都标记为下载,我很快就遇到了Google云端硬盘下载限制.

I quickly realized that every time this loads on my page, It marks as a download and I quickly run into Google Drive Download limits.

我一直在考虑使用预览链接的 iframes 作为替代方案,但我发现其播放器很丑陋,难以使用且出现故障.

I was looking into using iframes of the preview link as an alternative, but I find its player to be ugly, hard to work with, and glitchy.

是否有任何不错的选择可以流式存储Google驱动器存储的音频而不会影响下载次数?

Are there are any decent alternatives with can stream google drive stored audio without affecting Download Counts?

任何建议都非常感激!!!

Any advise is Much appreciated!!!

推荐答案

是否有任何不错的选择可以流式传输Google云端硬盘存储的音频而不会影响下载次数?

答案:

不幸的是,如果Google播放器不适合,则没有其他选择.

Google提供的使用平台播放云端硬盘中音乐的唯一方法是使用您已经提到的预览链接方法-将共享链接嵌入到iframe中,并将共享中的/view更改为/preview网址:

The only method Google provides for using their platform to stream music from Drive is using the preview link method which you already mentioned - embedding the share link in an iframe and changing the /view to /preview in the share URL:

<iframe src="https://drive.google.com/file/d/<FILE-ID-GOES-HERE>/preview"></iframe>

通过使用Google提供的方法,您正在使用他们的预览播放​​器,该播放器将嵌入并显示在您的HTML页面中.除了受限于使用该播放器外,问题还在于流和下载在功能上是同一件事.流式传输只是意味着要以恒定的流提供数据以进行回放,而不是先列出来,这样整个文件就必须先下载,然后才能读取.

By using the method provided by Google, you're using their preview player which is what gets embedded and shows up in your HTML page. Aside from being restriced to using this player, the issue comes down to the fact that streaming and downloading are functionally the same thing. Streaming simply means the data is provided in a constant flow for playback rather than set out so the whole file needs to be downloaded before it can be read.

无论哪种方法,最终, 文件都必须下载到请求播放媒体的系统 .没有办法解决这个问题.如果不适合使用Google预览播放器,则必须将文件流式传输到另一个使用配额的系统进行播放.

Either way, however, ultimately, the file has to be downloaded to the system that is requesting the media for playback. There is no way around this. If the Google preview player isn't suitable, then you have to stream the file to another system for playback which will use your quota.

我知道这通常是个坏消息,但我希望这对您有帮助!

I know this is generally bad news, but I hope this is helpful to you!

  • Transmission Control Protocol - Wikipedia
  • User Datagram Protocol - Wikipedia

这篇关于Google Drive音频流传输而不会影响下载数量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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