Banno外部应用/插件卡通过Banno仪表板支持视频通话

huangapple go评论98阅读模式
英文:

Banno External Application/Plugin Card supporting Video call via Banno dashboard

问题

我已设置了一个通过Banno外部应用程序 ->插件卡进行的聊天插件,通过授权授予流进行身份验证,对于基本身份验证的聊天完全有效。我试图在Banno仪表板内部使我们的Twilio嵌入式视频与我们的聊天服务连接,并且我们在相机和麦克风访问/权限方面遇到问题。如果我将我们的服务以全屏模式运行,超出Banno仪表板的iframe之外,视频完全有效。然后,如果我尝试在Banno仪表板的iframe内部运行,视频不会自动启动(尽管我们的HTML video标签中已将autoplaymuted设置为true),并且我会收到一个"不允许调用getUserMedia"的错误。

当查看Banno提供的iframe时,它似乎具有设置的sandbox属性,我认为这可能会导致自动播放关闭,从而导致我们的Twilio视频无法启动,而是呈现"播放"按钮。sandbox属性表示为iframe中的内容启用了一组额外的限制,我猜测这可能会阻止视频启动。

带有sandbox属性的iframe HTML标记如下:

<iframe scrolling="no" frameborder="0" sandbox="allow-top-navigation-by-user-activation allow-scripts allow-forms allow-same-origin allow-downloads allow-modals" referrerpolicy="strict-origin-when-cross-origin" no-footer="" src="https://--插入第一方URI--/?channel=mobile"> </iframe>

我的问题是,是否有人在Banno插件卡/外部应用程序下使用视频,并且如何解决了Banno仪表板内部的iframe sandbox自动播放和摄像头/麦克风权限问题?

英文:

I have a chat plugin setup through a Banno External Application -> Plugin Card, with authentication via an auth grant flow that works 100% for basic authenticated chat. I am trying to get our Twilio embedded video for our chat-service to connect inside in the Banno Dashboard, and we're having an issue with Camera and Microphone access/permissions. If I run our service in full screen mode, outside of the Banno Dashboard iframe, the video works 100%. If I then try and run inside the Banno Dashboard iframe, the video doesn't auto-start (even though autoplay and muted are set to true for our HTML video tag), and I get an "Not allowed to call getUserMedia" error.

When looking at the iframe provided by Banno it appears to have the sandbox attribute set, which I think is knocking down autoplay, and hence causing our twilio video not to start, but rather present "play" buttons. The sandbox attribute says it enables an extra set of restrictions for the content in an iframe, and my guess it that's stopping the video from starting.

The iframe HTML tag with the sandbox attribute I see is below:

<iframe scrolling="no" frameborder="0" sandbox="allow-top-navigation-by-user-activation allow-scripts allow-forms allow-same-origin allow-downloads allow-modals" referrerpolicy="strict-origin-when-cross-origin" no-footer="" src="https://--first party URI is here inserted--/?channel=mobile"> </iframe>

My question is does anyone have video working under a Banno Plugin Card/Exernal Application, and how did you get around the iframe sandbox autoplay and camera/mic permission issues inside the Banno Dashboard?

Banno外部应用/插件卡通过Banno仪表板支持视频通话

答案1

得分: 1

听起来你遇到了插件框架的一些限制

目前,访问_麦克风_并未明确列为限制,但属于_"本地 API / 操作系统 API"_ 部分。(我们将更新文档以澄清这一特定限制。)

沙盒属性(与上述链接相同)防止在插件的_卡片界面_中自动播放视频。

英文:

It sounds like you're encountering some of the Restrictions that are part of the Plugin Framework.

Accessing the microphone isn't currently listed as an explicit restriction, but would fall under the "Native APIs / Operating System APIs" section. (We'll get the docs updated to clarify this specific restriction.)

The sandboxing attributes (same link as above) prevent autoplaying video in the plugin's Card Face.

huangapple
  • 本文由 发表于 2023年2月8日 10:25:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/75380843.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定