问题描述
你好
我们正在迁移到 Azure 存储 Blob,但是我们曾经加载存储在同一网站托管路径中的故事情节,但现在的目标是将所有文件移动到 Azure 并从那里加载内容。
问题是,如果你想用 LMS API 功能加载 Storyline,你必须在你的页面上有一个 js 代码,声明和实例来自 API 类,它将与 Storyline 包中存在的 LMSAPI.js 进行通信,这当故事情节上传到站点根目录下的文件夹时正常工作,但现在当我们将它们移动到 Azure 存储时,我们面临错误,因为我们知道我们将它们上传到公共存储而不是受 SAS 保护,因此没有内容被阻止.
以上包的lms文件夹下的LMS代码:https://assaadf-paxosoft.tinytake.com/media/f5f436?filename=1614255622269_TinyTake25-02-2021-02-19-32_637498524203456394.png&sub_type=thumbnail_preview&type=attachment&width=184&height=269
这就是我们在加载故事情节的页面中声明 API 侦听器的方式:https://assaadf-paxosoft.tinytake.com/media/f5f440?filename=1614255732993_TinyTake25-02-2021-02-21-18_637498525304232052.png&sub_type=thumbnail_preview&type=attachment&width=766&height=296
这是我们从 Azure Blob 加载故事情节时看到的错误:https://assaadf-paxosoft.tinytake.com/media/f5f445?filename=1614255800374_TinyTake25-02-2021-02-23-13_637498525985967043.png&sub_type=thumbnail_preview&type=attachment&width=1195&height=170
知道当我们将文件上传到 Azure 时,我们指定了文件类型,以便它们正常加载,例如:https://assaadf-paxosoft.tinytake.com/media/f5f44d?filename=1614255967188_TinyTake25-02-2021-02-25-36_637498527646968416.png&sub_type=thumbnail_preview&type=attachment&width=650&height=799
但我们注意到,当我们加载 story_html5.html 而不是 index_lms.html 时,它会正常加载而不会出错,但当然我们失去了用于存储挂起数据的 LMS 的好处。
请提供建议,因为我们是 Azure Storage VS Storylines 的新手,我们需要专家建议。
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)