Screenleap API 与 Reactjs 的集成

Screenleap API integration with Reactjs

我正在尝试将“Screenleap”API 集成到我的 Reactjs 应用程序中。

我使用自定义参数成功调用了端点并获得了响应。

根据 screeleap 文档,我将此响应对象传递给 screenleap.startSharing() 函数以及其他两个参数 -("presenterAppType": "NATIVE"callbacks)。

每次我传递所有参数时,它都会尝试下载已安装在我的 Mac 上的桌面应用程序。

它不会像 Screenleap 网站上那样调用打开的 Screenleap App 提示。

我正在使用 ReactJS(带有 typeScript)并在我的 index.html.

中包含以下内容

<script type="text/javascript" src="https://api.screenleap.com/js/screenleap.js">

有没有人遇到过类似的情况?

Solved.The 应用程序提示仅适用于“https”links,因此请确保您有 ngrok link 如果您在 local.On 生产环境中进行测试,如果您有“https”,它将始终有效。