微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

使用 .txt 文件作为文本文件在 Google Drive 上的选取框中的文本源吗?

如何解决使用 .txt 文件作为文本文件在 Google Drive 上的选取框中的文本源吗?

我想使用位于 Google Drive 上的 .txt 文件作为选取框文本的来源。我无法找出实现此目的的正确方法。我想用我的源文件替换以下代码中的静态文本。

<html>
<head>


     <Meta name="viewport" content="width=device-width">
</head>
<!-- CSS Code -->
<style>
.GeneratedMarquee {
font-family:Helvetica,sans-serif;
font-size:2em;
line-height:1.3em;
color:#ffffff;
background-color:#000000;
padding:.2em;

}
</style>
<body style="background-color:black">
<!-- HTML Code -->
    <video autoplay loop muted playsinline width="90%" height="90%" name="media" class="center">
    <source src="https://drive.google.com/uc?export=download&id=1d5M6i3z0mI5L1mu0kgqdGGi3tiGqHASJ" type='video/mp4'>
    </video>

    <marquee class="GeneratedMarquee" direction="left" scrollamount="8" behavior="scroll">Replace this with txt file on Google Drive</marquee>

</body>
</html>

解决方法

Google Drive API 允许您创建利用 Google Drive 云存储的应用。您可以开发与 Google Drive 集成的应用,并使用 Google Drive API 在您的应用中创建强大的功能。

Google Drive API 不能用作文件服务器。它只是一个文件存储系统。你试图做的事情是行不通的。您将无法授权某人点击该链接以访问该文件。

您应该考虑将文件存储在您自己的文件服务器上。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。