使用 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

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...