import { Component, Input } from '@angular/core';
import { ModalController } from '@ionic/angular';

@Component({
  selector: 'app-video-player',
  templateUrl: './video-player.page.html',
  standalone: false, // 添加独立组件标识
  // 显式导入依赖模块
})
export class VideoPlayerPage {
  @Input() videoUrl!: string;  // 使用非空断言
  @Input() course: any = {};   // 提供默认值

  constructor(private modalCtrl: ModalController) {}

  dismiss() {
    this.modalCtrl.dismiss();
  }
}