有没有一种方法可以使用 i-frame
或其 SDK
(如果他们提供)。
尝试在 i-frame 中打开 Google Meet session 时,我收到了如下错误消息。我还没有发现任何合适的文档来集成 Google session 的 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>
typescript 代码:
constructor(private route: ActivatedRoute, public ds: DomSanitizer) {}
url: SafeResourceUrl;
url1: string;
onSubmit() {
this.url = this.ds.bypassSecurityTrustResourceUrl(this.url1);
console.log(this.url);
}
最佳答案
Google API 目前没有适用于 Google Meets 的 SDK,这意味着目前无法将 Google Meetings 集成到应用程序中。
- 查看有关此主题的讨论 here .
- 查看可用 API library .
关于angular - 使用 i-frame 或 SDK 嵌入 Google meets,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68395597/