
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { Tab2PageRoutingModule } from './tab2-routing.module';
import { Tab2Page } from './tab2.page';
import { CourseDetailPage } from './course-detail/course-detail.page';
import { VideoPlayerPageModule } from './course-detail/video-player.module';

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    IonicModule,
    Tab2PageRoutingModule,
    // 移除VideoPlayerPageModule导入
    // VideoPlayerPageModule 
  ],
  declarations: [
    Tab2Page,
    CourseDetailPage,
    VideoPlayerPage // 直接声明视频播放组件
  ]
})
export class Tab2PageModule {}
// 假设 VideoPlayerPage 在 video-player.page.ts 文件中定义，需要从该文件导入
import { VideoPlayerPage } from './course-detail/video-player.page';
