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

使用 i-frame 或 SDK 嵌入 Google meet

如何解决使用 i-frame 或 SDK 嵌入 Google meet

有什么方法可以使用 angular 12 或他们的 i-frame(如果他们提供)在我的 SDK 网络应用程序中嵌入 Google Meets。

尝试在 i-frame 中打开 Google Meet 会议时,我收到以下错误消息。我还没有发现任何用于为 Google meet 集成 SDK 的适当文档。

HTML 代码

    <div class="row">
        <div class="col-8">
            <input type="text" [(ngModel)]="url1" />
        </div>
        <div class="col-4">
            <button (click)="onSubmit()" class="primary">GO</button>
        </div>
    </div>

    <div class="container">
        <iframe [src]="url" allow="microphone; camera;fullscreen" 
        width="1000px" height="1000px"></iframe>
    </div>

打字稿代码

    constructor(private route: ActivatedRoute,public ds: DomSanitizer) {}
    url: SafeResourceUrl;
    url1: string;
    onSubmit() {
        this.url = this.ds.bypassSecurityTrustResourceUrl(this.url1);
        console.log(this.url);
    }

enter image description here

解决方法

Google API 目前没有用于 Google Meets 的 SDK,这意味着目前无法将 Google 会议集成到应用程序中。

  • 请参阅关于此 here 的主题讨论。
  • 查看他们可用的 API library

enter image description here

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