Dan Coughlin
Dan Coughlin

Reputation: 1104

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

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?

The autoplay suppression shown on and Android mobile device

Upvotes: 0

Views: 133

Answers (1)

Jaime Lopez Jr.
Jaime Lopez Jr.

Reputation: 671

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.

Upvotes: 1

Related Questions